|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
JComponent |
removeElementAt(int index)
Removes the element located at index from the list. |
Methods inherited from interface org.yasl.componentlist.YASLComponentListModel |
addListDataListener, getComponents, getElementAt, getSize, removeListDataListener |
Method Detail |
public void addElement(JComponent item)
item
- JComponentpublic void addElementAt(int index, JComponent item)
The element at that position will be moved one position forward.
This method will throw an IndexOutOfBoundsException if the
index is larger than the last index in the list, i.e.
ComponentListModel.getSize()
- 1.
index
- intitem
- JComponentpublic JComponent removeElementAt(int index)
This method will throw an IndexOutOfBoundsException if the
index is larger than the last index in the list, i.e.
ComponentListModel.getSize()
- 1.
index
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |