|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.AbstractTriggerState
de.cau.cs.kieler.core.kivi.menu.ButtonTrigger.ButtonState
public static class ButtonTrigger.ButtonState
Contains information about the last view management button pressed.
Constructor Summary | |
---|---|
ButtonTrigger.ButtonState()
Default constructor. |
|
ButtonTrigger.ButtonState(IEditorPart editorPart,
String id,
Map<?,?> params,
boolean pushed)
Create a new button state for the given editor and button id. |
Method Summary | |
---|---|
String |
getButtonId()
Get the id for the last button pressed. |
IEditorPart |
getEditor()
Get the active editor associated with the button. |
Map<?,?> |
getParameters()
Get the parameters of the button. |
Class<? extends ITrigger> |
getTriggerClass()
Get the trigger class associated with this trigger state. |
boolean |
isPushedIn()
Check if a toggle button is pushed in or not. |
boolean |
isPushedIn(String thebuttonId)
Get the map of button IDs to the state of the button. |
void |
merge(ITriggerState previous)
Merge this state instance with the previous instance in case of delta trigger events. |
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractTriggerState |
---|
finish, getKeyClass, getSequenceNumber, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ButtonTrigger.ButtonState()
public ButtonTrigger.ButtonState(IEditorPart editorPart, String id, Map<?,?> params, boolean pushed)
editorPart
- the active editorid
- the button idparams
- a map of button parameterspushed
- true if a toggle button is pushed inMethod Detail |
---|
public IEditorPart getEditor()
public String getButtonId()
public Map<?,?> getParameters()
public boolean isPushedIn()
public Class<? extends ITrigger> getTriggerClass()
public boolean isPushedIn(String thebuttonId)
thebuttonId
- the button identifier
public void merge(ITriggerState previous)
merge
in interface ITriggerState
merge
in class AbstractTriggerState
previous
- the previous instance of this trigger state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |