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 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 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 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 the number of columns in the grid. * * @return the new columns value */ public int getColumns() { if (_columnsSet) { return _columns; } ValueExpression expression = getValueExpression("columns"); if (expression != null) { return (Integer)expression.getValue(getFacesContext().getELContext()); } return 1; }
/** * Gets CSS style to be used for the caption. * * @return the new captionStyle value */ public String getCaptionStyle() { if (_captionStyle != null) { return _captionStyle; } ValueExpression expression = getValueExpression("captionStyle"); 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 Script to be invoked when a key is pressed down over this element. * * @return the new onkeydown value */ public String getOnkeydown() { if (_onkeydown != null) { return _onkeydown; } ValueExpression expression = getValueExpression("onkeydown"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01. * * @return the new border value */ public int getBorder() { if (_borderSet) { return _border; } ValueExpression expression = getValueExpression("border"); if (expression != null) { return (Integer)expression.getValue(getFacesContext().getELContext()); } return -2147483648; }
/** * Gets CSS class to be used for the caption. * * @return the new captionClass value */ public String getCaptionClass() { if (_captionClass != null) { return _captionClass; } ValueExpression expression = getValueExpression("captionClass"); 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 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 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 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 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 The background color of this element. * * @return the new bgcolor value */ public String getBgcolor() { if (_bgcolor != null) { return _bgcolor; } ValueExpression expression = getValueExpression("bgcolor"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Controls how rules are rendered between cells. Values include: * none, groups, rows, cols, and all. * * @return the new rules value */ public String getRules() { if (_rules != null) { return _rules; } ValueExpression expression = getValueExpression("rules"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }
/** * Gets Provides a summary of the contents of the table, for * accessibility purposes. * * @return the new summary value */ public String getSummary() { if (_summary != null) { return _summary; } ValueExpression expression = getValueExpression("summary"); if (expression != null) { return (String)expression.getValue(getFacesContext().getELContext()); } return null; }