All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.webui.jsf.component.Hyperlink Maven / Gradle / Ivy

/*
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the License).  You may not use this file except in
 * compliance with the License.
 * 
 * You can obtain a copy of the license at
 * https://woodstock.dev.java.net/public/CDDLv1.0.html.
 * See the License for the specific language governing
 * permissions and limitations under the License.
 * 
 * When distributing Covered Code, include this CDDL
 * Header Notice in each file and include the License file
 * at https://woodstock.dev.java.net/public/CDDLv1.0.html.
 * If applicable, add the following below the CDDL Header,
 * with the fields enclosed by brackets [] replaced by
 * you own identifying information:
 * "Portions Copyrighted [year] [name of copyright owner]"
 * 
 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
 */
package com.sun.webui.jsf.component;

import com.sun.faces.annotation.Component;
import com.sun.faces.annotation.Property;
import javax.el.ValueExpression;
import javax.faces.context.FacesContext;

/**
 * The Hyperlink component is used to create a link. 
 */
@Component(type = "com.sun.webui.jsf.Hyperlink", family = "com.sun.webui.jsf.Hyperlink",
displayName = "Hyperlink", tagName = "hyperlink",
helpKey = "projrave_ui_elements_palette_wdstk-jsf1.2_hyperlink",
propertiesHelpKey = "projrave_ui_elements_palette_wdstk-jsf1.2_propsheets_hyperlink_props")
public class Hyperlink extends WebuiCommand implements ComplexComponent {

    /**
     * Default constructor.
     */
    public Hyperlink() {
        super();
        setRendererType("com.sun.webui.jsf.Hyperlink");
    }

    /**
     * 

Return the family for this component.

*/ @Override public String getFamily() { return "com.sun.webui.jsf.Hyperlink"; } /** * Implement this method so that it returns the DOM ID of the * HTML element which should receive focus when the component * receives focus, and to which a component label should apply. * Usually, this is the first element that accepts input. * * @param context The FacesContext for the request * @return The client id, also the JavaScript element id * * @deprecated * @see #getLabeledElementId * @see #getFocusElementId */ public String getPrimaryElementID(FacesContext context) { return getLabeledElementId(context); } /** * Returns the absolute ID of an HTML element suitable for use as * the value of an HTML LABEL element's for attribute. * If the ComplexComponent has sub-compoents, and one of * the sub-components is the target of a label, if that sub-component * is a ComplexComponent, then * getLabeledElementId must called on the sub-component and * the value returned. The value returned by this * method call may or may not resolve to a component instance. * * @param context The FacesContext used for the request * @return An abolute id suitable for the value of an HTML LABEL element's * for attribute. */ public String getLabeledElementId(FacesContext context) { return getClientId(context); } /** * Returns the id of an HTML element suitable to * receive the focus. * If the ComplexComponent has sub-compoents, and one of * the sub-components is to reveive the focus, if that sub-component * is a ComplexComponent, then * getFocusElementId must called on the sub-component and * the value returned. The value returned by this * method call may or may not resolve to a component instance. *

* This implementations returns the value of * getLabeledElementId. * * @param context The FacesContext used for the request */ public String getFocusElementId(FacesContext context) { // For now return the labeled component. // return getLabeledElementId(context); } @Override public String toString() { StringBuffer buffer = new StringBuffer(100); buffer.append(this.getClass().getName()); buffer.append(" id: "); buffer.append(getId()); return buffer.toString(); } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Tag attribute methods // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /** *

Return the ValueExpression stored for the * specified name (if any), respecting any property aliases.

* * @param name Name of value binding expression to retrieve */ @Override public ValueExpression getValueExpression(String name) { if (name.equals("text")) { return super.getValueExpression("value"); } return super.getValueExpression(name); } /** *

Set the ValueExpression stored for the * specified name (if any), respecting any property * aliases.

* * @param name Name of value binding to set * @param binding ValueExpression to set, or null to remove */ @Override public void setValueExpression(String name, ValueExpression binding) { if (name.equals("text")) { super.setValueExpression("value", binding); return; } super.setValueExpression(name, binding); } /** *

Flag indicating that activation of this component by the user is not * currently permitted. In this component library, the disabled attribute * also causes the hyperlink to be renderered as formatted text in an * HTML tag. The hyperlink cannot be enabled from the client * because this is a server side only feature. You cannot * disable an anchor.

*/ @Property(isHidden = true, isAttribute = false) @Override public Object getValue() { return super.getValue(); } /** *

Flag indicating that activation of this component by the user is not * currently permitted. In this component library, the disabled attribute * also causes the hyperlink to be renderered as formatted text in an * HTML tag. The hyperlink cannot be enabled from the client * because this is a server side only feature. You cannot * disable an anchor.

*/ @Property(name = "disabled", displayName = "Disabled", category = "Behavior") private boolean disabled = false; private boolean disabled_set = false; /** *

Flag indicating that activation of this component by the user is not * currently permitted. In this component library, the disabled attribute * also causes the hyperlink to be renderered as formatted text in an * HTML tag. The hyperlink cannot be enabled from the client * because this is a server side only feature. You cannot * disable an anchor.

*/ public boolean isDisabled() { if (this.disabled_set) { return this.disabled; } ValueExpression _vb = getValueExpression("disabled"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext().getELContext()); if (_result == null) { return false; } else { return ((Boolean) _result).booleanValue(); } } return false; } /** *

Flag indicating that activation of this component by the user is not * currently permitted. In this component library, the disabled attribute * also causes the hyperlink to be renderered as formatted text in an * HTML tag. The hyperlink cannot be enabled from the client * because this is a server side only feature. You cannot * disable an anchor.

* @see #isDisabled() */ public void setDisabled(boolean disabled) { this.disabled = disabled; this.disabled_set = true; } /** *

Scripting code executed when this element loses focus.

*/ @Property(name = "onBlur", displayName = "Blur Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onBlur = null; /** *

Scripting code executed when this element loses focus.

*/ public String getOnBlur() { if (this.onBlur != null) { return this.onBlur; } ValueExpression _vb = getValueExpression("onBlur"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when this element loses focus.

* @see #getOnBlur() */ public void setOnBlur(String onBlur) { this.onBlur = onBlur; } /** *

Scripting code executed when a mouse click occurs over this component. * If the component submits the form (by using the action attribute), the * script that you use with the onClick attribute should not return from * the function. When the action attribute is used, the component handles the * return with a script that is appended to the anchor element's onclick * property. When you supply an onClick attribute, this return script is * appended after your script in the anchor's onclick. It is ok to return * from your script to abort the submit process if necessary.

*/ @Property(name = "onClick", displayName = "Click Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onClick = null; /** *

Scripting code executed when a mouse click occurs over this component. * If the component submits the form (by using the action attribute), the * script that you use with the onClick attribute should not return from * the function. When the action attribute is used, the component handles the * return with a script that is appended to the anchor element's onclick * property. When you supply an onClick attribute, this return script is * appended after your script in the anchor's onclick. It is ok to return * from your script to abort the submit process if necessary.

*/ public String getOnClick() { if (this.onClick != null) { return this.onClick; } ValueExpression _vb = getValueExpression("onClick"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when a mouse click occurs over this component. * If the component submits the form (by using the action attribute), the * script that you use with the onClick attribute should not return from * the function. When the action attribute is used, the component handles the * return with a script that is appended to the anchor element's onclick * property. When you supply an onClick attribute, this return script is * appended after your script in the anchor's onclick. It is ok to return * from your script to abort the submit process if necessary.

* @see #getOnClick() */ public void setOnClick(String onClick) { this.onClick = onClick; } /** *

Scripting code executed when a mouse double click * occurs over this component.

*/ @Property(name = "onDblClick", displayName = "Double Click Script", category = "Javascript", isHidden = true, isAttribute = false, editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onDblClick = null; /** *

Scripting code executed when a mouse double click * occurs over this component.

*/ public String getOnDblClick() { if (this.onDblClick != null) { return this.onDblClick; } ValueExpression _vb = getValueExpression("onDblClick"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when a mouse double click * occurs over this component.

* @see #getOnDblClick() */ public void setOnDblClick(String onDblClick) { this.onDblClick = onDblClick; } /** *

Scripting code executed when this component receives focus. An * element receives focus when the user selects the element by pressing * the tab key or clicking the mouse.

*/ @Property(name = "onFocus", displayName = "Focus Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onFocus = null; /** *

Scripting code executed when this component receives focus. An * element receives focus when the user selects the element by pressing * the tab key or clicking the mouse.

*/ public String getOnFocus() { if (this.onFocus != null) { return this.onFocus; } ValueExpression _vb = getValueExpression("onFocus"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when this component receives focus. An * element receives focus when the user selects the element by pressing * the tab key or clicking the mouse.

* @see #getOnFocus() */ public void setOnFocus(String onFocus) { this.onFocus = onFocus; } /** *

Scripting code executed when the user presses down on a key while the * component has focus.

*/ @Property(name = "onKeyDown", displayName = "Key Down Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onKeyDown = null; /** *

Scripting code executed when the user presses down on a key while the * component has focus.

*/ public String getOnKeyDown() { if (this.onKeyDown != null) { return this.onKeyDown; } ValueExpression _vb = getValueExpression("onKeyDown"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user presses down on a key while the * component has focus.

* @see #getOnKeyDown() */ public void setOnKeyDown(String onKeyDown) { this.onKeyDown = onKeyDown; } /** *

Scripting code executed when the user presses and releases a key while * the component has focus.

*/ @Property(name = "onKeyPress", displayName = "Key Press Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onKeyPress = null; /** *

Scripting code executed when the user presses and releases a key while * the component has focus.

*/ public String getOnKeyPress() { if (this.onKeyPress != null) { return this.onKeyPress; } ValueExpression _vb = getValueExpression("onKeyPress"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user presses and releases a key while * the component has focus.

* @see #getOnKeyPress() */ public void setOnKeyPress(String onKeyPress) { this.onKeyPress = onKeyPress; } /** *

Scripting code executed when the user releases a key while the * component has focus.

*/ @Property(name = "onKeyUp", displayName = "Key Up Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onKeyUp = null; /** *

Scripting code executed when the user releases a key while the * component has focus.

*/ public String getOnKeyUp() { if (this.onKeyUp != null) { return this.onKeyUp; } ValueExpression _vb = getValueExpression("onKeyUp"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user releases a key while the * component has focus.

* @see #getOnKeyUp() */ public void setOnKeyUp(String onKeyUp) { this.onKeyUp = onKeyUp; } /** *

Scripting code executed when the user presses a mouse button while the * mouse pointer is on the component.

*/ @Property(name = "onMouseDown", displayName = "Mouse Down Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onMouseDown = null; /** *

Scripting code executed when the user presses a mouse button while the * mouse pointer is on the component.

*/ public String getOnMouseDown() { if (this.onMouseDown != null) { return this.onMouseDown; } ValueExpression _vb = getValueExpression("onMouseDown"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user presses a mouse button while the * mouse pointer is on the component.

* @see #getOnMouseDown() */ public void setOnMouseDown(String onMouseDown) { this.onMouseDown = onMouseDown; } /** *

Scripting code executed when the user moves the mouse pointer while * over the component.

*/ @Property(name = "onMouseMove", displayName = "Mouse Move Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onMouseMove = null; /** *

Scripting code executed when the user moves the mouse pointer while * over the component.

*/ public String getOnMouseMove() { if (this.onMouseMove != null) { return this.onMouseMove; } ValueExpression _vb = getValueExpression("onMouseMove"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user moves the mouse pointer while * over the component.

* @see #getOnMouseMove() */ public void setOnMouseMove(String onMouseMove) { this.onMouseMove = onMouseMove; } /** *

Scripting code executed when a mouse out movement * occurs over this component.

*/ @Property(name = "onMouseOut", displayName = "Mouse Out Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onMouseOut = null; /** *

Scripting code executed when a mouse out movement * occurs over this component.

*/ public String getOnMouseOut() { if (this.onMouseOut != null) { return this.onMouseOut; } ValueExpression _vb = getValueExpression("onMouseOut"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when a mouse out movement * occurs over this component.

* @see #getOnMouseOut() */ public void setOnMouseOut(String onMouseOut) { this.onMouseOut = onMouseOut; } /** *

Scripting code executed when the user moves the mouse pointer into * the boundary of this component.

*/ @Property(name = "onMouseOver", displayName = "Mouse In Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onMouseOver = null; /** *

Scripting code executed when the user moves the mouse pointer into * the boundary of this component.

*/ public String getOnMouseOver() { if (this.onMouseOver != null) { return this.onMouseOver; } ValueExpression _vb = getValueExpression("onMouseOver"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user moves the mouse pointer into * the boundary of this component.

* @see #getOnMouseOver() */ public void setOnMouseOver(String onMouseOver) { this.onMouseOver = onMouseOver; } /** *

Scripting code executed when the user releases a mouse button while * the mouse pointer is on the component.

*/ @Property(name = "onMouseUp", displayName = "Mouse Up Script", category = "Javascript", editorClassName = "com.sun.rave.propertyeditors.JavaScriptPropertyEditor") private String onMouseUp = null; /** *

Scripting code executed when the user releases a mouse button while * the mouse pointer is on the component.

*/ public String getOnMouseUp() { if (this.onMouseUp != null) { return this.onMouseUp; } ValueExpression _vb = getValueExpression("onMouseUp"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Scripting code executed when the user releases a mouse button while * the mouse pointer is on the component.

* @see #getOnMouseUp() */ public void setOnMouseUp(String onMouseUp) { this.onMouseUp = onMouseUp; } /** *

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).

*/ @Property(name = "shape", displayName = "Shape", category = "Advanced", isHidden = true, isAttribute = false) private String shape = null; /** *

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).

*/ public String getShape() { if (this.shape != null) { return this.shape; } ValueExpression _vb = getValueExpression("shape"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

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).

* @see #getShape() */ public void setShape(String shape) { this.shape = shape; } /** *

CSS style(s) to be applied to the outermost HTML element when this * component is rendered.

*/ @Property(name = "style", displayName = "CSS Style(s)", category = "Appearance", editorClassName = "com.sun.jsfcl.std.css.CssStylePropertyEditor") private String style = null; /** *

CSS style(s) to be applied to the outermost HTML element when this * component is rendered.

*/ public String getStyle() { if (this.style != null) { return this.style; } ValueExpression _vb = getValueExpression("style"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

CSS style(s) to be applied to the outermost HTML element when this * component is rendered.

* @see #getStyle() */ public void setStyle(String style) { this.style = style; } /** *

CSS style class(es) to be applied to the outermost HTML element when this * component is rendered.

*/ @Property(name = "styleClass", displayName = "CSS Style Class(es)", category = "Appearance", editorClassName = "com.sun.rave.propertyeditors.StyleClassPropertyEditor") private String styleClass = null; /** *

CSS style class(es) to be applied to the outermost HTML element when this * component is rendered.

*/ public String getStyleClass() { if (this.styleClass != null) { return this.styleClass; } ValueExpression _vb = getValueExpression("styleClass"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

CSS style class(es) to be applied to the outermost HTML element when this * component is rendered.

* @see #getStyleClass() */ public void setStyleClass(String styleClass) { this.styleClass = styleClass; } /** *

Position of this element in the tabbing order of the current document. * Tabbing order determines the sequence in which elements receive * focus when the tab key is pressed. The value must be an integer * between 0 and 32767.

*/ @Property(name = "tabIndex", displayName = "Tab Index", category = "Accessibility", editorClassName = "com.sun.rave.propertyeditors.IntegerPropertyEditor") private int tabIndex = Integer.MIN_VALUE; private boolean tabIndex_set = false; /** *

Position of this element in the tabbing order of the current document. * Tabbing order determines the sequence in which elements receive * focus when the tab key is pressed. The value must be an integer * between 0 and 32767.

*/ public int getTabIndex() { if (this.tabIndex_set) { return this.tabIndex; } ValueExpression _vb = getValueExpression("tabIndex"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext().getELContext()); if (_result == null) { return Integer.MIN_VALUE; } else { return ((Integer) _result).intValue(); } } return Integer.MIN_VALUE; } /** *

Position of this element in the tabbing order of the current document. * Tabbing order determines the sequence in which elements receive * focus when the tab key is pressed. The value must be an integer * between 0 and 32767.

* @see #getTabIndex() */ public void setTabIndex(int tabIndex) { this.tabIndex = tabIndex; this.tabIndex_set = true; } /** *

The resource at the specified URL is displayed in the frame that is * specified with the target attribute. Values such as "_blank" that are * valid for the target attribute of a HTML anchor element are also valid * for this attribute in this component

*/ @Property(name = "target", displayName = "Target", category = "Behavior", editorClassName = "com.sun.webui.jsf.component.propertyeditors.FrameTargetsEditor") private String target = null; /** *

The resource at the specified URL is displayed in the frame that is * specified with the target attribute. Values such as "_blank" that are * valid for the target attribute of a HTML anchor element are also valid * for this attribute in this component

*/ public String getTarget() { if (this.target != null) { return this.target; } ValueExpression _vb = getValueExpression("target"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

The resource at the specified URL is displayed in the frame that is * specified with the target attribute. Values such as "_blank" that are * valid for the target attribute of a HTML anchor element are also valid * for this attribute in this component

* @see #getTarget() */ public void setTarget(String target) { this.target = target; } /** *

The text to be displayed for the hyperlink.

*/ @Property(name = "text", displayName = "text", category = "Appearance", isDefault = true, editorClassName = "com.sun.rave.propertyeditors.StringPropertyEditor") public Object getText() { return getValue(); } /** *

The text to be displayed for the hyperlink.

* @see #getText() */ public void setText(Object text) { setValue(text); } /** *

Sets the value of the title attribute for the HTML element. * The specified text will display as a tooltip if the mouse cursor hovers * over the HTML element.

*/ @Property(name = "toolTip", displayName = "Tool Tip", category = "Behavior", editorClassName = "com.sun.rave.propertyeditors.StringPropertyEditor") private String toolTip = null; /** *

Sets the value of the title attribute for the HTML element. * The specified text will display as a tooltip if the mouse cursor hovers * over the HTML element.

*/ public String getToolTip() { if (this.toolTip != null) { return this.toolTip; } ValueExpression _vb = getValueExpression("toolTip"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Sets the value of the title attribute for the HTML element. * The specified text will display as a tooltip if the mouse cursor hovers * over the HTML element.

* @see #getToolTip() */ public void setToolTip(String toolTip) { this.toolTip = toolTip; } /** *

The MIME content type of the resource specified by this component.

*/ @Property(name = "type", displayName = "Type", category = "Advanced", editorClassName = "com.sun.webui.jsf.component.propertyeditors.MimeTypesEditor") private String type = null; /** *

The MIME content type of the resource specified by this component.

*/ public String getType() { if (this.type != null) { return this.type; } ValueExpression _vb = getValueExpression("type"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

The MIME content type of the resource specified by this component.

* @see #getType() */ public void setType(String type) { this.type = type; } /** *

Absolute, relative, or context relative (starting with "/") URL to the * resource selected by this hyperlink. If the url attribute is specified, * clicking this hyperlink sends the browser to the new location. If the action * attribute is specified, the form is submitted. If both are specified, * the url attribute takes precedence.

*/ @Property(name = "url", displayName = "URL", category = "Behavior", editorClassName = "com.sun.webui.jsf.component.propertyeditors.SunWebUrlPropertyEditor") private String url = null; /** *

Absolute, relative, or context relative (starting with "/") URL to the * resource selected by this hyperlink. If the url attribute is specified, * clicking this hyperlink sends the browser to the new location. If the action * attribute is specified, the form is submitted. If both are specified, * the url attribute takes precedence.

*/ public String getUrl() { if (this.url != null) { return this.url; } ValueExpression _vb = getValueExpression("url"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

Absolute, relative, or context relative (starting with "/") URL to the * resource selected by this hyperlink. If the url attribute is specified, * clicking this hyperlink sends the browser to the new location. If the action * attribute is specified, the form is submitted. If both are specified, * the url attribute takes precedence.

* @see #getUrl() */ public void setUrl(String url) { this.url = url; } /** *

The language code of the resource designated by this hyperlink.

*/ @Property(name = "urlLang", displayName = "URL Lang", category = "Advanced", editorClassName = "com.sun.webui.jsf.component.propertyeditors.LanguagesEditor") private String urlLang = null; /** *

The language code of the resource designated by this hyperlink.

*/ public String getUrlLang() { if (this.urlLang != null) { return this.urlLang; } ValueExpression _vb = getValueExpression("urlLang"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** *

The language code of the resource designated by this hyperlink.

* @see #getUrlLang() */ public void setUrlLang(String urlLang) { this.urlLang = urlLang; } /** *

Use the visible attribute to indicate whether the component should be * viewable by the user in the rendered HTML page. If set to false, the * HTML code for the component is present in the page, but the component * is hidden with style attributes. By default, visible is set to true, so * HTML for the component HTML is included and visible to the user. If the * component is not visible, it can still be processed on subsequent form * submissions because the HTML is present.

*/ @Property(name = "visible", displayName = "Visible", category = "Behavior") private boolean visible = false; private boolean visible_set = false; /** *

Use the visible attribute to indicate whether the component should be * viewable by the user in the rendered HTML page. If set to false, the * HTML code for the component is present in the page, but the component * is hidden with style attributes. By default, visible is set to true, so * HTML for the component HTML is included and visible to the user. If the * component is not visible, it can still be processed on subsequent form * submissions because the HTML is present.

*/ public boolean isVisible() { if (this.visible_set) { return this.visible; } ValueExpression _vb = getValueExpression("visible"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext().getELContext()); if (_result == null) { return false; } else { return ((Boolean) _result).booleanValue(); } } return true; } /** *

Use the visible attribute to indicate whether the component should be * viewable by the user in the rendered HTML page. If set to false, the * HTML code for the component is present in the page, but the component * is hidden with style attributes. By default, visible is set to true, so * HTML for the component HTML is included and visible to the user. If the * component is not visible, it can still be processed on subsequent form * submissions because the HTML is present.

* @see #isVisible() */ public void setVisible(boolean visible) { this.visible = visible; this.visible_set = true; } /** *

Restore the state of this component.

*/ @Override public void restoreState(FacesContext _context, Object _state) { Object _values[] = (Object[]) _state; super.restoreState(_context, _values[0]); this.disabled = ((Boolean) _values[1]).booleanValue(); this.disabled_set = ((Boolean) _values[2]).booleanValue(); this.onBlur = (String) _values[3]; this.onClick = (String) _values[4]; this.onDblClick = (String) _values[5]; this.onFocus = (String) _values[6]; this.onKeyDown = (String) _values[7]; this.onKeyPress = (String) _values[8]; this.onKeyUp = (String) _values[9]; this.onMouseDown = (String) _values[10]; this.onMouseMove = (String) _values[11]; this.onMouseOut = (String) _values[12]; this.onMouseOver = (String) _values[13]; this.onMouseUp = (String) _values[14]; this.shape = (String) _values[15]; this.style = (String) _values[16]; this.styleClass = (String) _values[17]; this.tabIndex = ((Integer) _values[18]).intValue(); this.tabIndex_set = ((Boolean) _values[19]).booleanValue(); this.target = (String) _values[20]; this.toolTip = (String) _values[21]; this.type = (String) _values[22]; this.url = (String) _values[23]; this.urlLang = (String) _values[24]; this.visible = ((Boolean) _values[25]).booleanValue(); this.visible_set = ((Boolean) _values[26]).booleanValue(); } /** *

Save the state of this component.

*/ @Override public Object saveState(FacesContext _context) { Object _values[] = new Object[27]; _values[0] = super.saveState(_context); _values[1] = this.disabled ? Boolean.TRUE : Boolean.FALSE; _values[2] = this.disabled_set ? Boolean.TRUE : Boolean.FALSE; _values[3] = this.onBlur; _values[4] = this.onClick; _values[5] = this.onDblClick; _values[6] = this.onFocus; _values[7] = this.onKeyDown; _values[8] = this.onKeyPress; _values[9] = this.onKeyUp; _values[10] = this.onMouseDown; _values[11] = this.onMouseMove; _values[12] = this.onMouseOut; _values[13] = this.onMouseOver; _values[14] = this.onMouseUp; _values[15] = this.shape; _values[16] = this.style; _values[17] = this.styleClass; _values[18] = new Integer(this.tabIndex); _values[19] = this.tabIndex_set ? Boolean.TRUE : Boolean.FALSE; _values[20] = this.target; _values[21] = this.toolTip; _values[22] = this.type; _values[23] = this.url; _values[24] = this.urlLang; _values[25] = this.visible ? Boolean.TRUE : Boolean.FALSE; _values[26] = this.visible_set ? Boolean.TRUE : Boolean.FALSE; return _values; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy