|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.fruitioninc.jwc.Component | +--com.fruitioninc.jwc.ListBox
A component that allows the user to select one or more elements from a list.
Field Summary |
Fields inherited from class com.fruitioninc.jwc.Component |
NAME_DELIMITER |
Constructor Summary | |
ListBox()
Creates a non-state-fill ListBox with zero elements. |
|
ListBox(java.lang.Object[] elements)
Creates a non-state-full ListBox with some initial elements. |
|
ListBox(java.lang.String name)
Creates a non-state-full ListBox with the given name. |
|
ListBox(java.lang.String name,
ListBoxModel model)
Creates a ListBox with the given name and model. |
|
ListBox(java.lang.String name,
java.lang.Object[] elements)
Creates a non-state-full ListBox with the given name and initial elements. |
Method Summary | |
ListBoxModel |
getListBoxModel()
Returns this ListBox's model. |
boolean |
getMultiselect()
Returns true if this ListBox allows multiple elements to be selected. |
int |
getSize()
Returns the vertical height of this ListBox measured in rows. |
void |
setMultiselect(boolean b)
Specifies whether this ListBox allows multiple elements to be selected. |
void |
setSize(int size)
Sets the vertical height of this ListBox measured in rows. |
Methods inherited from class com.fruitioninc.jwc.Component |
addComponentListener, addMouseListener, fireComponentSerialize, fireMouseClicked, getApplication, getComponentListenerCount, getComponentListeners, getContainer, getModel, getMouseListenerCount, getMouseListeners, getName, getPathName, getView, setModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListBox()
public ListBox(java.lang.Object[] elements)
elements
- initial elements for the ListBox.public ListBox(java.lang.String name)
name
- name of the ListBoxpublic ListBox(java.lang.String name, java.lang.Object[] elements)
name
- name of the ListBoxelements
- initial elements for the ListBox.public ListBox(java.lang.String name, ListBoxModel model)
name
- name of the ListBoxmodel
- the ListBox's modelMethod Detail |
public ListBoxModel getListBoxModel()
public boolean getMultiselect()
public void setMultiselect(boolean b)
public int getSize()
public void setSize(int size)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |