|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.AbstractWidgetWrapper
| Field Summary | |
protected AbstractWidget |
widget
|
| Fields inherited from interface edu.washington.cs.supple.render.Widget |
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET |
| Constructor Summary | |
AbstractWidgetWrapper(Widget widget)
|
|
| Method Summary | |
java.util.Iterator |
childIterator()
|
java.lang.Object |
clone()
|
Widget |
clone(WidgetBag bag)
A convenience method -- clones the widget and sets the value of the owner widget bag (used when cloning widget bags) |
void |
disengage()
Used to break the connection between the widget and the underlying ui object |
void |
engage()
Used to tie the widgets with the underlying ui objects |
boolean |
equals(java.lang.Object obj)
|
WidgetBag |
getBag()
Returns the widget bag containing this widget; widget bags are used in the search process as holders of the possible renderings for each UI element; |
ConcreteWidget |
getConcreteWidget(int hints)
Returns the concrete component (specific to a particular platform) |
float |
getCost()
Returns the cost assigned to this widget instance |
float |
getEffortEstimate(ActionDescription a)
|
java.util.Vector |
getPath()
Returns path (from the root) to this widget in the interface (ignoring shortcuts) |
java.awt.Dimension |
getSize(int hints)
|
java.awt.Dimension |
getSizeCache(int hints)
|
java.lang.String |
getTextLabel()
Returns the text label assigned to this widget |
SuppleType |
getType()
Returns the type of the corresponding UI object |
UiObject |
getUiObject()
Returns the corresponding UI object |
WidgetDescriptor |
getWidgetDescriptor()
Returns a descriptor for this widget |
WidgetProperties |
getWidgetProperties()
Returns the corresponding WidgetProperties |
protected abstract WidgetWrapper |
getWrapper(Widget widget)
|
boolean |
hasChildren()
|
int |
hashCode()
|
boolean |
isEngaged()
|
boolean |
isEquivalent(Widget w)
Checks if two widgets are equivalent to each other; they are equivalent if they have identical widget descriptors |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
setBag(WidgetBag bag)
Sets the widget bag that contains this widget; widget bags are used in the search process as holders of the possible renderings for each UI element; Do not use this method! |
void |
setCost(float cost)
Assigns cost to this widget instance (based on the underlying element, device and user models); called by the search routine during initial assignment of widgets to elements. |
void |
setEnabled(boolean e)
This method is exposed only so that wrappers can access it; others should stay away |
void |
setParent(Widget parent)
Sets the parent widget |
void |
setSizeCache(int hints,
java.awt.Dimension dim)
|
void |
setWrapper(WidgetWrapper wrapper)
|
java.lang.String |
toString()
|
UnwrappedWidget |
unwrapWidget()
Returns the enclosed widget for wrappers or self for actual widgets |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.washington.cs.supple.render.Widget |
getConcreteWidget |
| Field Detail |
protected AbstractWidget widget
| Constructor Detail |
public AbstractWidgetWrapper(Widget widget)
| Method Detail |
protected abstract WidgetWrapper getWrapper(Widget widget)
public ConcreteWidget getConcreteWidget(int hints)
Widget
getConcreteWidget in interface Widgethints - rendering hints
public java.lang.Object clone()
clone in interface Widgetpublic Widget clone(WidgetBag bag)
clone in interface Widgetbag - the new owning widget bag
public UnwrappedWidget unwrapWidget()
Widget
unwrapWidget in interface Widgetpublic void setWrapper(WidgetWrapper wrapper)
setWrapper in interface Widgetpublic java.util.Iterator childIterator()
childIterator in interface Widgetpublic boolean equals(java.lang.Object obj)
public boolean isEquivalent(Widget w)
Widget
isEquivalent in interface Widgetw -
public WidgetBag getBag()
Widget
getBag in interface Widgetpublic float getCost()
Widget
getCost in interface Widgetpublic float getEffortEstimate(ActionDescription a)
getEffortEstimate in interface Widgeta -
public java.util.Vector getPath()
Widget
getPath in interface Widgetpublic java.lang.String getTextLabel()
Widget
getTextLabel in interface Widgetpublic SuppleType getType()
Widget
getType in interface Widgetpublic UiObject getUiObject()
Widget
getUiObject in interface Widgetpublic WidgetDescriptor getWidgetDescriptor()
Widget
getWidgetDescriptor in interface Widgetpublic WidgetProperties getWidgetProperties()
Widget
getWidgetProperties in interface Widgetpublic boolean hasChildren()
hasChildren in interface Widgetpublic int hashCode()
public void setBag(WidgetBag bag)
Widget
setBag in interface Widgetbag - public void setCost(float cost)
Widget
setCost in interface Widgetcost - public void disengage()
Widget
disengage in interface Widgetpublic void engage()
Widget
engage in interface Widgetpublic boolean isEngaged()
isEngaged in interface Widgetpublic void setEnabled(boolean e)
Widget
setEnabled in interface Widgete - public java.awt.Dimension getSize(int hints)
getSize in interface Widgethints -
public java.awt.Dimension getSizeCache(int hints)
getSizeCache in interface Widgethints -
public void setSizeCache(int hints,
java.awt.Dimension dim)
setSizeCache in interface Widgethints - dim - public void setParent(Widget parent)
Widget
setParent in interface Widgetparent - public java.lang.String toString()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||