Class BooleanPropertyMenuEnableListener

java.lang.Object
org.openjump.core.ui.enablecheck.BooleanPropertyMenuEnableListener
All Implemented Interfaces:
EventListener, MenuListener

public class BooleanPropertyMenuEnableListener extends Object implements MenuListener
  • Constructor Details

    • 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 Details