org.malai.interaction
Class MenuItemTransition
java.lang.Object
org.malai.interaction.Transition
org.malai.interaction.MenuItemTransition
- All Implemented Interfaces:
- ITransition
public class MenuItemTransition
- extends Transition
This transition is mapped to a menu item that has been pressed.
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.
05/21/2010
- Since:
- 0.2
- Author:
- Arnaud BLOUIN
Field Summary |
protected javax.swing.JMenuItem |
menuItem
The pressed menu item. |
Method Summary |
javax.swing.JMenuItem |
getMenuItem()
|
void |
setMenuItem(javax.swing.JMenuItem menuItem)
Sets the menu item concerned by the transition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
menuItem
protected javax.swing.JMenuItem menuItem
- The pressed menu item.
MenuItemTransition
public MenuItemTransition(SourceableState inputState,
TargetableState outputState)
Transition.Transition(SourceableState, TargetableState)
- Since:
- 0.2
getMenuItem
public javax.swing.JMenuItem getMenuItem()
- Returns:
- The pressed menu item.
- Since:
- 0.2
setMenuItem
public void setMenuItem(javax.swing.JMenuItem menuItem)
- Sets the menu item concerned by the transition.
- Parameters:
menuItem
- The pressed menu item.- Since:
- 0.2