Class SetVisibleManager


  • public class SetVisibleManager
    extends SetValueManager
    Typesafe observable for objects that have a 'setVisible(boolean)' method 'setVisible(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 SetVisibleManagerTest AND 3) run the test successfully Implemented with the non typesafe setvalue class
    Author:
    schuette
    • Constructor Detail

      • SetVisibleManager

        public SetVisibleManager​(boolean startValue)
        Parameters:
        startValue - wether visible or not
    • Method Detail

      • setVisible

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

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