Class SetEnabledManager


  • public class SetEnabledManager
    extends SetValueManager
    Typesafe observable for objects that have a 'setEnabled(boolean)' method 'setEnabled(String)' is the call back function/event Support for any component like Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, TextComponent is already implemented. If you need more kinds of objects i.e. classes 1) provide a SPECIFIC (not for any Object) method add(NewClass newClass), 2) provide a testcase in SetEnabledManagerTest AND 3) run the test successfully Implemented with the non typesafe setvalue class
    Author:
    schuette
    • Constructor Detail

      • SetEnabledManager

        public SetEnabledManager​(boolean startValue)
        Parameters:
        startValue - a default String start with. null will be replaced by empty string ""
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean startValue)
        Parameters:
        startValue - all registered clients will be receive a method call to setEnabled(startValue)
      • add

        public void add​(java.awt.Component component)
        Parameters:
        component - a component for automated setEnabled(boolean) like Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, TextComponent