GenericTextContainer.java
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.*;
public final class GenericTextContainer
extends ProtoableNode {
public GenericTextContainer(Element parent, Node prevSibling) {
super(parent, prevSibling, null, null, null, null, -1, null);
}
@Override
public Element clone(Element pParent, boolean bDeep) {
GenericTextContainer oClone = (GenericTextContainer)super.clone(pParent, bDeep);
oClone.setLocalName(this.getLocalName());
return oClone;
}
@Override
public ScriptTable getScriptTable() {
return GenericTextContainerScript.getScriptTable();
}
public String getValue() {
TextNode node = (TextNode)this.getProperty(XFA.TEXTNODETAG, 0);
String sReturn = "";
if (node != null) {
sReturn = node.getValue();
}
return sReturn;
}
void setValue(String sValue) {
TextNode node = (TextNode)this.getProperty(XFA.TEXTNODETAG, 0);
if (node != null) {
node.setValue(sValue, true, false);
}
}
}