|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.interaction.Interaction
org.malai.interaction.library.KeysTyped
public class KeysTyped
A KeyTyped interaction occurs when several keys are typed. It stops when the defined timeout expired.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
08/13/2011
Field Summary | |
---|---|
protected java.util.List<java.lang.Integer> |
keys
The keys pressed while scrolling. |
protected java.lang.Object |
object
The object that produced the interaction. |
protected TimeoutTransition |
timeoutTransition
The timeout transition. |
Fields inherited from class org.malai.interaction.Interaction |
---|
activated, currentState, currentTimeout, handlers, initState, lastHIDUsed, states, stillProcessingEvents |
Constructor Summary | |
---|---|
KeysTyped()
Creates the interaction. |
Method Summary | |
---|---|
java.util.List<java.lang.Integer> |
getKeys()
|
java.lang.Object |
getObject()
|
int |
getTimeout()
|
protected void |
initStateMachine()
Initialises the interaction: creates the states and the transitions. |
void |
reinit()
Reinits the state machine. |
void |
setTimeout(int timeout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.lang.Integer> keys
protected TimeoutTransition timeoutTransition
protected java.lang.Object object
Constructor Detail |
---|
public KeysTyped()
Method Detail |
---|
public void reinit()
IStateMachine
reinit
in interface IStateMachine
reinit
in class Interaction
protected void initStateMachine()
Interaction
initStateMachine
in class Interaction
public java.util.List<java.lang.Integer> getKeys()
public int getTimeout()
public void setTimeout(int timeout)
timeout
- the timeout to set. Must be greater than 0.public java.lang.Object getObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |