VASSAL.build.module.noteswindow
Class PrivateNotesController
java.lang.Object
|
+--VASSAL.build.module.noteswindow.PrivateNotesController
- All Implemented Interfaces:
- CommandEncoder, GameComponent, SetPrivateTextCommand.Interface
- public class PrivateNotesController
- extends java.lang.Object
- implements GameComponent, CommandEncoder, SetPrivateTextCommand.Interface
Holds PrivateText objects, only displaying the one owned by the current user
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMAND_PREFIX
public static final java.lang.String COMMAND_PREFIX
PrivateNotesController
public PrivateNotesController()
getControls
public java.awt.Component getControls()
addPrivateText
public void addPrivateText(PrivateText p)
- Specified by:
addPrivateText in interface SetPrivateTextCommand.Interface
decode
public Command decode(java.lang.String command)
- Description copied from interface:
CommandEncoder
- Translate a String into a
Command
- Specified by:
decode in interface CommandEncoder
encode
public java.lang.String encode(Command c)
- Description copied from interface:
CommandEncoder
- Translate a
Command into a String
- Specified by:
encode in interface CommandEncoder
getRestoreCommand
public Command getRestoreCommand()
- Description copied from interface:
GameComponent
- When saving a game, each GameComponent should return a
Command that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null
- Specified by:
getRestoreCommand in interface GameComponent
setup
public void setup(boolean gameStarting)
- Description copied from interface:
GameComponent
- Notify the GameComponent that a game has started/ended
- Specified by:
setup in interface GameComponent
- Following copied from interface:
VASSAL.build.module.GameComponent
- Parameters:
gameStarting - if true, a game is starting. If false, then a game is ending
save
public Command save()
captureState
public void captureState()
restoreState
public void restoreState()