|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yasl.componentlist.YASLDefaultComponentListModel
| Constructor Summary | |
YASLDefaultComponentListModel()
|
|
YASLDefaultComponentListModel(JComponent[] components)
|
|
| Method Summary | |
void |
addElement(JComponent item)
Adds a component to the end of the component list. |
void |
addElementAt(int index,
JComponent item)
Inserts an element into the list at the specified index. |
void |
addListDataListener(ListDataListener listener)
Adds the passed ListDataListener from the list of ListDataListeners. |
protected void |
checkIndex(int index,
int listSize)
|
protected void |
fireListDataEvent(ListDataEvent event)
|
JComponent[] |
getComponents()
Returns an array of the components. |
JComponent |
getElementAt(int index)
Returns the component located at position index in the component list. |
int |
getSize()
Returns the number of elements in the list. |
JComponent |
removeElementAt(int index)
Removes the element located at index from the list. |
void |
removeListDataListener(ListDataListener listener)
Removes the passed ListDataListener from the list of ListDataListeners. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public YASLDefaultComponentListModel()
public YASLDefaultComponentListModel(JComponent[] components)
| Method Detail |
protected final void checkIndex(int index,
int listSize)
protected final void fireListDataEvent(ListDataEvent event)
public void addElement(JComponent item)
addElement in interface YASLMutableComponentListModelitem - JComponent
public void addElementAt(int index,
JComponent item)
addElementAt in interface YASLMutableComponentListModelindex - intitem - JComponentpublic JComponent removeElementAt(int index)
removeElementAt in interface YASLMutableComponentListModelindex - int
public JComponent getElementAt(int index)
getElementAt in interface YASLComponentListModelindex - int
public int getSize()
getSize in interface YASLComponentListModelpublic JComponent[] getComponents()
getComponents in interface YASLComponentListModelpublic void addListDataListener(ListDataListener listener)
addListDataListener in interface YASLComponentListModellistener - ListDataListenerpublic void removeListDataListener(ListDataListener listener)
removeListDataListener in interface YASLComponentListModellistener - ListDataListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||