|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback
com.planet_ink.coffee_mud.Common.interfaces.Session.TickingCallback
public abstract static class Session.TickingCallback
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback |
|---|
Session.InputCallback.Type |
| Field Summary | |
|---|---|
protected java.lang.StringBuilder |
collectedInput
|
protected int |
counter
|
| Fields inherited from class com.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback |
|---|
confirmed, input, noTrim, timeout, timeoutMs, waiting |
| Constructor Summary | |
|---|---|
Session.TickingCallback(long tickerMs)
Only constructor is the one to tell out often to call back. |
|
| Method Summary | |
|---|---|
void |
callBack()
This method is called if the user hits ENTER, and their input data is valid (one of the choices for CHOOSE or CONFIRM), or anything else for PROMPT. |
void |
setInput(java.lang.String input)
Forces user-input into this class, potentially changing its user input waiting state. |
void |
showPrompt()
TimeOutCallback has no prompt |
abstract boolean |
tick(int counter)
This method id called every ticker ms with an incremented counter. |
void |
timedOut()
This method is call by InputCallback if a timeout value greater than 0 is given and that amount of time has been exceeded. |
| Methods inherited from class com.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback |
|---|
isTimedOut, reset, waitForInput |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile int counter
protected final java.lang.StringBuilder collectedInput
| Constructor Detail |
|---|
public Session.TickingCallback(long tickerMs)
tickerMs - the time is ms between timeouts| Method Detail |
|---|
public void showPrompt()
showPrompt in class Session.InputCallbackpublic void callBack()
Session.InputCallback
callBack in class Session.InputCallbackpublic void setInput(java.lang.String input)
Session.InputCallback
setInput in class Session.InputCallbackinput - the user input to forcepublic void timedOut()
Session.InputCallback
timedOut in class Session.InputCallbackpublic abstract boolean tick(int counter)
counter - the counter, higher than the last time
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||