Class BooleanPropertyMenuEnableListener
java.lang.Object
org.openjump.core.ui.enablecheck.BooleanPropertyMenuEnableListener
- All Implemented Interfaces:
EventListener, MenuListener
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanPropertyMenuEnableListener(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
Modifier and TypeMethodDescriptionvoidvoidvoidmenuItemShown(JMenuItem menuItem) voidmenuSelected(MenuEvent event)
-
Constructor Details
-
BooleanPropertyMenuEnableListener
-
BooleanPropertyMenuEnableListener
-
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 Details