|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods components like JCardBoard use to get the value of each card in a board and the length of the list. Logically the model is a vector, indices vary from 0 to CardBoardModel.getSize() - 1. Any change to the contents or length of the data model must be reported to all of the CardBoardModelListener.
Method Summary | |
void |
addBoardDataListener(CardBoardModelListener listener)
Adds a listener to the list that's notified each time a change to the data model occurs. |
Card |
getElementAt(int index)
Returns the value at the specified index. |
java.util.List |
getElements()
|
int |
getSize()
Returns the number of cards on the board. |
void |
removeBoardDataListener(CardBoardModelListener listener)
Removes a listener from the list that's notified each time a change to the data model occurs. |
Method Detail |
public int getSize()
public Card getElementAt(int index)
index
- the requested index
index
public java.util.List getElements()
public void addBoardDataListener(CardBoardModelListener listener)
listener
- the CardBoardModelListener
to be addedpublic void removeBoardDataListener(CardBoardModelListener listener)
listener
- the CardBoardModelListener
to be removed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |