|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.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 valueMethod Detail |
---|
public void decodeForm(java.lang.StringBuilder builder, JetContext jetContext)
decodeForm
in interface Decodeable
decodeForm
in interface JetComponent
decodeForm
in interface JetOption
decodeForm
in class JetComponent
builder
- builder to usepublic void encode()
encode
in interface JetOption
public java.lang.String getValue()
getValue
in interface JetOption
public void setDefaultselected(boolean val)
setDefaultselected
in interface JetOption
public void setDefaultSelected(java.lang.String val)
setDefaultSelected
in interface JetOption
public boolean isDefaultselected()
isDefaultselected
in interface JetOption
public void reset()
reset
in interface JetOption
public java.lang.Object clone()
clone
in interface JetComponent
clone
in interface JetOption
clone
in class JetComponent
public java.lang.String getKey()
getKey
in interface JetOption
public boolean isSelected()
isSelected
in interface JetOption
public void setSelected(boolean selected)
setSelected
in interface JetOption
selected
- boolean if selectedpublic JetSelection getParent()
getParent
in interface JetOption
public void setParent(JetSelection parent)
setParent
in interface JetOption
parent
- the parent objectpublic void toggleHidden()
toggleHidden
in interface JetComponent
toggleHidden
in interface JetOption
toggleHidden
in class JetComponent
public boolean isHidden()
isHidden
in interface JetComponent
isHidden
in interface JetOption
isHidden
in class JetComponent
public 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 |