Name

Interface java.beans.Visibility

Description

This interface can be implemented by Beans that may run on systems where a graphical user interface isn’t available. The methods of this interface can be invoked to determine if a Bean requires the GUI to accomplish its task, as well as to inform the Bean as to whether the GUI is available.

Class Definition

public interface Visibility 
{
   // methods
   boolean avoidingGui();
   void dontUseGui();
   boolean needsGui();
   void okToUseGui();
}

Get Developing Java Beans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.