|
NextApp Echo2 v2.1.0.rc2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.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(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. |
Object |
getSelectedItem()
Returns the currently selected item. |
void |
setSelectedIndex(int index)
Sets the selected index. |
void |
setSelectedItem(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 SelectFieldpublic SelectField(Object[] items)
SelectField that will initially contain the
provided array of items.
items - the items the SelectField will initially
contain| Method Detail |
|---|
public int getSelectedIndex()
public Object getSelectedItem()
public void setSelectedIndex(int index)
index - the new selected indexpublic void setSelectedItem(Object item)
item - the new selected item, or null, to select nothing
|
NextApp Echo2 v2.1.0.rc2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||