edu.washington.cs.supple.wlib.awt
Class SimpleAwtWidgetWrapper
java.lang.Object
edu.washington.cs.supple.render.AbstractWidgetWrapper
edu.washington.cs.supple.wlib.awt.SimpleAwtWidgetWrapper
- All Implemented Interfaces:
- AwtWidget, java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, Widget, WidgetWrapper
- public class SimpleAwtWidgetWrapper
- extends AbstractWidgetWrapper
- implements WidgetWrapper, AwtWidget
- Author:
- kgajos
| Methods inherited from class edu.washington.cs.supple.render.AbstractWidgetWrapper |
childIterator, clone, clone, disengage, engage, equals, getBag, getConcreteWidget, getCost, getEffortEstimate, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, hashCode, isEngaged, isEquivalent, propertyChange, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, toString, unwrapWidget |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.washington.cs.supple.render.Widget |
childIterator, clone, clone, disengage, engage, getBag, getConcreteWidget, getCost, getEffortEstimate, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget |
awtWidget
protected AwtWidget awtWidget
abstractWidget
protected AbstractWidget abstractWidget
finalComponent
protected transient java.awt.Component finalComponent
currentComponent
protected java.awt.Component currentComponent
SimpleAwtWidgetWrapper
public SimpleAwtWidgetWrapper(AwtWidget widget)
getWrapper
protected WidgetWrapper getWrapper(Widget widget)
- Specified by:
getWrapper in class AbstractWidgetWrapper
getSize
public java.awt.Dimension getSize(int hints)
- Returns the size of the widget as rendered with all of the hints
specified in the parameter; uses caching wherever possible
- Specified by:
getSize in interface Widget- Overrides:
getSize in class AbstractWidgetWrapper
- Parameters:
hints -
- Returns:
getConcreteWidget
public ConcreteWidget getConcreteWidget(java.io.Serializable renderingContext,
int hints)
- Description copied from interface:
Widget
- Returns the concrete component (specific to a particular platform)
- Specified by:
getConcreteWidget in interface Widget
- Parameters:
renderingContext - extra context information requried by some platformshints - rendering hints
- Returns:
getAwtComponent
public java.awt.Component getAwtComponent(int hints)
- Specified by:
getAwtComponent in interface AwtWidget
- Parameters:
hints -
- Returns:
refreshDisplay
public void refreshDisplay()