public void restoreState(FacesContext context, Object state){ Object values[] = (Object[]) state; super.restoreState(context, values[0]); legend = (String) values[1]; }
public void release() { super.release(); _legend = null; _escape = null; } }
public Object saveState(FacesContext context){ Object values[] = new Object[2]; values[0] = super.saveState(context); values[1] = legend; return values; } }
public String getStyle() { if (_style != null) { return _style; } ValueBinding vb = getValueBinding("style"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if ((context == null) || (component == null)) { throw new NullPointerException(); } super.encodeBegin(context, component); Div div = (Div) component; if (div.isRendered()) { ResponseWriter writer = context.getResponseWriter(); //Previously, style and styleClass was rendered, //so on div renderer we need to add event and universal //attributes only HtmlRendererUtils.renderHTMLAttributes(writer, div, HTML.COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_STYLE); } }
protected void setProperties(UIComponent component) { super.setProperties(component); setStringProperty(component, "legend", legend); }
public void encodeEnd(FacesContext context, UIComponent component) throws IOException { if ((context == null) || (component == null)) { throw new NullPointerException(); } HtmlTag htmlTag = (HtmlTag) component; if (htmlTag.isRendered()) { String tag = htmlTag.getValue().toString(); if( tag.trim().length() == 0 ) return; ResponseWriter writer = context.getResponseWriter(); writer.endElement( tag ); } } }
public HtmlTag() { setRendererType("org.apache.myfaces.HtmlTagRenderer"); }
public Object saveState(FacesContext facesContext) { Object[] values = new Object[7]; values[0] = super.saveState(facesContext); values[1] = _enabledOnUserRole; values[2] = _visibleOnUserRole; values[3] = Boolean.valueOf(_forceId); values[4] = Boolean.valueOf(_forceIdIndex); values[5] = _style; values[6] = _styleClass; return values; }
public void restoreState(FacesContext facesContext, Object state) { Object[] values = (Object[])state; super.restoreState(facesContext,values[0]); _enabledOnUserRole = (java.lang.String) values[1]; _visibleOnUserRole = (java.lang.String) values[2]; _forceId = ((Boolean) values[3]).booleanValue(); _forceIdIndex = ((Boolean) values[4]).booleanValue(); _style = (java.lang.String) values[5]; _styleClass = (java.lang.String) values[6]; } }
public String getClientId(FacesContext context) { String clientId = HtmlComponentUtils.getClientId(this, getRenderer(context), context); if (clientId == null) { clientId = super.getClientId(context); } return clientId; }
public void release() { super.release(); _confirmationMessage = null; _disabled = null; _hideDelay = null; _showDelay = null; _okText = null; }
public String getStyleClass() { if (_styleClass != null) { return _styleClass; } ValueBinding vb = getValueBinding("styleClass"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { Fieldset fieldset = (Fieldset) component; if (fieldset.isRendered()) { super.encodeBegin(context, component); String legend = fieldset.getLegend(); if( legend == null || legend.trim().length() == 0 ) // Don't render the legend return; ResponseWriter writer = context.getResponseWriter(); writer.startElement("legend", fieldset); writer.write( legend ); writer.endElement( "legend" ); } }
protected void setProperties(UIComponent component) { super.setProperties(component); setStringProperty(component, "confirmationMessage", _confirmationMessage); setBooleanProperty(component, "disabled", _disabled); setIntegerProperty(component, "showDelay", _showDelay); setIntegerProperty(component, "hideDelay", _hideDelay); setStringProperty(component, "okText", _okText); setStringProperty(component, "width", _width); setStringProperty(component, "height", _height); }
public void release() { super.release(); this.legend = null; }
public String getEnabledOnUserRole() { if (_enabledOnUserRole != null) { return _enabledOnUserRole; } ValueBinding vb = getValueBinding("enabledOnUserRole"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { Fieldset fieldset = (Fieldset) component; if (fieldset.isRendered()) { super.encodeBegin(context, component); String legend = fieldset.getLegend(); if( legend == null || legend.trim().length() == 0 ) // Don't render the legend return; ResponseWriter writer = context.getResponseWriter(); writer.startElement("legend", fieldset); if (fieldset.isEscape()) { writer.writeText(legend , "legend"); } else { writer.write(legend); } writer.endElement( "legend" ); } }
public void release() { super.release(); _onclick = null; _ondblclick = null; _onkeydown = null; _onkeypress = null; _onkeyup = null; _onmousedown = null; _onmousemove = null; _onmouseout = null; _onmouseover = null; _onmouseup = null; _dir = null; _lang = null; _title = null; } }
public String getVisibleOnUserRole() { if (_visibleOnUserRole != null) { return _visibleOnUserRole; } ValueBinding vb = getValueBinding("visibleOnUserRole"); if (vb != null) { Object value = vb.getValue(getFacesContext()); if (value == null) { return null; } else { return (String) value.toString(); } } return null; }