Package VASSAL.tools.menu
Class CheckBoxMenuItemProxy
- All Implemented Interfaces:
ItemListener
,EventListener
,ChildProxy<JCheckBoxMenuItem>
public class CheckBoxMenuItemProxy extends AbstractProxy<JCheckBoxMenuItem> implements ItemListener
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Field Summary
Fields inherited from class VASSAL.tools.menu.AbstractProxy
parent, peers, queue
-
Constructor Summary
Constructors Constructor Description CheckBoxMenuItemProxy()
CheckBoxMenuItemProxy(Action action)
CheckBoxMenuItemProxy(Action action, boolean state)
-
Method Summary
Modifier and Type Method Description JCheckBoxMenuItem
createPeer()
Action
getAction()
boolean
isSelected()
void
itemStateChanged(ItemEvent e)
void
setAction(Action action)
void
setSelected(boolean state)
Methods inherited from class VASSAL.tools.menu.AbstractProxy
forEachPeer, getParent, processQueue, setParent
-
Constructor Details
-
CheckBoxMenuItemProxy
public CheckBoxMenuItemProxy() -
CheckBoxMenuItemProxy
-
CheckBoxMenuItemProxy
-
-
Method Details
-
getAction
-
setAction
-
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean state) -
createPeer
- Specified by:
createPeer
in interfaceChildProxy<JCheckBoxMenuItem>
- Specified by:
createPeer
in classAbstractProxy<JCheckBoxMenuItem>
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-