This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.beans
interface Visibility

All Known Subinterfaces:
BeanContext

public interface Visibility

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 Summary
 boolean

          Determines whether this bean is avoiding using a GUI.
 void

          This method instructs the bean that it should not use the Gui.
 boolean

          Determines whether this bean needs a GUI.
 void

          This method instructs the bean that it is OK to use the Gui.
 

Method Detail

avoidingGui

public boolean avoidingGui()
Determines whether this bean is avoiding using a GUI.

Returns:
true if the bean is currently avoiding use of the Gui. e.g. due to a call on dontUseGui().

dontUseGui

public void dontUseGui()
This method instructs the bean that it should not use the Gui.


needsGui

public boolean needsGui()
Determines whether this bean needs a GUI.

Returns:
True if the bean absolutely needs a GUI available in order to get its work done.

okToUseGui

public void okToUseGui()
This method instructs the bean that it is OK to use the Gui.



This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.