private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
private void handleAttribute(String name, Object value) { List<String> setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet"); if (setAttributes == null) { String cname = this.getClass().getName(); if (cname != null && cname.startsWith(OPTIMIZED_PACKAGE)) { setAttributes = new ArrayList<String>(6); this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes); } } if (setAttributes != null) { if (value == null) { ValueExpression ve = getValueExpression(name); if (ve == null) { setAttributes.remove(name); } } else if (!setAttributes.contains(name)) { setAttributes.add(name); } } }
/** * Gets Script to be invoked when the pointing device is pressed over this element. * * @return the new onmousedown value */ public String getOnmousedown() { if (_onmousedown != null) { return _onmousedown; } ValueExpression expression = getValueExpression("onmousedown"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets CSS class to be used for the disabled items. * * @return the new disabledClass value */ public String getDisabledClass() { if (_disabledClass != null) { return _disabledClass; } ValueExpression expression = getValueExpression("disabledClass"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets The base language of this document. * * @return the new lang value */ public String getLang() { if (_lang != null) { return _lang; } ValueExpression expression = getValueExpression("lang"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Script to be invoked when the element is clicked. * * @return the new onclick value */ public String getOnclick() { if (_onclick != null) { return _onclick; } ValueExpression expression = getValueExpression("onclick"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Script to be invoked when the pointing device is moves out of this element. * * @return the new onmouseout value */ public String getOnmouseout() { if (_onmouseout != null) { return _onmouseout; } ValueExpression expression = getValueExpression("onmouseout"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Specifies a script to be invoked when the element receives focus. * * @return the new onfocus value */ public String getOnfocus() { if (_onfocus != null) { return _onfocus; } ValueExpression expression = getValueExpression("onfocus"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Specifies the position of this element within the tab order of the document. * * @return the new tabindex value */ public String getTabindex() { if (_tabindex != null) { return _tabindex; } ValueExpression expression = getValueExpression("tabindex"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets An advisory title for this element. Often used by the user agent as a tooltip. * * @return the new title value */ public String getTitle() { if (_title != null) { return _title; } ValueExpression expression = getValueExpression("title"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Script to be invoked when the pointing device is moved into this element. * * @return the new onmouseover value */ public String getOnmouseover() { if (_onmouseover != null) { return _onmouseover; } ValueExpression expression = getValueExpression("onmouseover"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute. * * @return the new styleClass value */ public String getStyleClass() { if (_styleClass != null) { return _styleClass; } ValueExpression expression = getValueExpression("styleClass"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left). * * @return the new dir value */ public String getDir() { if (_dir != null) { return _dir; } ValueExpression expression = getValueExpression("dir"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Script to be invoked when the element is double-clicked. * * @return the new ondblclick value */ public String getOndblclick() { if (_ondblclick != null) { return _ondblclick; } ValueExpression expression = getValueExpression("ondblclick"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Script to be invoked when a key is pressed over this element. * * @return the new onkeypress value */ public String getOnkeypress() { if (_onkeypress != null) { return _onkeypress; } ValueExpression expression = getValueExpression("onkeypress"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Specifies a script to be invoked when the element is modified. * * @return the new onchange value */ public String getOnchange() { if (_onchange != null) { return _onchange; } ValueExpression expression = getValueExpression("onchange"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Specifies a script to be invoked when the element is selected. * * @return the new onselect value */ public String getOnselect() { if (_onselect != null) { return _onselect; } ValueExpression expression = getValueExpression("onselect"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets A diplay name for this component. * * @return the new label value */ public String getLabel() { if (_label != null) { return _label; } ValueExpression expression = getValueExpression("label"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets When true, indicates that this component cannot be modified by the user. * The element may receive focus unless it has also been disabled. * * @return the new readonly value */ public boolean isReadonly() { if (_readonlySet) { return _readonly; } ValueExpression expression = getValueExpression("readonly"); if (expression != null) { return (Boolean)expression.getValue(getFacesContext().getELContext()); } return false; }