|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DfcListModel
Extension of Swing ListModel to support row add/remove/replace.
Method Summary | |
---|---|
void |
addEntry(Object entry,
int row)
Add an entry can at a given row. |
boolean |
canAddEntry(Object entry,
int row)
Test if an entry can be added at a given row. |
boolean |
canRemoveEntry(int row)
Test if an entry can be removed. |
boolean |
canReplaceEntry(Object entry,
int row)
Test if an entry can be replaced. |
int |
indexOf(Object entry)
Find the first occurrence of an entry and return its index. |
boolean |
isMutable()
Test if this model is mutable (can be changed). |
Object |
removeEntry(int row)
Remove an entry at a given row. |
Object |
replaceEntry(Object entry,
int row)
Replace an entry can at a given row. |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Method Detail |
---|
boolean isMutable()
int indexOf(Object entry)
boolean canReplaceEntry(Object entry, int row)
entry
- The entry to add.row
- The row to overwrite.
replaceEntry(java.lang.Object, int)
Object replaceEntry(Object entry, int row) throws IndexOutOfBoundsException, UnsupportedOperationException
entry
- The entry to add.row
- The row to overwrite.
IndexOutOfBoundsException
- if row is out of bounds.
UnsupportedOperationException
- if entry is not allowed to be
replaced.canReplaceEntry(java.lang.Object, int)
boolean canAddEntry(Object entry, int row)
entry
- The entry to add.row
- The row to add the new entry.
addEntry(java.lang.Object, int)
void addEntry(Object entry, int row) throws IndexOutOfBoundsException, UnsupportedOperationException
entry
- The entry to add.row
- The row to add the new entry.
IndexOutOfBoundsException
- if row is out of bounds.
UnsupportedOperationException
- if entry is not allowed to be
added.canAddEntry(java.lang.Object, int)
boolean canRemoveEntry(int row)
row
- The row to be removed.
removeEntry(int)
Object removeEntry(int row) throws IndexOutOfBoundsException, UnsupportedOperationException
row
- The row to remove.
IndexOutOfBoundsException
- if row is out of bounds.
UnsupportedOperationException
- if entry is not allowed to be
removed.canRemoveEntry(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |