|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
org.cb.cardboard.CardBoardEvent
An event for a CardBoard.
| Nested Class Summary | |
static interface |
CardBoardEvent.BoardIndexes
A supertype tag for the different indexes implementation. |
static class |
CardBoardEvent.IndexInterval
A class that allows to specify BoardIndexes as an interval between two indexes. |
static class |
CardBoardEvent.IndexList
A class that allows to specify BoardIndexes as a list of indexes. |
| Field Summary | |
static int |
CONTENTS_CHANGED
Identifies one or more changes in the lists contents. |
static int |
INTERVAL_ADDED
Identifies the addition of one or more contiguous items to the list. |
static int |
INTERVAL_REMOVED
Identifies the removal of one or more contiguous items from the list. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
CardBoardEvent(java.lang.Object source,
int type,
int index0,
int index1)
Constructs a CardBoardEvent object. |
|
CardBoardEvent(java.lang.Object source,
java.util.List indexes)
Constructs a CardBoardEvent object. |
|
| Method Summary | |
CardBoardEvent.BoardIndexes |
getBoardIndexes()
Return the indexes of the cards modified on the board. |
int |
getType()
Returns the event _type. |
java.lang.String |
toString()
Returns a string representation of this CardBoardEvent. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CONTENTS_CHANGED
public static final int INTERVAL_ADDED
public static final int INTERVAL_REMOVED
| Constructor Detail |
public CardBoardEvent(java.lang.Object source,
int type,
int index0,
int index1)
source - the source Object (typically this)type - an int specifying INTERVAL_ADDED, or INTERVAL_REMOVEDindex0 - an int specifying the bottom of a rangeindex1 - an int specifying the top of a range
java.lang.IllegalArgumentException - if CONTENTS_CHANGED is specified as _type.
public CardBoardEvent(java.lang.Object source,
java.util.List indexes)
source - the source Object (typically this)indexes - a List of Integer int specifying the indexes changed.| Method Detail |
public int getType()
public CardBoardEvent.BoardIndexes getBoardIndexes()
range or a list of indexes.
public java.lang.String toString()
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||