|
|||||||||
| 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.ListBox
echopointng.ListBoxEx
public class ListBoxEx
ListBoxEx
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ListBoxEx()
Creates an empty ListBoxEx. |
|
ListBoxEx(ListModel model)
Creates a ListBoxEx visualizing the specified model. |
|
ListBoxEx(ListModel model,
ListSelectionModel selectionModel)
Creates a ListBoxEx visualizing the specified
ListModel and describing selections using the specified
ListSelectionModel. |
|
ListBoxEx(java.lang.Object[] itemArray)
Creates a ListBoxEx with a DefaultListModel
that initially contains the specified array of items. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns a value for the given attribute name or null if one cannot be found. |
java.lang.String[] |
getAttributeNames()
Returns a String array with the names of the the attributes that have neen set. |
void |
init()
Life-cycle method invoked when the Component is added
to a registered hierarchy. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets a value for a given attribute name. |
| Methods inherited from class nextapp.echo2.app.ListBox |
|---|
getMaxSelectedIndex, getMinSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionMode, isSelectedIndex, setSelectedIndex, setSelectedIndex, setSelectedIndices, setSelectionMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListBoxEx()
ListBoxEx.
A DefaultListModel will be created.
A DefaultListSelectionModel will be created and used
to describe selections.
public ListBoxEx(ListModel model)
ListBoxEx visualizing the specified model.
A DefaultListSelectionModel will be created and used
to describe selections.
model - the initial model
public ListBoxEx(ListModel model,
ListSelectionModel selectionModel)
ListBoxEx visualizing the specified
ListModel and describing selections using the specified
ListSelectionModel.
model - the initial modelselectionModel - the initial selection modelpublic ListBoxEx(java.lang.Object[] itemArray)
ListBoxEx with a DefaultListModel
that initially contains the specified array of items.
A DefaultListSelectionModel will be created and used
to describe selections.
itemArray - an array of items that will initially populate
this ListBox| Method Detail |
|---|
public void init()
ComponentComponent is added
to a registered hierarchy. Implementations should always invoke
super.init().
Modifications to the component hierarchy are not allowed within this
method.
init in class ComponentComponent.init()public java.lang.Object getAttribute(java.lang.String attributeName)
Attributeable
getAttribute in interface AttributeableattributeName - - the name of the attribute to return
Attributeable.getAttribute(java.lang.String)public java.lang.String[] getAttributeNames()
Attributeable
getAttributeNames in interface AttributeableAttributeable.getAttributeNames()
public void setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Attributeable
setAttribute in interface AttributeableattributeName - - the name of the attribute to setattributeValue - - the value for the attributeAttributeable.setAttribute(java.lang.String,
java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||