|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Field Summary | |
static int |
MAX_HINT
|
static int |
NO_BORDER
|
static int |
NO_NAME
|
static int |
TOP_LEVEL_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 |
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) |
ConcreteWidget |
getConcreteWidget(java.io.Serializable renderingContext,
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 |
boolean |
hasChildren()
|
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 |
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)
|
UnwrappedWidget |
unwrapWidget()
Returns the enclosed widget for wrappers or self for actual widgets |
| Field Detail |
public static final int NO_BORDER
public static final int NO_NAME
public static final int TOP_LEVEL_WIDGET
public static final int MAX_HINT
| Method Detail |
public SuppleType getType()
public UiObject getUiObject()
public ConcreteWidget getConcreteWidget(int hints)
hints - rendering hints
public ConcreteWidget getConcreteWidget(java.io.Serializable renderingContext,
int hints)
renderingContext - extra context information requried by some platformshints - rendering hints
public WidgetProperties getWidgetProperties()
public WidgetDescriptor getWidgetDescriptor()
public WidgetBag getBag()
public void setBag(WidgetBag bag)
bag - the widget bag that contains this widgetpublic java.lang.String getTextLabel()
public float getCost()
public void setCost(float cost)
cost - the new costpublic java.awt.Dimension getSize(int hints)
hints - extra information concerning the variant of the widget that
the size is needed for; at the moment I envision that some
times we will want border-less and nameless versions of the
widget
public java.awt.Dimension getSizeCache(int hints)
public void setSizeCache(int hints,
java.awt.Dimension dim)
public boolean hasChildren()
public java.util.Iterator childIterator()
public void setParent(Widget parent)
parent - the parent widgetpublic void engage()
public boolean isEngaged()
public void disengage()
public void setEnabled(boolean e)
e - public java.util.Vector getPath()
public java.lang.Object clone()
public Widget clone(WidgetBag bag)
bag - the new owning widget bag
public float getEffortEstimate(ActionDescription a)
public UnwrappedWidget unwrapWidget()
public void setWrapper(WidgetWrapper wrapper)
public boolean isEquivalent(Widget w)
w -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||