edu.rice.cs.drjava.ui.avail
Class OrGUIAvailabilityComponentAdapter

java.lang.Object
  extended by edu.rice.cs.drjava.ui.avail.OrGUIAvailabilityListener
      extended by edu.rice.cs.drjava.ui.avail.OrGUIAvailabilityComponentAdapter
All Implemented Interfaces:
GUIAvailabilityListener

public class OrGUIAvailabilityComponentAdapter
extends OrGUIAvailabilityListener

Adapter from Component to ComplexGUIAvailabilityListener.

Version:
$Id: OrGUIAvailabilityComponentAdapter.java 5355 2010-08-11 21:20:32Z mgricken $

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.rice.cs.drjava.ui.avail.GUIAvailabilityListener
GUIAvailabilityListener.ComponentType
 
Field Summary
protected  Component _adaptee
           
 
Fields inherited from class edu.rice.cs.drjava.ui.avail.OrGUIAvailabilityListener
_components, _lastValue, _notifier
 
Constructor Summary
OrGUIAvailabilityComponentAdapter(Component adaptee, GUIAvailabilityNotifier notifier, GUIAvailabilityListener.ComponentType... components)
          Create a listener that responds to changes in availability of several GUI components.
 
Method Summary
 void availabilityChanged(boolean available)
          Called when the combined availability of all components changes.
 
Methods inherited from class edu.rice.cs.drjava.ui.avail.OrGUIAvailabilityListener
availabilityChanged, isAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_adaptee

protected final Component _adaptee
Constructor Detail

OrGUIAvailabilityComponentAdapter

public OrGUIAvailabilityComponentAdapter(Component adaptee,
                                         GUIAvailabilityNotifier notifier,
                                         GUIAvailabilityListener.ComponentType... components)
Create a listener that responds to changes in availability of several GUI components.

Parameters:
components - components that must be available
Method Detail

availabilityChanged

public void availabilityChanged(boolean available)
Called when the combined availability of all components changes.

Specified by:
availabilityChanged in class OrGUIAvailabilityListener
Parameters:
available - true if all components are available