com.partnersoft.v3x.gadgets
Class SelectedToggle

java.lang.Object
  extended by com.partnersoft.v3x.gadgets.ToggleGadget
      extended by com.partnersoft.v3x.gadgets.SelectedToggle
All Implemented Interfaces:
SpecificationListener, Toggle, java.util.EventListener

public class SelectedToggle
extends ToggleGadget
implements SpecificationListener

A toggle that is true when an specified item is non-null, and false otherwise. Useful for EnablementManagers that depend on item selections to turn on action buttons that apply to a selected item.


Constructor Summary
SelectedToggle()
           
 
Method Summary
 void itemSpecified(SpecificationEvent evt)
           
 
Methods inherited from class com.partnersoft.v3x.gadgets.ToggleGadget
addToggleListener, isOn, removeToggleListener, setOn, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectedToggle

public SelectedToggle()
Method Detail

itemSpecified

public void itemSpecified(SpecificationEvent evt)
Specified by:
itemSpecified in interface SpecificationListener