|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opencms.frontend.templateone.form.CmsFieldItem
public class CmsFieldItem
Represents a single input field item object.
This object is needed to create checkboxes, radio buttons and selectboxes and represents an item for these types.
| Constructor Summary | |
|---|---|
CmsFieldItem()
Empty constructor creates an empty field item. |
|
CmsFieldItem(java.lang.String value,
java.lang.String label,
boolean isSelected)
Constructor that creates an initialized field item. |
|
| Method Summary | |
|---|---|
java.lang.String |
getLabel()
Returns the label text of the field item. |
java.lang.String |
getValue()
Returns the value of the field item. |
boolean |
isSelected()
Returns if the current item is selected or not. |
protected void |
setLabel(java.lang.String label)
Sets the label text of the field item. |
protected void |
setSelected(boolean isSelected)
Sets if the current item is selected or not. |
protected void |
setValue(java.lang.String value)
Sets the value of the field item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsFieldItem()
public CmsFieldItem(java.lang.String value,
java.lang.String label,
boolean isSelected)
value - the value of the field itemlabel - the label of the field itemisSelected - true if the current item is selected, otherwise false| Method Detail |
|---|
public java.lang.String getLabel()
public java.lang.String getValue()
public boolean isSelected()
protected void setLabel(java.lang.String label)
label - the description text of the field itemprotected void setSelected(boolean isSelected)
isSelected - true if the current item is selected, otherwise falseprotected void setValue(java.lang.String value)
value - the value of the field item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||