- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
public HtmlInputTextarea() { super(); setRendererType("javax.faces.Textarea"); }
/** * <p>Set the value of the <code>dir</code> property.</p> * @param dir the new property value */ public void setDir(java.lang.String dir) { getStateHelper().put(PropertyKeys.dir, dir); handleAttribute("dir", dir); }
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 width of this element, in characters. * * @return the new cols value */ public int getCols() { if (_colsSet) { return _cols; } ValueExpression expression = getValueExpression("cols"); if (expression != null) { return (Integer)expression.getValue(getFacesContext().getELContext()); } return -2147483648; }
comp.setValueExpression("cols", _cols); comp.setValueExpression("rows", _rows); comp.setValueExpression("accesskey", _accesskey); comp.setValueExpression("onselect", _onselect); comp.setValueExpression("onclick", _onclick); comp.setValueExpression("ondblclick", _ondblclick); comp.setValueExpression("onkeydown", _onkeydown); comp.setValueExpression("onkeypress", _onkeypress); comp.setValueExpression("onkeyup", _onkeyup); comp.setValueExpression("onmousedown", _onmousedown); comp.setValueExpression("onmousemove", _onmousemove); comp.setValueExpression("onmouseout", _onmouseout); comp.setValueExpression("onmouseover", _onmouseover); comp.setValueExpression("onmouseup", _onmouseup); comp.setValueExpression("style", _style);
/** * <p>Return the value of the <code>accesskey</code> property.</p> * @return the property value * <p>Contents: Access key that, when pressed, transfers focus * to this element. */ public java.lang.String getAccesskey() { return (java.lang.String) getStateHelper().eval(PropertyKeys.accesskey); }
comp.setValueBinding("cols", vb); comp.getAttributes().put("cols", Integer.valueOf(_cols)); comp.setValueBinding("rows", vb); comp.getAttributes().put("rows", Integer.valueOf(_rows)); comp.setValueBinding("style", vb); comp.getAttributes().put("style", _style); comp.setValueBinding("styleClass", vb); comp.getAttributes().put("styleClass", _styleClass); comp.setValueBinding("tabindex", vb); comp.getAttributes().put("tabindex", _tabindex); comp.setValueBinding("onblur", vb); comp.getAttributes().put("onblur", _onblur); comp.setValueBinding("onfocus", vb); comp.getAttributes().put("onfocus", _onfocus); comp.setValueBinding("accesskey", vb);
/** * <p>Return the value of the <code>disabled</code> property.</p> */ public boolean isDisabled() { if (!Util.isEnabledOnUserRole(this)) { return true; } else { return super.isDisabled(); } }
@Override public Integer getMaxLength() { Integer maxLength = super.getMaxLength(); // If the developer has not specified a maxLength on the outputRemainingChars, then // try to get the maxlength from the associated input component. if (maxLength == null) { String forComponent = getFor(); if (forComponent == null) { logger.error("getMaxLength: Please specify a 'for' attribute for the outputRemainingChars component."); } else { UIComponent inputComponent = findComponent(forComponent); if (inputComponent != null) { if (inputComponent instanceof HtmlInputText) { HtmlInputText htmlInputText = (HtmlInputText) inputComponent; maxLength = htmlInputText.getMaxlength(); } else if (inputComponent instanceof HtmlInputTextarea) { HtmlInputTextarea htmlInputTextarea = (HtmlInputTextarea) inputComponent; Object maxLengthObject = htmlInputTextarea.getAttributes().get("maxlength"); if (maxLengthObject != null) { maxLength = Integer.parseInt(maxLengthObject.toString()); } } } } } return maxLength; }
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 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; }
comp.setValueExpression("onmouseup", _onmouseup); comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener)); comp.setValueExpression("onmouseout", _onmouseout); comp.setValueExpression("immediate", _immediate); comp.setValueExpression("onmouseover", _onmouseover); comp.setValueExpression("ondblclick", _ondblclick); comp.setValueExpression("label", _label); comp.setValueExpression("onclick", _onclick); comp.setValueExpression("title", _title); comp.addValidator(new MethodExpressionValidator(_validator)); comp.setValueExpression("dir", _dir); comp.setValueExpression("onselect", _onselect); comp.setValueExpression("required", _required); comp.setValueExpression("validatorMessage", _validatorMessage); comp.setValueExpression("converterMessage", _converterMessage);
/** * <p>Return the value of the <code>title</code> property.</p> * @return the property value * <p>Contents: Advisory title information about markup elements generated * for this component. */ public java.lang.String getTitle() { return (java.lang.String) getStateHelper().eval(PropertyKeys.title); }
protected boolean isDisabled(FacesContext facesContext, UIComponent uiComponent) { //TODO: overwrite in extended HtmlTextareaRenderer and check for enabledOnUserRole if (uiComponent instanceof HtmlInputTextarea) { return ((HtmlInputTextarea)uiComponent).isDisabled(); } return org.apache.myfaces.shared_impl.renderkit.RendererUtils.getBooleanAttribute(uiComponent, HTML.DISABLED_ATTR, false); }
@Override public Integer getMaxLength() { Integer maxLength = super.getMaxLength(); // If the developer has not specified a maxLength on the outputRemainingChars, then // try to get the maxlength from the associated input component. if (maxLength == null) { String forComponent = getFor(); if (forComponent == null) { logger.error("getMaxLength: Please specify a 'for' attribute for the outputRemainingChars component."); } else { UIComponent inputComponent = findComponent(forComponent); if (inputComponent != null) { if (inputComponent instanceof HtmlInputText) { HtmlInputText htmlInputText = (HtmlInputText) inputComponent; maxLength = htmlInputText.getMaxlength(); } else if (inputComponent instanceof HtmlInputTextarea) { HtmlInputTextarea htmlInputTextarea = (HtmlInputTextarea) inputComponent; Object maxLengthObject = htmlInputTextarea.getAttributes().get("maxlength"); if (maxLengthObject != null) { maxLength = Integer.parseInt(maxLengthObject.toString()); } } } } } return maxLength; }
/** * <p>Set the value of the <code>onmouseout</code> property.</p> * @param onmouseout the new property value */ public void setOnmouseout(java.lang.String onmouseout) { getStateHelper().put(PropertyKeys.onmouseout, onmouseout); handleAttribute("onmouseout", onmouseout); }
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; }
/** * Construct an instance of the HtmlInputTextarea. */ public HtmlInputTextarea() { setRendererType("javax.faces.Textarea"); }
comp.setValueExpression("cols", _cols); comp.setValueExpression("rows", _rows); comp.setValueExpression("label", _label); comp.setValueExpression("style", _style); comp.setValueExpression("styleClass", _styleClass); comp.setValueExpression("tabindex", _tabindex); comp.setValueExpression("onblur", _onblur); comp.setValueExpression("onfocus", _onfocus); comp.setValueExpression("accesskey", _accesskey); comp.setValueExpression("onclick", _onclick); comp.setValueExpression("ondblclick", _ondblclick); comp.setValueExpression("onkeydown", _onkeydown); comp.setValueExpression("onkeypress", _onkeypress); comp.setValueExpression("onkeyup", _onkeyup); comp.setValueExpression("onmousedown", _onmousedown);