Package org.openjump.core.ui.enablecheck
Class BooleanPropertyMenuEnableListener
- java.lang.Object
-
- org.openjump.core.ui.enablecheck.BooleanPropertyMenuEnableListener
-
- All Implemented Interfaces:
EventListener,MenuListener
public class BooleanPropertyMenuEnableListener extends Object implements MenuListener
-
-
Constructor Summary
Constructors Constructor Description BooleanPropertyMenuEnableListener(JMenuItem menuItem, Object object, String checkMethodName)BooleanPropertyMenuEnableListener(JMenuItem menuItem, Object object, String checkMethodName, boolean expectedValue, String enabledToolTip, String disabledToolTip)BooleanPropertyMenuEnableListener(JMenuItem menuItem, Object object, String checkMethodName, String enabledToolTip, String disabledToolTip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmenuCanceled(MenuEvent e)voidmenuDeselected(MenuEvent e)voidmenuItemShown(JMenuItem menuItem)voidmenuSelected(MenuEvent event)
-
-
-
Constructor Detail
-
BooleanPropertyMenuEnableListener
public BooleanPropertyMenuEnableListener(JMenuItem menuItem, Object object, String checkMethodName)
- Parameters:
object- The object to invoke the method on.checkMethodName- The name of the check method which returns a boolean value.
-
BooleanPropertyMenuEnableListener
public BooleanPropertyMenuEnableListener(JMenuItem menuItem, Object object, String checkMethodName, String enabledToolTip, String disabledToolTip)
- Parameters:
object- The object to invoke the method on.checkMethodName- The name of the check method which returns a boolean value.
-
BooleanPropertyMenuEnableListener
public BooleanPropertyMenuEnableListener(JMenuItem menuItem, Object object, String checkMethodName, boolean expectedValue, String enabledToolTip, String disabledToolTip)
- Parameters:
object- The object to invoke the method on.checkMethodName- The name of the check method which returns a boolean value.expectedValue- The expected value to be returned for the check to be enabled.
-
-
Method Detail
-
menuItemShown
public void menuItemShown(JMenuItem menuItem)
-
menuCanceled
public void menuCanceled(MenuEvent e)
- Specified by:
menuCanceledin interfaceMenuListener
-
menuDeselected
public void menuDeselected(MenuEvent e)
- Specified by:
menuDeselectedin interfaceMenuListener
-
menuSelected
public void menuSelected(MenuEvent event)
- Specified by:
menuSelectedin interfaceMenuListener
-
-