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

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

public class AndGUIAvailabilityComponentAdapter
extends AndGUIAvailabilityListener

Adapter from Component to ComplexGUIAvailabilityListener.

Version:
$Id: AndGUIAvailabilityComponentAdapter.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.AndGUIAvailabilityListener
_components, _lastValue, _notifier
 
Constructor Summary
AndGUIAvailabilityComponentAdapter(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.AndGUIAvailabilityListener
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

AndGUIAvailabilityComponentAdapter

public AndGUIAvailabilityComponentAdapter(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 AndGUIAvailabilityListener
Parameters:
available - true if all components are available