edu.washington.cs.supple.wlib.java2
Class LegalValuesComboBoxWidget

java.lang.Object
  extended byedu.washington.cs.supple.render.AbstractWidget
      extended byedu.washington.cs.supple.render.SimpleWidget
          extended byedu.washington.cs.supple.wlib.java2.AbstractComboBoxWidget
              extended byedu.washington.cs.supple.wlib.java2.LegalValuesComboBoxWidget
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, SwingWidget, UnwrappedWidget, Widget

public class LegalValuesComboBoxWidget
extends AbstractComboBoxWidget

Author:
kgajos

Field Summary
 
Fields inherited from class edu.washington.cs.supple.wlib.java2.AbstractComboBoxWidget
cbox, LEGAL_VALS, LIKELY_VALS, mode, stateVar
 
Fields inherited from class edu.washington.cs.supple.render.AbstractWidget
bag, cost, engaged, object, parent, textLabel, type, widgetDescriptor, wrapper
 
Fields inherited from interface edu.washington.cs.supple.render.Widget
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET
 
Constructor Summary
LegalValuesComboBoxWidget(UiObject object)
           
 
Method Summary
 WidgetProperties getWidgetProperties()
          Returns the corresponding WidgetProperties
protected  void legalValuesChanged(java.beans.PropertyChangeEvent evt)
          Subclasses should override this method if they want to update display in response to the change in the legal values
static boolean rendersObject(UiObject object)
          A static method for testing the applicability of the widget given a type of the UI component to be rendered
 java.lang.String toString()
           
 
Methods inherited from class edu.washington.cs.supple.wlib.java2.AbstractComboBoxWidget
getSwingComponent, makeComboBoxModel, makeComboBoxModel, setEnabled, updateModel, updateSelection, valueChanged
 
Methods inherited from class edu.washington.cs.supple.render.SimpleWidget
childIterator, getEffortEstimate, hasChildren
 
Methods inherited from class edu.washington.cs.supple.render.AbstractWidget
anotherPropertyChanged, clone, clone, disengage, dismissCurrentView, displayDynamic, engage, equals, executeAction, generateWidgetDescriptor, getBag, getConcreteWidget, getConcreteWidget, getCost, getParent, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, indexChanged, isEngaged, isEquivalent, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setParent, setSizeCache, setValue, setWrapper, unwrapWidget
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.cs.supple.render.Widget
childIterator, clone, clone, disengage, engage, getBag, getConcreteWidget, getConcreteWidget, getCost, getEffortEstimate, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, hasChildren, isEngaged, isEquivalent, setBag, setCost, setParent, setSizeCache, setWrapper, unwrapWidget
 

Constructor Detail

LegalValuesComboBoxWidget

public LegalValuesComboBoxWidget(UiObject object)
Method Detail

getWidgetProperties

public WidgetProperties getWidgetProperties()
Description copied from interface: Widget
Returns the corresponding WidgetProperties

Specified by:
getWidgetProperties in interface Widget
Overrides:
getWidgetProperties in class AbstractComboBoxWidget
Returns:
properties associated with this widget

rendersObject

public static boolean rendersObject(UiObject object)
A static method for testing the applicability of the widget given a type of the UI component to be rendered

Returns:
true where AbstractComboBox returns true provided that the type is enumerable

legalValuesChanged

protected void legalValuesChanged(java.beans.PropertyChangeEvent evt)
Description copied from class: AbstractWidget
Subclasses should override this method if they want to update display in response to the change in the legal values

Overrides:
legalValuesChanged in class AbstractWidget
Parameters:
evt - property change event with details

toString

public java.lang.String toString()
Overrides:
toString in class AbstractComboBoxWidget