edu.washington.cs.supple.wlib.wap
Class CardWidget
java.lang.Object
edu.washington.cs.supple.render.AbstractWidget
edu.washington.cs.supple.render.SimpleWidget
edu.washington.cs.supple.render.AbstractPopupWidget
edu.washington.cs.supple.wlib.wap.CardWidget
- All Implemented Interfaces:
- java.lang.Cloneable, ContainerWidget, java.util.EventListener, PopupWidget, java.beans.PropertyChangeListener, UnwrappedWidget, WapWidget, Widget
- public class CardWidget
- extends AbstractPopupWidget
- implements WapWidget
- Author:
- kgajos
|
Method Summary |
ConcreteWidget |
getConcreteWidget(java.io.Serializable renderingContext,
int hints)
Returns the concrete component (specific to a particular platform) |
java.lang.String |
getExtraWapCode(int hints)
Some components may need to return code that cannot just be nested
but needs to be appended later in the WML document (for example,
if a component introduces a new card). |
java.awt.Dimension |
getSize(int hints)
|
java.lang.String |
getWapComponent(int hints)
|
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 |
java.lang.String |
toString()
|
| Methods inherited from class edu.washington.cs.supple.render.AbstractPopupWidget |
childIterator, disengage, engage, ensureBestWidget, getChildWidget, getCost, getEffortEstimate, hasChildren, makeVisible, satisfiesConstraints, setChildren |
| Methods inherited from class edu.washington.cs.supple.render.AbstractWidget |
anotherPropertyChanged, clone, clone, dismissCurrentView, displayDynamic, equals, executeAction, generateWidgetDescriptor, getBag, getConcreteWidget, getParent, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, 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, disengage, engage, getBag, getConcreteWidget, getCost, getEffortEstimate, getPath, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget |
CardWidget
public CardWidget(UiObject object)
- Parameters:
object -
rendersObject
public 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
- Returns:
- true for all object with a text label
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- Overrides:
getConcreteWidget in class AbstractWidget
getSize
public java.awt.Dimension getSize(int hints)
- Specified by:
getSize in interface Widget- Overrides:
getSize in class AbstractWidget
getWapComponent
public java.lang.String getWapComponent(int hints)
- Specified by:
getWapComponent in interface WapWidget
- Parameters:
hints - specifies the variant of the widget to be rendered
- Returns:
- a renderable component
getExtraWapCode
public java.lang.String getExtraWapCode(int hints)
- Description copied from interface:
WapWidget
- Some components may need to return code that cannot just be nested
but needs to be appended later in the WML document (for example,
if a component introduces a new card). This method allows widgets
to return such code
- Specified by:
getExtraWapCode in interface WapWidget
- Parameters:
hints - rendering hints
- Returns:
- the extra WML code
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractWidget