edu.washington.cs.supple.wlib.awt
Class ButtonWidget
java.lang.Object
edu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.SimpleWidget
edu.washington.cs.supple.wlib.awt.ButtonWidget
- All Implemented Interfaces:
- AwtWidget, java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, UnwrappedWidget, Widget
- public class ButtonWidget
- extends SimpleWidget
- implements AwtWidget
- Author:
- Jing Jing Long
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
| 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, legalValuesChanged, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setParent, setSizeCache, setValue, setWrapper, unwrapWidget, valueChanged |
| 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 |
button
protected java.awt.Button button
actionType
protected ActionType actionType
ButtonWidget
public ButtonWidget(UiObject object)
getWidgetProperties
public WidgetProperties getWidgetProperties()
- Description copied from interface:
Widget
- Returns the corresponding WidgetProperties
- Specified by:
getWidgetProperties in interface Widget- Overrides:
getWidgetProperties in class AbstractWidget
- 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 for all actions with no parameters; false otherwise
getAwtComponent
public java.awt.Component getAwtComponent(int hints)
- Specified by:
getAwtComponent in interface AwtWidget
- Parameters:
hints - specifies the variant of the widget to be rendered
- Returns:
- a renderable component
setEnabled
public void setEnabled(boolean enabled)
- Description copied from interface:
Widget
- This method is exposed only so that wrappers can access it; others should
stay away
- Specified by:
setEnabled in interface Widget- Overrides:
setEnabled in class AbstractWidget
- Parameters:
enabled - indicates if the underlying object is active
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractWidget