|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tekann.codegen.pda.ComboBoxItem
public class ComboBoxItem
This class represents a ComboBox item.
You can set the showKey flag in order to view the key together to the
value in each item.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_SEPARATOR
Separator for key - value when isShowKey is true. |
| Constructor Summary | |
|---|---|
ComboBoxItem(java.lang.Object key)
Constructor passing an Object key as argument. |
|
ComboBoxItem(java.lang.Object key,
java.lang.Object value)
Constructor passing an Object key and an Object value as argument. |
|
ComboBoxItem(java.lang.String key)
Constructor passing a key String as argument. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests it the passed object is equal to this. |
java.lang.Object |
getKey()
Gets the item's key. |
java.lang.Object |
getValue()
Gets the item's value. |
boolean |
isShowKey()
Returns showKey flag. |
void |
setKey(java.lang.Object key)
Sets the item's key. |
void |
setShowKey(boolean showKey)
Sets the showKey flag. |
void |
setValue(java.lang.Object value)
Sets the item's value. |
java.lang.String |
toString()
Show this item's description in the following format: key - value |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String KEY_SEPARATOR
| Constructor Detail |
|---|
public ComboBoxItem(java.lang.Object key)
key -
public ComboBoxItem(java.lang.Object key,
java.lang.Object value)
key - value - public ComboBoxItem(java.lang.String key)
key - | Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object getKey()
public java.lang.Object getValue()
public void setKey(java.lang.Object key)
key - public void setShowKey(boolean showKey)
showKey - public boolean isShowKey()
public void setValue(java.lang.Object value)
value - public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||