|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.AbstractContainerWidget
edu.washington.cs.supple.wlib.html.ContainerHtmlWidget
| Field Summary | |
static int |
LEFT
|
static java.lang.String |
LISTING_WIDGET_PROPERTY
|
protected HtmlWidget |
listingWidget
|
protected int |
listPlacement
|
protected static int |
MARGIN
the pixel size of the margin around the widget |
static int |
TOP
|
| Fields inherited from class edu.washington.cs.supple.render.AbstractContainerWidget |
children, containerType |
| Fields inherited from class edu.washington.cs.supple.render.AbstractWidget |
bag, cost, engaged, object, parent, stateVar, textLabel, type, widgetDescriptor, wrapper |
| Fields inherited from interface edu.washington.cs.supple.render.Widget |
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET |
| Constructor Summary | |
ContainerHtmlWidget(UiObject object)
|
|
ContainerHtmlWidget(UiObject object,
HtmlWidget lWidget,
int placement)
|
|
| Method Summary | |
protected java.awt.Dimension |
addActionButtonSize(java.awt.Dimension cdim)
Given the size for the container object, it adds the size for the action button; this method should be overriden by children that change the implementation of makeActionButton |
void |
disengage()
Used to break the connection between the widget and the underlying ui object |
HtmlView |
doAction(java.lang.String name)
This method is called when a user clicks an html button. |
void |
engage()
Used to tie the widgets with the underlying ui objects |
protected WidgetDescriptor |
generateWidgetDescriptor()
Subclasses can override this method if their widget descriptor include extra information |
ConcreteWidget |
getConcreteWidget(java.io.Serializable renderingContext,
int hints)
Returns the concrete component (specific to a particular platform) |
protected java.awt.Dimension |
getContainerSize(int hints)
Unless a child overrides getSize, it should override this method |
float |
getEffortEstimate(ActionDescription a)
|
java.lang.String |
getHtmlComponent(int hints)
Produces HTML code for that instance of the widget |
java.lang.String |
getHtmlId()
Get the unique id used to identify this widget within an HTML document. |
HtmlWidget |
getListingWidget()
|
java.awt.Dimension |
getSize(int hints)
|
WidgetProperties |
getWidgetProperties()
Returns the corresponding WidgetProperties |
boolean |
hasListingWidget()
|
protected abstract java.lang.String |
makeHtmlContainer(int hints)
Children have to implement this method -- just make the container and do not worry about border or label |
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 |
void |
setListingWidget(HtmlWidget listingWidget,
int placement)
|
void |
setParameterValue(java.lang.String name,
java.lang.String value)
This method is called in response to a user changing widget values. |
java.lang.String |
toString()
|
protected java.lang.String |
wrapListContainer(java.lang.String contents)
|
| Methods inherited from class edu.washington.cs.supple.render.AbstractContainerWidget |
childIterator, getChild, getChildFor, getMaxChildSize, getMaxChildSize, getMinChildSize, getSumChildSize, getSumChildSize, hasChildren, makeVisible, setChildren |
| Methods inherited from class edu.washington.cs.supple.render.AbstractWidget |
anotherPropertyChanged, clone, clone, dismissCurrentView, displayDynamic, equals, executeAction, getBag, getConcreteWidget, getCost, getParent, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, indexChanged, isEngaged, isEquivalent, legalValuesChanged, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setEnabled, 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, getBag, getConcreteWidget, getCost, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget |
| Field Detail |
protected HtmlWidget listingWidget
protected int listPlacement
public static final int LEFT
public static final int TOP
public static final java.lang.String LISTING_WIDGET_PROPERTY
protected static final int MARGIN
| Constructor Detail |
public ContainerHtmlWidget(UiObject object)
object -
public ContainerHtmlWidget(UiObject object,
HtmlWidget lWidget,
int placement)
| Method Detail |
public java.lang.String getHtmlId()
HtmlWidget
getHtmlId in interface HtmlWidget
public ConcreteWidget getConcreteWidget(java.io.Serializable renderingContext,
int hints)
Widget
getConcreteWidget in interface WidgetgetConcreteWidget in class AbstractWidgetpublic WidgetProperties getWidgetProperties()
Widget
getWidgetProperties in interface WidgetgetWidgetProperties in class AbstractContainerWidgetprotected WidgetDescriptor generateWidgetDescriptor()
AbstractWidget
generateWidgetDescriptor in class AbstractWidgetpublic static boolean rendersObject(UiObject object)
public java.awt.Dimension getSize(int hints)
getSize in interface WidgetgetSize in class AbstractWidgetpublic java.lang.String getHtmlComponent(int hints)
HtmlWidget
getHtmlComponent in interface HtmlWidgethints - rendering hints
protected abstract java.lang.String makeHtmlContainer(int hints)
hints - rendering hints (just FYI)
protected java.awt.Dimension getContainerSize(int hints)
hints - rendering hints
protected java.awt.Dimension addActionButtonSize(java.awt.Dimension cdim)
cdim - the dimensions of the container
protected java.lang.String wrapListContainer(java.lang.String contents)
public boolean hasListingWidget()
public HtmlWidget getListingWidget()
public void setListingWidget(HtmlWidget listingWidget,
int placement)
listingWidget - The listingWidget to set.public float getEffortEstimate(ActionDescription a)
getEffortEstimate in interface Widget
public HtmlView doAction(java.lang.String name)
throws java.lang.IllegalArgumentException
HtmlWidget
doAction in interface HtmlWidgetjava.lang.IllegalArgumentException
public void setParameterValue(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
HtmlWidget
setParameterValue in interface HtmlWidgetname - Name of the parametervalue - the value passed back
java.lang.IllegalArgumentException - thrown if the value could not be accepted for some reasonpublic java.lang.String toString()
toString in class AbstractContainerWidgetpublic void disengage()
Widget
disengage in interface Widgetdisengage in class AbstractContainerWidgetpublic void engage()
Widget
engage in interface Widgetengage in class AbstractContainerWidget
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||