|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The basic interface for a generic view of a PuzzleModel. Adding other methods here will force views to implement the methods
Method Summary | |
void |
setEnabledUndo(boolean value)
Enable/disable the undo move command. |
void |
showGrid(int[] list)
Show a grid/board, where list is the values between 0 and size*size-1 representing locations of square-elements. |
void |
showText(java.lang.String text)
Shows text in some view-specific way, e.g., in a textfield for information. |
Method Detail |
public void showText(java.lang.String text)
text
- is the text to displaypublic void setEnabledUndo(boolean value)
value
- determines whether undo is enabled(true) or
disabled (false)public void showGrid(int[] list)
list
- is the elements to be shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |