| org.netbeans.modules.visualweb.web.ui.dt.renderer.AbstractDesignTimeRenderer org.netbeans.modules.visualweb.web.ui.dt.renderer.ValueHolderDesignTimeRenderer
All known Subclasses: org.netbeans.modules.visualweb.web.ui.dt.renderer.LabelDesignTimeRenderer, org.netbeans.modules.visualweb.web.ui.dt.renderer.StaticTextDesignTimeRenderer,
ValueHolderDesignTimeRenderer | abstract public class ValueHolderDesignTimeRenderer extends AbstractDesignTimeRenderer (Code) | | A delegating renderer for components that implement
org.netbeans.modules.visualweb.web.ui.component.ValueHolder , which does two things. If
the value property is not set, temporarily sets the value and style to
cause the component to be rendered with a default "shadow label". If the
value property is bound, but the value is null or the empty string,
temporarily sets the value to a "dummy string" that is keyed to the type
of the value.
author: gjmurphy |
Method Summary | |
public void | encodeBegin(FacesContext context, UIComponent component) | public void | encodeEnd(FacesContext context, UIComponent component) | abstract protected String | getShadowText() Returns a display string to set as the component's value if shadowed
text is required. | protected boolean | needsShadowText(ValueHolder component) Determines if shadowed text is required. |
STYLE_CLASS_PROP | protected static String STYLE_CLASS_PROP(Code) | | |
isStyleSet | boolean isStyleSet(Code) | | |
isTextSet | boolean isTextSet(Code) | | |
ValueHolderDesignTimeRenderer | public ValueHolderDesignTimeRenderer(Renderer renderer)(Code) | | |
encodeBegin | public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code) | | |
encodeEnd | public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code) | | |
getShadowText | abstract protected String getShadowText()(Code) | | Returns a display string to set as the component's value if shadowed
text is required.
|
needsShadowText | protected boolean needsShadowText(ValueHolder component)(Code) | | Determines if shadowed text is required. Default implementation is
simply to check for a null value.
|
Methods inherited from org.netbeans.modules.visualweb.web.ui.dt.renderer.AbstractDesignTimeRenderer | protected static String addStyleClass(String value, String styleClass)(Code)(Java Doc) public String convertClientId(FacesContext context, String clientId)(Code)(Java Doc) public void decode(FacesContext context, UIComponent component)(Code)(Java Doc) public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException(Code)(Java Doc) protected static Object getDummyData(FacesContext context, ValueBinding vb)(Code)(Java Doc) protected static Object getDummyData(Class clazz)(Code)(Java Doc) public boolean getRendersChildren()(Code)(Java Doc) protected static String removeStyleClass(String value, String styleClass)(Code)(Java Doc)
|
|
|