edu.washington.cs.supple.wlib.awt
Class SimpleAwtWidgetWrapper

java.lang.Object
  extended byedu.washington.cs.supple.render.AbstractWidgetWrapper
      extended byedu.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

Field Summary
protected  AbstractWidget abstractWidget
           
protected  AwtWidget awtWidget
           
protected  java.awt.Component currentComponent
           
protected  java.awt.Component finalComponent
           
 
Fields inherited from class edu.washington.cs.supple.render.AbstractWidgetWrapper
widget
 
Fields inherited from interface edu.washington.cs.supple.render.Widget
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET
 
Constructor Summary
SimpleAwtWidgetWrapper(AwtWidget widget)
           
 
Method Summary
 java.awt.Component getAwtComponent(int hints)
           
 ConcreteWidget getConcreteWidget(java.io.Serializable renderingContext, int hints)
          Returns the concrete component (specific to a particular platform)
 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
protected  WidgetWrapper getWrapper(Widget widget)
           
 void refreshDisplay()
           
 
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
 

Field Detail

awtWidget

protected AwtWidget awtWidget

abstractWidget

protected AbstractWidget abstractWidget

finalComponent

protected transient java.awt.Component finalComponent

currentComponent

protected java.awt.Component currentComponent
Constructor Detail

SimpleAwtWidgetWrapper

public SimpleAwtWidgetWrapper(AwtWidget widget)
Method Detail

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 platforms
hints - rendering hints
Returns:

getAwtComponent

public java.awt.Component getAwtComponent(int hints)
Specified by:
getAwtComponent in interface AwtWidget
Parameters:
hints -
Returns:

refreshDisplay

public void refreshDisplay()