|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Option
public class Option
Generate the <option> tags to create list boxes and drop-down lists.
Select,
SelectList,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
Option(java.lang.String option)
Creates an option item. |
|
Option(java.lang.String option,
java.lang.String value)
Creates an option item. |
|
Option(java.lang.String option,
java.lang.String value,
boolean selected)
Creates an option item. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Allows the option item to be cloned. |
java.lang.String |
getContainedText()
Returns the text of this option item. |
java.lang.String |
getValue()
Returns the value of this option item. |
protected void |
init()
Called by the constructor and the Tag.destroy() method to correctly
clear and initialise internal variables. |
boolean |
isSelected()
Returns the selected status of this option. |
void |
setContent(java.lang.String content)
Sets the text of this option item. |
Option |
setSelected(boolean selected)
Sets this option item as the default selected item. |
Option |
setValue(java.lang.String value)
Sets the value of this option item. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pajes.html.HTML |
|---|
addContent, destroy, getContainer, getDocument, getId, getParent, getWritePermission, isChildOf, isChildOf, setContainer, setParent, setWritePermission, write |
| Constructor Detail |
|---|
public Option(java.lang.String option)
option - the text of the option.
public Option(java.lang.String option,
java.lang.String value)
option - the text of the option.value - the value to be returned when the option is selected.
public Option(java.lang.String option,
java.lang.String value,
boolean selected)
option - the text of the option.value - the value to be returned when the option is selected.selected - set to true to make this the default option.| Method Detail |
|---|
public java.lang.Object clone()
clone in interface HTMLclone in class Tagpublic java.lang.String getContainedText()
getContainedText in interface TextContainerpublic java.lang.String getValue()
public boolean isSelected()
public void setContent(java.lang.String content)
setContent in interface HTMLsetContent in class Tagcontent - the content of this HTML tag.Tag.getContent(),
Tag.setContent(org.pajes.html.HTML)public Option setSelected(boolean selected)
selected - true if this option is to be the default selected item.
public Option setValue(java.lang.String value)
value - the value of this option item.
protected void init()
Tag.destroy() method to correctly
clear and initialise internal variables.
init in class Tag
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||