|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjet.html.core.JetComponent
jet.html.impl.JetOption
public class JetOption
This class renders a html option
| Field Summary | |
|---|---|
private boolean |
defaultselected
indicates if the option is selected by default |
private boolean |
hidden
indicates if the option is hidden |
private java.lang.String |
labelKey
Holds the label text |
private JetSelection |
parent
The parent object e.g. form/grid |
private boolean |
selected
indicates if the option is selected |
| Fields inherited from class jet.html.core.JetComponent |
|---|
eventSupport |
| Constructor Summary | |
|---|---|
JetOption(java.lang.String key,
java.lang.String value,
java.lang.String styleclass)
Creates new Component |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This method generates a clone of the curent one |
void |
decodeForm(java.lang.StringBuilder builder,
JetContext jetContext)
This method decodes the form to the given buffer |
void |
encode()
encodes if the option is selected |
java.lang.String |
getKey()
Returns the key of the option |
java.lang.String |
getLabelKey()
Returns the labelkey |
JetSelection |
getParent()
Returns the parent object |
java.lang.String |
getValue()
Returns the value/labelof the option |
boolean |
isDefaultselected()
Returns if the option is default selected |
boolean |
isHidden()
Returns the hidden status |
boolean |
isSelected()
Indicates if the optio is selected |
void |
reset()
Resets the object |
void |
setDefaultselected(boolean val)
Set the default selected value |
void |
setDefaultSelected(java.lang.String val)
Set the default selected value |
void |
setLabelKey(java.lang.String labelkey)
Sets the label key |
void |
setParent(JetSelection parent)
Set the parent object |
void |
setSelected(boolean selected)
Set if the option is selected |
void |
toggleHidden()
Switches the boolean value if the component should be hidden or not |
| Methods inherited from class jet.html.core.JetComponent |
|---|
addListener, addListener, componentChanged, findComponent, findComponents, getGeneratedComponentIdentifier, getIdentifier, getName, getNewIdentifier, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jet.html.JetComponent |
|---|
addListener, addListener, componentChanged, findComponent, findComponents, getIdentifier, getName, getStyleclass, incrementIdentifier, removeListener, removeListener, setComponentChanged, setContinueIdentifier, setIdentifier, setName, setStyleclass |
| Field Detail |
|---|
private boolean hidden
private boolean selected
private boolean defaultselected
private java.lang.String labelKey
private JetSelection parent
| Constructor Detail |
|---|
public JetOption(java.lang.String key,
java.lang.String value,
java.lang.String styleclass)
key - the identifiervalue - teh value| Method Detail |
|---|
public void decodeForm(java.lang.StringBuilder builder,
JetContext jetContext)
decodeForm in interface DecodeabledecodeForm in interface JetComponentdecodeForm in interface JetOptiondecodeForm in class JetComponentbuilder - builder to usepublic void encode()
encode in interface JetOptionpublic java.lang.String getValue()
getValue in interface JetOptionpublic void setDefaultselected(boolean val)
setDefaultselected in interface JetOptionpublic void setDefaultSelected(java.lang.String val)
setDefaultSelected in interface JetOptionpublic boolean isDefaultselected()
isDefaultselected in interface JetOptionpublic void reset()
reset in interface JetOptionpublic java.lang.Object clone()
clone in interface JetComponentclone in interface JetOptionclone in class JetComponentpublic java.lang.String getKey()
getKey in interface JetOptionpublic boolean isSelected()
isSelected in interface JetOptionpublic void setSelected(boolean selected)
setSelected in interface JetOptionselected - boolean if selectedpublic JetSelection getParent()
getParent in interface JetOptionpublic void setParent(JetSelection parent)
setParent in interface JetOptionparent - the parent objectpublic void toggleHidden()
toggleHidden in interface JetComponenttoggleHidden in interface JetOptiontoggleHidden in class JetComponentpublic boolean isHidden()
isHidden in interface JetComponentisHidden in interface JetOptionisHidden in class JetComponentpublic java.lang.String getLabelKey()
public void setLabelKey(java.lang.String labelkey)
labelkey -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||