|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentListModel
This interface defines the data model for ComponentList
.
Method Summary | |
---|---|
void |
add(java.awt.Component c)
Adds the specified component at the end of the list. |
java.awt.Component |
get(int index)
Gets the component at the specified index. |
void |
insert(java.awt.Component c,
int index)
Inserts the specified component at the specified index. |
boolean |
remove(java.awt.Component c)
Removes the specified component. |
java.awt.Component |
remove(int index)
Removes the component at the specified position. |
java.awt.Component |
set(int index,
java.awt.Component c)
Replaces the component at the specified position with the specified component. |
int |
size()
Gets the length of the list. |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Method Detail |
---|
void add(java.awt.Component c)
c
- The component to be added.void insert(java.awt.Component c, int index)
c
- The component to be inserted.index
- The position of the new component.
java.lang.ArrayIndexOutOfBoundsException
- If the index is invalid.boolean remove(java.awt.Component c)
c
- The component to be removed.
true
if the list contained the specified component,
false
otherwise.java.awt.Component remove(int index)
index
- The index of the component to be removed.
java.lang.ArrayIndexOutOfBoundsException
- If the index is out of range.java.awt.Component get(int index)
index
- The requested index.
java.awt.Component set(int index, java.awt.Component c)
index
- The index of the component to replace.c
- The component to be stored at the specified position.
int size()
|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005 Grigor Iliev. All rights reserved. |