Class BooleanPropertyMenuEnableListener

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