|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.event.BoardListenerAdapter
public class BoardListenerAdapter
This adapter class provides default implementations for the methods described
by the BoardListener interface.
Classes that wish to deal with BoardEvents can extend this
class and override only the methods which they are interested in.
BoardListener,
BoardEvent| Constructor Summary | |
|---|---|
BoardListenerAdapter()
|
|
| Method Summary | |
|---|---|
void |
boardChangedAllHexes(BoardEvent b)
Sent when all Hexes on the Board changed The default behavior is to do nothing. |
void |
boardChangedHex(BoardEvent b)
Sent when Hex on the Board changed The default behavior is to do nothing. |
void |
boardNewBoard(BoardEvent b)
Sent when Board completely changed The default behavior is to do nothing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoardListenerAdapter()
| Method Detail |
|---|
public void boardNewBoard(BoardEvent b)
boardNewBoard in interface BoardListenerb - an event containing information about the changepublic void boardChangedHex(BoardEvent b)
boardChangedHex in interface BoardListenerb - an event containing information about the changepublic void boardChangedAllHexes(BoardEvent b)
boardChangedAllHexes in interface BoardListenerb - an event containing information about the change
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||