|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.interactor.IlpInteractorAction
ilog.cpl.interactor.IlpKeyStrokeAction
public class IlpKeyStrokeAction
This class represents a bean object that stores information about key strokes and actions to be used by interactors.
A key stroke action is defined by the following attributes:
KeyStroke) that is recognized
by the interactor.
Action) that specifies the operation
to be performed once the keystroke is recognized.
This class provides support to define interactors using a CSS, as follows:
Interactor {
viewInteractor: @+viewInt;
}
Subobject#viewInt {
class: 'ilog.cpl.interactor.IlpDefaultViewInteractor';
action[0]: @+keyAction0;
}
Subobject#keyAction0 {
class: 'ilog.cpl.interactor.IlpKeyStrokeAction';
keyStroke: 'typed a';
action: @+action0;
}
Subobject#action0 {
class: 'mypackage.myActionClass';
}
| Constructor Summary | |
|---|---|
IlpKeyStrokeAction()
Default constructor. |
|
IlpKeyStrokeAction(KeyStroke k,
Action a)
Creates a new interactor action with the given configuration. |
|
| Method Summary | |
|---|---|
KeyStroke |
getKeyStroke()
Returns the key stroke that triggers an action in the interactor. |
void |
setKeyStroke(KeyStroke k)
Defines a key stroke which is used to trigger an action. |
| Methods inherited from class ilog.cpl.interactor.IlpInteractorAction |
|---|
getAction, setAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpKeyStrokeAction()
public IlpKeyStrokeAction(KeyStroke k,
Action a)
k - KeyStroke.a - Action that will be triggered.| Method Detail |
|---|
public void setKeyStroke(KeyStroke k)
KeyStroke.getKeyStroke(java.lang.String)
k - Key stroke.KeyStrokepublic KeyStroke getKeyStroke()
KeyStroke
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||