|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.states.EasikState
public abstract class EasikState
This is the base state. It contains stubs and abstract methods for allowing a class to be treated like a state, and to take part in the State Manager
Field Summary | |
---|---|
private boolean |
_cancelOn
Records the state of the cancel button |
private boolean |
_finishOn
Records the state of the finish button |
private boolean |
_nextOn
Records state of the next button |
protected Sketch |
_ourSketch
The current sketch |
Constructor Summary | |
---|---|
EasikState()
|
Method Summary | |
---|---|
void |
cancelClicked()
Optional hook for when the cancel button is clicked |
void |
finishClicked()
Optional hook for when the finish button is clicked. |
void |
gotFocus()
When this state gets the top spot again, this gets executed. |
void |
nextClicked()
Optional hook for when the next button is clicked |
abstract void |
poppedOff()
Hook to record when state has been popped off |
abstract void |
pushedOn()
Hook to record when state has been pushed on |
void |
resetColors()
Resets the graph colors to what they are by default. |
void |
selectionUpdated()
Hook to record when selection has been updated |
protected void |
setCancelButton(boolean inButton)
Use this function to toggle the usability of the cancel button. |
protected void |
setFinishButton(boolean inButton)
Use this function to toggle the usability of the finish button. |
protected void |
setNextButton(boolean inButton)
Use this function to toggle the usability of the ok button. |
abstract java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private boolean _nextOn
private boolean _cancelOn
private boolean _finishOn
protected Sketch _ourSketch
Constructor Detail |
---|
public EasikState()
Method Detail |
---|
public void selectionUpdated()
public abstract void pushedOn()
public abstract void poppedOff()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public void gotFocus()
public void cancelClicked()
public void nextClicked()
public void finishClicked()
protected void setCancelButton(boolean inButton)
inButton
- Status of the buttonprotected void setNextButton(boolean inButton)
inButton
- Status of the buttonprotected void setFinishButton(boolean inButton)
inButton
- Status of the buttonpublic void resetColors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |