|
|||||||||||
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.SimpleWidget
edu.washington.cs.supple.wlib.html.SimpleHtmlWidget
edu.washington.cs.supple.wlib.html.HtmlListWidget
Field Summary | |
protected java.awt.Dimension |
biggestItem
|
protected HtmlButtonWidget |
detailButton
|
protected SuppleType |
elementType
|
protected boolean |
exactLength
|
protected boolean |
hasDetails
|
static java.lang.String |
LIST_SIZE_PROPERTY
|
protected int |
listSize
|
protected static int |
MARGIN
the pixel size of the outer margin around the widget |
protected static int |
MARGIN_X
|
protected static int |
MARGIN_Y
|
protected int |
selectionMode
|
protected VectorType |
vtype
|
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 | |
HtmlListWidget(UiObject object,
int listSize)
Does all of the common constructor work for lits |
Method Summary | |
java.awt.Dimension |
biggestItemSize()
|
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 |
float |
getEffortEstimate(ActionDescription a)
This method is hear temporarily until we implement it for all simple widgets |
java.lang.String |
getHtmlComponent(int hints)
Produces HTML code for that instance of the widget |
int |
getListSize()
Returns the length of the list widget rendered; 0 means that the list will be as long as the number of elements in the domain of the object displayed |
float |
getNumRows()
|
WidgetProperties |
getWidgetProperties()
Returns the corresponding WidgetProperties |
boolean |
hasDetails()
|
boolean |
isExactLength()
|
protected void |
legalValuesChanged(java.beans.PropertyChangeEvent evt)
reacts to the change in the list of legal values in the underlying object |
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 |
setParameterValue(java.lang.String name,
java.lang.String value)
This method is called in response to a user changing widget values. |
protected java.awt.Dimension |
size(int hints)
Yields the size of the widget. |
java.lang.String |
toString()
|
protected void |
valueChanged(java.beans.PropertyChangeEvent evt)
Subclasses should override this method if they want to update display the value of the underlying type changes |
Methods inherited from class edu.washington.cs.supple.wlib.html.SimpleHtmlWidget |
getConcreteWidget, getHtmlId, getSize |
Methods inherited from class edu.washington.cs.supple.render.SimpleWidget |
childIterator, hasChildren |
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, likelyValuesChanged, propertyChange, reportActionExecutionEvent, reportValueChangedEvent, setBag, setCost, setEnabled, setParent, setSizeCache, setValue, setWrapper, unwrapWidget |
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 |
public static final java.lang.String LIST_SIZE_PROPERTY
protected static final int MARGIN
protected static final int MARGIN_X
protected static final int MARGIN_Y
protected int listSize
protected boolean exactLength
protected boolean hasDetails
protected VectorType vtype
protected SuppleType elementType
protected HtmlButtonWidget detailButton
protected java.awt.Dimension biggestItem
protected int selectionMode
Constructor Detail |
public HtmlListWidget(UiObject object, int listSize)
object
- the corresponding UiObjectlistSize
- the size of the displayed list element. If set to 0, the
displayed list size will be the same as the size of the domain
of the object. Finally, if the domain is not going to change
in size (and listSize is 0), then list will be rendered
without the scroll bars.Method Detail |
public int getListSize()
public boolean hasDetails()
public boolean isExactLength()
public WidgetProperties getWidgetProperties()
Widget
getWidgetProperties
in interface Widget
getWidgetProperties
in class AbstractWidget
protected WidgetDescriptor generateWidgetDescriptor()
AbstractWidget
generateWidgetDescriptor
in class AbstractWidget
public float getEffortEstimate(ActionDescription a)
SimpleWidget
getEffortEstimate
in interface Widget
getEffortEstimate
in class SimpleWidget
public static boolean rendersObject(UiObject object)
public java.lang.String getHtmlComponent(int hints)
HtmlWidget
hints
- rendering hints
public HtmlView doAction(java.lang.String name)
HtmlWidget
doAction
in interface HtmlWidget
doAction
in class SimpleHtmlWidget
public void setParameterValue(java.lang.String name, java.lang.String value)
HtmlWidget
setParameterValue
in interface HtmlWidget
setParameterValue
in class SimpleHtmlWidget
protected void legalValuesChanged(java.beans.PropertyChangeEvent evt)
legalValuesChanged
in class AbstractWidget
evt
- property change event with detailsprotected void valueChanged(java.beans.PropertyChangeEvent evt)
AbstractWidget
valueChanged
in class AbstractWidget
evt
- property change event with detailspublic void disengage()
Widget
disengage
in interface Widget
disengage
in class AbstractWidget
public void engage()
Widget
engage
in interface Widget
engage
in class AbstractWidget
public float getNumRows()
protected java.awt.Dimension size(int hints)
SimpleHtmlWidget
size
in class SimpleHtmlWidget
hints
-
public java.awt.Dimension biggestItemSize()
public java.lang.String toString()
toString
in class AbstractWidget
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |