Save This Page
Home » openjdk-7 » java » beans » [javadoc | source]
java.beans
public interface: Visibility [javadoc | source]

All Known Implementing Classes:
    BeanContextServices, BeanContextServicesSupport, BeanContext, BeanContextSupport

Under some circumstances a bean may be run on servers where a GUI is not available. This interface can be used to query a bean to determine whether it absolutely needs a gui, and to advise the bean whether a GUI is available.

This interface is for expert developers, and is not needed for normal simple beans. To avoid confusing end-users we avoid using getXXX setXXX design patterns for these methods.
Method from java.beans.Visibility Summary:
avoidingGui,   dontUseGui,   needsGui,   okToUseGui
Method from java.beans.Visibility Detail:
 public boolean avoidingGui()
    Determines whether this bean is avoiding using a GUI.
 public  void dontUseGui()
    This method instructs the bean that it should not use the Gui.
 public boolean needsGui()
    Determines whether this bean needs a GUI.
 public  void okToUseGui()
    This method instructs the bean that it is OK to use the Gui.