|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--com.swfit.core.tree.TreeElement
|
+--com.swfit.core.tree.TreeLeaf
|
+--com.swfit.core.xhtml.XHTMLField
A representation of XHTML form fields.
| Field Summary | |
static int |
CHECK_BOX
The fields. |
static int |
DEFAULT_FIELD
The fields. |
static java.lang.String[] |
FIELDS
|
static int |
FILE_FIELD
The fields. |
static int |
HIDDEN_FIELD
The fields. |
static int |
MULTI_LIST
The fields. |
static int |
OPTION_LIST
The fields. |
static int |
PASSWORD_FIELD
The fields. |
static int |
PLAIN_TEXT
The fields. |
static int |
RADIO_BUTTON
The fields. |
static int |
SUBMIT_FIELD
The fields. |
static int |
TEXT_AREA
The fields. |
static int |
TEXT_FIELD
The fields. |
static java.lang.String |
TREE_CODE
|
| Fields inherited from class com.swfit.core.tree.TreeElement |
CODE, NUM_OWNED, OWNED, SEPARATOR |
| Constructor Summary | |
XHTMLField(java.lang.String name)
Build a XHTMLField with a given name. |
|
| Method Summary | |
java.lang.String |
code()
Describe this TreeElement in a way that will make it possible to rebuild the tree |
void |
copyDataTo(XHTMLField copy_to)
|
void |
copyRenderDataTo(XHTMLField copy_to)
|
static XHTMLField |
create(java.lang.String name,
int field,
int style,
int index)
Some static utilities. |
XHTMLField |
deepCopy()
Copy this field to various degrees |
XHTMLField |
deepCopy(java.lang.String new_name)
|
XHTMLField |
deepCopy(java.lang.String new_name,
TreeBranch new_owner)
|
XHTMLField |
deepCopy(TreeBranch new_owner)
|
int |
field()
What kind of field is this ? |
java.lang.String |
fieldValue()
If we ask for a single value, we get the first one, if any. |
java.lang.String[] |
fieldValues()
The values taking into account that fields behave differently. |
boolean |
readonly()
Is this field readonly ? |
boolean[] |
selected()
The selected values of this field. |
void |
setField(int field)
|
void |
setField(java.lang.String code)
|
void |
setReadonly(boolean readonly)
|
void |
setSelected(java.lang.String selected)
|
void |
setSelected(java.lang.String[] selected)
|
void |
setStyle(int style)
|
void |
setSubmittor(boolean submittor)
|
void |
setText(java.lang.String text)
|
void |
setTexts(java.lang.String[] texts)
|
void |
setValue(java.lang.String value)
|
void |
setValues(java.lang.String[] values)
|
java.lang.String |
style()
What kind of style has this field? NB: I previously used an underscore here, but that seems to be an illegal character, has been replaced with a dash. |
boolean |
submittor()
Should this field fire off a javascript form.submit() command on change ? |
java.lang.String |
text()
Return a single text describing the value for this field |
java.lang.String[] |
texts()
The texts describing the values of this field - in case the actual values do not tell the user anything |
java.lang.String |
value()
Return a single value for this field |
java.lang.String[] |
values()
The values of this field |
| Methods inherited from class com.swfit.core.tree.TreeElement |
codeName, explainer, horizontal, index, name, owner, setExplainer, setHorizontal, setIndex, setOwner, toTreeBranch, toTreeElement, toTreeLeaf, treeName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int HIDDEN_FIELD
public static final int TEXT_FIELD
public static final int TEXT_AREA
public static final int PASSWORD_FIELD
public static final int CHECK_BOX
public static final int RADIO_BUTTON
public static final int OPTION_LIST
public static final int MULTI_LIST
public static final int SUBMIT_FIELD
public static final int PLAIN_TEXT
public static final int FILE_FIELD
public static final int DEFAULT_FIELD
public static final java.lang.String[] FIELDS
public static final java.lang.String TREE_CODE
| Constructor Detail |
public XHTMLField(java.lang.String name)
| Method Detail |
public static final XHTMLField create(java.lang.String name,
int field,
int style,
int index)
public final XHTMLField deepCopy()
public final XHTMLField deepCopy(java.lang.String new_name)
public final XHTMLField deepCopy(TreeBranch new_owner)
public final XHTMLField deepCopy(java.lang.String new_name,
TreeBranch new_owner)
public final void copyDataTo(XHTMLField copy_to)
public final void copyRenderDataTo(XHTMLField copy_to)
public final java.lang.String[] values()
public final void setValues(java.lang.String[] values)
public final void setValue(java.lang.String value)
public final java.lang.String value()
public final boolean[] selected()
public final void setSelected(java.lang.String[] selected)
public final void setSelected(java.lang.String selected)
public final java.lang.String[] fieldValues()
public final java.lang.String fieldValue()
public final java.lang.String[] texts()
public final void setTexts(java.lang.String[] texts)
public final void setText(java.lang.String text)
public final java.lang.String text()
public final java.lang.String code()
code in class TreeElementpublic final int field()
public final void setField(int field)
public final void setField(java.lang.String code)
public final java.lang.String style()
public final void setStyle(int style)
public final boolean submittor()
public final void setSubmittor(boolean submittor)
public final boolean readonly()
public final void setReadonly(boolean readonly)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||