org.malai.interaction
Class ButtonPressedTransition
java.lang.Object
org.malai.interaction.Transition
org.malai.interaction.ButtonPressedTransition
- All Implemented Interfaces:
- ITransition
public class ButtonPressedTransition
- extends Transition
This transition must be used to use a button pressed event within an interaction.
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.
06/01/2010
- Since:
- 0.1
- Author:
- Arnaud BLOUIN
Field Summary |
protected javax.swing.AbstractButton |
button
The pressed button. |
Method Summary |
javax.swing.AbstractButton |
getButton()
|
void |
setButton(javax.swing.AbstractButton button)
Sets the pressed button. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
button
protected javax.swing.AbstractButton button
- The pressed button.
ButtonPressedTransition
public ButtonPressedTransition(SourceableState inputState,
TargetableState outputState)
Transition.Transition(SourceableState, TargetableState)
getButton
public javax.swing.AbstractButton getButton()
- Returns:
- The pressed button.
- Since:
- 0.1
setButton
public void setButton(javax.swing.AbstractButton button)
- Sets the pressed button.
- Parameters:
button
- The pressed button. Must not be null.- Since:
- 0.2