|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
boardGame.Board.DragEvent
public static class Board.DragEvent
Allows drag events to be observed. To use this class for a given board, do the following:
board.dragEvent.addObserver(new Observer() {
@Override
public void update(Observable o, Object arg) {
...
}
});
The update method will be called when a piece has
been released in a new (or possibly the same) location. The
parameter o will hold the Board.DragEvent
object, while arg will hold a reference to the
piece that was moved.
| Constructor Summary | |
|---|---|
Board.DragEvent()
|
|
| Method Summary |
|---|
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Board.DragEvent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||