|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo2.app.Component nextapp.echo2.app.list.AbstractListComponent nextapp.echo2.app.SelectField
public class SelectField
A drop-down select field.
Field Summary |
---|
Constructor Summary | |
---|---|
SelectField()
Creates a new, empty SelectField . |
|
SelectField(ListModel model)
Creates a new SelectField with the provided model. |
|
SelectField(java.lang.Object[] items)
Creates a new SelectField that will initially contain the
provided array of items. |
Method Summary | |
---|---|
int |
getSelectedIndex()
Returns the index of the currently selected item. |
java.lang.Object |
getSelectedItem()
Returns the currently selected item. |
void |
setSelectedIndex(int index)
Sets the selected index. |
void |
setSelectedItem(java.lang.Object item)
Sets the selected item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectField()
SelectField
.
public SelectField(ListModel model)
SelectField
with the provided model.
model
- the model for the SelectField
public SelectField(java.lang.Object[] items)
SelectField
that will initially contain the
provided array of items.
items
- the items the SelectField
will initially
containMethod Detail |
---|
public int getSelectedIndex()
public java.lang.Object getSelectedItem()
public void setSelectedIndex(int index)
index
- the new selected indexpublic void setSelectedItem(java.lang.Object item)
item
- the new selected item, or null, to select nothing
|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |