public class StateManager
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
StateManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(StateListener listener) |
void |
checkIn(Pazpar2Command command)
Registers a Pazpar2 command for execution.
|
Pazpar2Command |
getCommand(java.lang.String commandName) |
Pazpar2State |
getCurrentState() |
boolean |
hasPendingStateChange(java.lang.String command) |
void |
hasPendingStateChange(java.lang.String command,
boolean bool)
Sets a pending-state-change flag for the given command and notifies
registered listeners.
|
void |
removeStateListener(StateListener listener) |
void |
setCurrentStateKey(java.lang.String key)
Changes the current state key.
|
public void addStateListener(StateListener listener)
public void removeStateListener(StateListener listener)
public void checkIn(Pazpar2Command command)
command
- public Pazpar2Command getCommand(java.lang.String commandName)
public Pazpar2State getCurrentState()
public void setCurrentStateKey(java.lang.String key)
key
- public void hasPendingStateChange(java.lang.String command, boolean bool)
command
- bool
- public boolean hasPendingStateChange(java.lang.String command)
command
-