edu.washington.cs.supple.wlib.wap
Interface WapWidget

All Superinterfaces:
java.lang.Cloneable, Widget
All Known Implementing Classes:
CardWidget, ContainerWapWidget, SimpleWapWidget

public interface WapWidget
extends Widget

Author:
kgajos To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from interface edu.washington.cs.supple.render.Widget
MAX_HINT, NO_BORDER, NO_NAME, TOP_LEVEL_WIDGET
 
Method Summary
 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.lang.String getWapComponent(int hints)
           
 
Methods inherited from interface edu.washington.cs.supple.render.Widget
childIterator, clone, clone, disengage, engage, getBag, getConcreteWidget, getConcreteWidget, getCost, getEffortEstimate, getPath, getSize, getSizeCache, getTextLabel, getType, getUiObject, getWidgetDescriptor, getWidgetProperties, hasChildren, isEngaged, isEquivalent, setBag, setCost, setEnabled, setParent, setSizeCache, setWrapper, unwrapWidget
 

Method Detail

getWapComponent

public java.lang.String getWapComponent(int hints)
Parameters:
hints - specifies the variant of the widget to be rendered
Returns:
a renderable component

getExtraWapCode

public 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). This method allows widgets to return such code

Parameters:
hints - rendering hints
Returns:
the extra WML code