public HtmlGraphicImage() { super(); setRendererType("javax.faces.Image"); }
/** * <p>Set the value of the <code>height</code> property.</p> * @param height the new property value */ public void setHeight(java.lang.String height) { getStateHelper().put(PropertyKeys.height, height); handleAttribute("height", height); }
protected HtmlGraphicImage createHtmlGraphicImage(final String navSrc) { final HtmlGraphicImage image = new HtmlGraphicImage(); image.setId(IMAGE_PREFIX); image.setRendererType(THtmlTreeGraphicImageRenderer.RENDERER_TYPE); image.setUrl(navSrc); image.setWidth("19"); image.setHeight("18"); image.setBorder(0); return image; }
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 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; }
/** * <p>Return the value of the <code>onkeydown</code> property.</p> * @return the property value * <p>Contents: Javascript code executed when a key is * pressed down over this element. */ public java.lang.String getOnkeydown() { return (java.lang.String) getStateHelper().eval(PropertyKeys.onkeydown); }
comp.setValueBinding("height", vb); comp.getAttributes().put("height", _height); comp.setValueBinding("ismap", vb); comp.getAttributes().put("ismap", Boolean.valueOf(_ismap)); comp.setValueBinding("longdesc", vb); comp.getAttributes().put("longdesc", _longdesc); comp.setValueBinding("usemap", vb); comp.getAttributes().put("usemap", _usemap); comp.setValueBinding("width", vb); comp.getAttributes().put("width", _width); comp.setValueBinding("style", vb); comp.getAttributes().put("style", _style); comp.setValueBinding("styleClass", vb); comp.getAttributes().put("styleClass", _styleClass); comp.setValueBinding("alt", vb);
comp.setValueExpression("usemap", _usemap); comp.setValueExpression("longdesc", _longdesc); comp.setValueExpression("styleClass", _styleClass); comp.setValueExpression("onmouseout", _onmouseout); comp.setValueExpression("onmousedown", _onmousedown); comp.setValueExpression("alt", _alt); comp.setValueExpression("width", _width); comp.setValueExpression("onkeydown", _onkeydown); comp.setValueExpression("onclick", _onclick); comp.setValueExpression("ondblclick", _ondblclick); comp.setValueExpression("ismap", _ismap); comp.setValueExpression("onmouseup", _onmouseup); comp.setValueExpression("onkeyup", _onkeyup); comp.setValueExpression("dir", _dir); comp.setValueExpression("url", _url);
if (uiComponent instanceof HtmlGraphicImage) url = ((HtmlGraphicImage) uiComponent).getUrl();
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 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; }
/** * <p>Return the value of the <code>width</code> property.</p> * @return the property value * <p>Contents: Override for the width of this image. */ public java.lang.String getWidth() { return (java.lang.String) getStateHelper().eval(PropertyKeys.width); }
comp.setValueExpression("height", _height); comp.setValueExpression("ismap", _ismap); comp.setValueExpression("longdesc", _longdesc); comp.setValueExpression("usemap", _usemap); comp.setValueExpression("width", _width); comp.setValueExpression("library", _library); comp.setValueExpression("name", _name); 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);
if (uiComponent instanceof HtmlGraphicImage) url = ((HtmlGraphicImage)uiComponent).getUrl();
/** * <p>Set the value of the <code>onkeyup</code> property.</p> * @param onkeyup the new property value */ public void setOnkeyup(java.lang.String onkeyup) { getStateHelper().put(PropertyKeys.onkeyup, onkeyup); handleAttribute("onkeyup", onkeyup); }
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 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; }
/** * Construct an instance of the HtmlGraphicImage. */ public HtmlGraphicImage() { setRendererType("javax.faces.Image"); }
/** * <p>Return the value of the <code>ismap</code> property.</p> * @return the property value * <p>Contents: Flag indicating that this image is to be used as a server side * image map. Such an image must be enclosed within a hyperlink * ("a"). A value of false causes no attribute to be rendered, * while a value of true causes the attribute to be rendered as * ismap="ismap". */ public boolean isIsmap() { return (java.lang.Boolean) getStateHelper().eval(PropertyKeys.ismap, false); }
comp.setValueExpression("height", _height); comp.setValueExpression("ismap", _ismap); comp.setValueExpression("longdesc", _longdesc); comp.setValueExpression("usemap", _usemap); comp.setValueExpression("width", _width); comp.setValueExpression("library", _library); comp.setValueExpression("name", _name); comp.setValueExpression("style", _style); comp.setValueExpression("styleClass", _styleClass); comp.setValueExpression("alt", _alt); comp.setValueExpression("onclick", _onclick); comp.setValueExpression("ondblclick", _ondblclick); comp.setValueExpression("onkeydown", _onkeydown); comp.setValueExpression("onkeypress", _onkeypress); comp.setValueExpression("onkeyup", _onkeyup);