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 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 Script to be invoked when a key is released over this element. * * @return the new onkeyup value */ public String getOnkeyup() { if (_onkeyup != null) { return _onkeyup; } ValueExpression expression = getValueExpression("onkeyup"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets When true, this element cannot receive focus. * * @return the new disabled value */ public boolean isDisabled() { if (_disabledSet) { return _disabled; } ValueExpression expression = getValueExpression("disabled"); if (expression != null) { return (Boolean)expression.getValue(getFacesContext().getELContext()); } return false; }
/** * Gets A space-separated list of Reverselinks. * * @return the new rev value */ public String getRev() { if (_rev != null) { return _rev; } ValueExpression expression = getValueExpression("rev"); 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 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 Specifies the character encoding of the linked resource. * * @return the new charset value */ public String getCharset() { if (_charset != null) { return _charset; } ValueExpression expression = getValueExpression("charset"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets CSS styling instructions. * * @return the new style value */ public String getStyle() { if (_style != null) { return _style; } ValueExpression expression = getValueExpression("style"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Script to be invoked when the pointing device is released over this element. * * @return the new onmouseup value */ public String getOnmouseup() { if (_onmouseup != null) { return _onmouseup; } ValueExpression expression = getValueExpression("onmouseup"); 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 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 Sets the access key for this element. * * @return the new accesskey value */ public String getAccesskey() { if (_accesskey != null) { return _accesskey; } ValueExpression expression = getValueExpression("accesskey"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets The language code for teh link. * * @return the new hreflang value */ public String getHreflang() { if (_hreflang != null) { return _hreflang; } ValueExpression expression = getValueExpression("hreflang"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets A space-separated list of links defining the relationship from the current document * to the anchor specified by this hyperlink * * @return the new rel value */ public String getRel() { if (_rel != null) { return _rel; } ValueExpression expression = getValueExpression("rel"); 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 Script to be invoked when the pointing device is moved while it is in this element. * * @return the new onmousemove value */ public String getOnmousemove() { if (_onmousemove != null) { return _onmousemove; } ValueExpression expression = getValueExpression("onmousemove"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Specifies a script to be invoked when the element loses focus. * * @return the new onblur value */ public String getOnblur() { if (_onblur != null) { return _onblur; } ValueExpression expression = getValueExpression("onblur"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets The shape of the hot spot on the screen (for use in client-side image maps). Valid values are: default (entire region); rect (rectangular region); circle (circular region); and poly (polygonal region). * * @return the new shape value */ public String getShape() { if (_shape != null) { return _shape; } ValueExpression expression = getValueExpression("shape"); 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; }