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

com.sun.webui.jsf.component.ProgressBar 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 com.sun.faces.extensions.avatar.lifecycle.AsyncResponse;
import com.sun.webui.theme.Theme;
import com.sun.webui.jsf.theme.ThemeImages;
import com.sun.webui.jsf.util.JavaScriptUtilities;
import com.sun.webui.jsf.util.ThemeUtilities;
import javax.el.ValueExpression;
import javax.faces.component.NamingContainer;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.el.ValueBinding;

/**
 * The ProgressBar component is used to create a progress indicator.
 * 

* Progress Bar component consists of three progress bar designs: "Simple * Determinate", "Indeterminate" and a "Busy" indicator. The "Simple * Determinate" and "Indeterminate" progress bars are represented as graphical * bars. The "Simple Determinate" progress bar is used to represent the * percentage of given task that has been completed. The "Indeterminate" * progress bar is used when estimates of task completion cannot be provided, * yet the task is being performed. Progress bars may also include a textual * description of the operation; a textual description of the current operation * status; and any related controls such as a "Pause", "Resume" and/or "Cancel" * buttons to halt the associated task or job. The "Busy" indicator is used when * space is very constrained. *

*

In the rendered HTML page, the progressbar is created with * <div> elements. The progress consists of the following * areas:

*
    *
  • *

    * An optional textual "operation description" element that describes the * overall operation being monitored. *

    * A dynamic, graphical "progress animation" element that updates as the * operation progresses and has a default height of 14 pixels and width of * 184 pixels. *

    * An optional log message textarea that can be used to display log messages. *

    * An optional control element that can be used to provide a stop control, pause * and resume controls, cancel control or the like (customizable by developer) *

    * An optional textual "status" element that provides a dynamic, written * description of the current state of the operation. *

    *
  • *
*/ @Component(type = "com.sun.webui.jsf.ProgressBar", family = "com.sun.webui.jsf.ProgressBar", displayName = "ProgressBar", tagName = "progressBar", tagRendererType = "com.sun.webui.jsf.widget.ProgressBar") public class ProgressBar extends javax.faces.component.UIOutput implements NamingContainer, Widget { /** The facet name for the top text. */ public static final String TOPTEXT_FACET = "progressTextTop"; //NOI18N /** The facet name for the bottom text. */ public static final String BOTTOMTEXT_FACET = "progressTextBottom"; //NOI18N /** The facet name for the right control. */ public static final String RIGHTTASK_CONTROL_FACET = "progressControlRight"; //NOI18N /** The facet name for the left control. */ public static final String BOTTOMTASK_CONTROL_FACET = "progressControlBottom"; //NOI18N /* Task states.*/ public static String TASK_COMPLETED = "completed"; //NOI18N public static String TASK_PAUSED = "paused"; //NOI18N public static String TASK_STOPPED = "stopped"; //NOI18N public static String TASK_RUNNING = "running"; //NOI18N public static String TASK_RESUMED = "resumed"; //NOI18N public static String TASK_CANCELED = "canceled"; //NOI18N public static String TASK_FAILED = "failed"; //NOI18N public static String TASK_NOT_STARTED = "not_started"; //NOI18N /* Types of ProgressBar. */ public static String DETERMINATE = "DETERMINATE"; //NOI18N public static String INDETERMINATE = "INDETERMINATE"; //NOI18N public static String BUSY_INDICATOR = "BUSY"; //NOI18N /** The component id for the actions separator icon. */ public static final String BUSY_ICON_ID = "_busyImage"; //NOI18N /** Creates a new instance of ProgressBar */ public ProgressBar() { super(); setRendererType("com.sun.webui.jsf.widget.ProgressBar"); } public FacesContext getContext() { return getFacesContext(); } /** *

Return the family for this component.

*/ @Override public String getFamily() { return "com.sun.webui.jsf.ProgressBar"; } @Override public String getRendererType() { if (AsyncResponse.isAjaxRequest()) { return "com.sun.webui.jsf.ajax.ProgressBar"; } else { return super.getRendererType(); } } /** * Get the type of widget represented by this component. * * @return The type of widget represented by this component. */ public String getWidgetType() { return JavaScriptUtilities.getNamespace("progressBar"); } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Icon methods // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /** * Get the busy icon. * * @return The busy icon. */ public UIComponent getBusyIcon() { Theme theme = ThemeUtilities.getTheme(getFacesContext()); // Get child. Icon child = ThemeUtilities.getIcon(theme, ThemeImages.PROGRESS_BUSY); child.setId(BUSY_ICON_ID); child.setBorder(0); // Save facet and return child. getFacets().put(child.getId(), child); return child; } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Tag attribute methods // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /** * The component identifier for this component. This value must be unique * within the closest parent component that is a naming container. */ @Property(name = "id") @Override public void setId(String id) { super.setId(id); } /** * Use the rendered attribute to indicate whether the HTML code for the * component should be included in the rendered HTML page. If set to false, * the rendered HTML page does not include the HTML for the component. If * the component is not rendered, it is also not processed on any subsequent * form submission. */ @Property(name = "rendered") @Override public void setRendered(boolean rendered) { super.setRendered(rendered); } // Overwrite value annotation @Property(isHidden = true, isAttribute = false) @Override public Object getValue() { return super.getValue(); } // Hide converter @Property(isHidden = true, isAttribute = false) @Override public Converter getConverter() { return super.getConverter(); } /** * This function creates one textarea component for displaying * log messages. * @return UIComponent */ public UIComponent getLogMsgComponent(ProgressBar component) { //textArea for running log TextArea textArea = new TextArea(); textArea.setParent(component); textArea.setId("logMsg"); textArea.setRows(4); textArea.setColumns(62); return textArea; } /** * Flag indicating to turn off default Ajax functionality. Set ajaxify to * false when providing a different Ajax implementation. */ @Property(name = "ajaxify", displayName = "Ajaxify", category = "Javascript") private boolean ajaxify = true; private boolean ajaxify_set = false; /** * Test if default Ajax functionality should be turned off. */ public boolean isAjaxify() { if (this.ajaxify_set) { return this.ajaxify; } ValueExpression _vb = getValueExpression("ajaxify"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext().getELContext()); if (_result == null) { return false; } else { return ((Boolean) _result).booleanValue(); } } return true; } /** * Set flag indicating to turn off default Ajax functionality. */ public void setAjaxify(boolean ajaxify) { this.ajaxify = ajaxify; this.ajaxify_set = true; } /** * Alternative HTML template to be used by this component. */ @Property(name = "htmlTemplate", displayName = "HTML Template", category = "Appearance") private String htmlTemplate = null; /** * Get alternative HTML template to be used by this component. */ public String getHtmlTemplate() { if (this.htmlTemplate != null) { return this.htmlTemplate; } ValueExpression _vb = getValueExpression("htmlTemplate"); if (_vb != null) { return (String) _vb.getValue(getFacesContext().getELContext()); } return null; } /** * Set alternative HTML template to be used by this component. */ public void setHtmlTemplate(String htmlTemplate) { this.htmlTemplate = htmlTemplate; } /** *

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 = "toolTip Text", category = "Behavior") 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; } ValueBinding _vb = getValueBinding("toolTip"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } 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; } /** *

Text to describe the operation that is monitored by the progress bar.

*/ @Property(name = "description", displayName = "description", category = "Appearance") private String description = null; /** *

Text to describe the operation that is monitored by the progress bar.

*/ public String getDescription() { if (this.description != null) { return this.description; } ValueBinding _vb = getValueBinding("description"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

Text to describe the operation that is monitored by the progress bar.

* @see #getDescription() */ public void setDescription(String description) { this.description = description; } /** *

Text to be displayed along with an icon when the task fails.

*/ @Property(name = "failedStateText", displayName = "Failed State Text", category = "Appearance") private String failedStateText = null; /** *

Text to be displayed along with an icon when the task fails.

*/ public String getFailedStateText() { ValueBinding _vb = getValueBinding("failedStateText"); // set the default text for failed state if failedStateText is null if (_vb == null && this.failedStateText == null) { this.failedStateText = ThemeUtilities.getTheme(FacesContext.getCurrentInstance()).getMessage("ProgressBar.failedText"); } if (this.failedStateText != null) { return this.failedStateText; } if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

Text to be displayed along with an icon when the task fails.

* @see #getFailedStateText() */ public void setFailedStateText(String failedStateText) { this.failedStateText = failedStateText; } /** *

Number of pixels for the height of the progress bar animation. * The default is 14.

*/ @Property(name = "height", displayName = "Bar Height", category = "Appearance", editorClassName = "com.sun.rave.propertyeditors.IntegerPropertyEditor") private int height = Integer.MIN_VALUE; private boolean height_set = false; /** *

Number of pixels for the height of the progress bar animation. * The default is 14.

*/ public int getHeight() { if (this.height_set) { return this.height; } ValueBinding _vb = getValueBinding("height"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); if (_result == null) { return Integer.MIN_VALUE; } else { return ((Integer) _result).intValue(); } } return Integer.MIN_VALUE; } /** *

Number of pixels for the height of the progress bar animation. * The default is 14.

* @see #getHeight() */ public void setHeight(int height) { this.height = height; this.height_set = true; } /** *

Text to be displayed in a text area at the bottom of the * progress bar component.

*/ @Property(name = "logMessage", displayName = "Log Message", category = "Appearance") private String logMessage = null; /** *

Text to be displayed in a text area at the bottom of the * progress bar component.

*/ public String getLogMessage() { if (this.logMessage != null) { return this.logMessage; } ValueBinding _vb = getValueBinding("logMessage"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

Text to be displayed in a text area at the bottom of the * progress bar component.

* @see #getLogMessage() */ public void setLogMessage(String logMessage) { this.logMessage = logMessage; } /** *

Set to true to display the operation progress text superimposed on the * progress bar animation.

*/ @Property(name = "overlayAnimation", displayName = "Is overlayAnimation", category = "Advanced") private boolean overlayAnimation = false; private boolean overlayAnimation_set = false; /** *

Set to true to display the operation progress text superimposed on the * progress bar animation.

*/ public boolean isOverlayAnimation() { if (this.overlayAnimation_set) { return this.overlayAnimation; } ValueBinding _vb = getValueBinding("overlayAnimation"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); if (_result == null) { return false; } else { return ((Boolean) _result).booleanValue(); } } return false; } /** *

Set to true to display the operation progress text superimposed on the * progress bar animation.

* @see #isOverlayAnimation() */ public void setOverlayAnimation(boolean overlayAnimation) { this.overlayAnimation = overlayAnimation; this.overlayAnimation_set = true; } /** *

An integer that indicates the completion percentage of the task.

*/ @Property(name = "progress", displayName = "Progress", category = "Appearance", editorClassName = "com.sun.rave.propertyeditors.IntegerPropertyEditor") private int progress = Integer.MIN_VALUE; private boolean progress_set = false; /** *

An integer that indicates the completion percentage of the task.

*/ public int getProgress() { if (this.progress_set) { return this.progress; } ValueBinding _vb = getValueBinding("progress"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); if (_result == null) { return Integer.MIN_VALUE; } else { return ((Integer) _result).intValue(); } } return Integer.MIN_VALUE; } /** *

An integer that indicates the completion percentage of the task.

* @see #getProgress() */ public void setProgress(int progress) { this.progress = progress; this.progress_set = true; } /** *

URL to an image to use instead of the default image for the progress indicator.

*/ @Property(name = "progressImageUrl", displayName = "Image Url", category = "Appearance", editorClassName = "com.sun.webui.jsf.component.propertyeditors.SunWebUrlPropertyEditor") private String progressImageUrl = null; /** *

URL to an image to use instead of the default image for the progress indicator.

*/ public String getProgressImageUrl() { if (this.progressImageUrl != null) { return this.progressImageUrl; } ValueBinding _vb = getValueBinding("progressImageUrl"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

URL to an image to use instead of the default image for the progress indicator.

* @see #getProgressImageUrl() */ public void setProgressImageUrl(String progressImageUrl) { this.progressImageUrl = progressImageUrl; } /** *

The number of milliseconds between updates to the progress bar.

*/ @Property(name = "refreshRate", displayName = "Refresh Rate", category = "Appearance", editorClassName = "com.sun.rave.propertyeditors.IntegerPropertyEditor") private int refreshRate = Integer.MIN_VALUE; private boolean refreshRate_set = false; /** *

The number of milliseconds between updates to the progress bar.

*/ public int getRefreshRate() { ValueBinding _vb = getValueBinding("refreshRate"); //set the default refresh rate 3000 if refreshRate < 0 if (_vb == null && this.refreshRate < 0) { this.refreshRate = 3000; } if (this.refreshRate_set) { return this.refreshRate; } if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); if (_result == null) { return Integer.MIN_VALUE; } else { return ((Integer) _result).intValue(); } } return Integer.MIN_VALUE; } /** *

The number of milliseconds between updates to the progress bar.

* @see #getRefreshRate() */ public void setRefreshRate(int refreshRate) { this.refreshRate = refreshRate; this.refreshRate_set = true; } /** *

Text to be displayed at the bottom of the progress bar, for the status of the operation.

*/ @Property(name = "status", displayName = "Status Text", category = "Appearance") private String status = null; /** *

Text to be displayed at the bottom of the progress bar, for the status of the operation.

*/ public String getStatus() { if (this.status != null) { return this.status; } ValueBinding _vb = getValueBinding("status"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

Text to be displayed at the bottom of the progress bar, for the status of the operation.

* @see #getStatus() */ public void setStatus(String status) { this.status = status; } /** *

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; } ValueBinding _vb = getValueBinding("style"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } 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; } ValueBinding _vb = getValueBinding("styleClass"); if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } 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; } ValueBinding _vb = getValueBinding("tabIndex"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); 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; } /** *

A string representing the state of the task associated with this progress bar. * Valid values are:
* not_started
* running
* paused
* resumed
* stopped
* canceled
* failed
* completed

*/ @Property(name = "taskState", displayName = "Task State", category = "Appearance", editorClassName = "com.sun.webui.jsf.component.propertyeditors.ProgressBarStatesTypeEditor") private String taskState = null; /** *

A string representing the state of the task associated with this progress bar. * Default value for taskState is not_started. * Valid values are:

* not_started
* running
* paused
* resumed
* stopped
* canceled
* failed
* completed

*/ public String getTaskState() { // set default state of task as not started and also if progress // is greater than zero and task state is not started then set // it to running state. Also if progress > 99 set taskState to // completed ValueBinding _vb = getValueBinding("taskState"); if (this.taskState == null && _vb == null) { this.taskState = ProgressBar.TASK_NOT_STARTED; } else if (this.taskState.equals(ProgressBar.TASK_NOT_STARTED) && this.progress > 0) { this.taskState = ProgressBar.TASK_RUNNING; } else if (!(this.taskState.equals(ProgressBar.TASK_COMPLETED)) && this.progress > 99) { this.taskState = ProgressBar.TASK_COMPLETED; } if (this.taskState != null) { return this.taskState; } if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

A string representing the state of the task associated with this progress bar. * Valid values are:

* not_started
* running
* paused
* resumed
* stopped
* canceled
* failed
* completed

* @see #getTaskState() */ public void setTaskState(String taskState) { this.taskState = taskState; } /** *

Type of progress bar. Value must be one of the following:
* "DETERMINATE" for horizontal bar showing percent complete
* "INDETERMINATE" for horizontal bar without percent complete
* "BUSY" for simple activity indicator

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

Type of progress bar. Value must be one of the following:
* "DETERMINATE" for horizontal bar showing percent complete
* "INDETERMINATE" for horizontal bar without percent complete
* "BUSY" for simple activity indicator

*/ public String getType() { ValueBinding _vb = getValueBinding("type"); //set type attribute to DETERMINATE if type is null if (_vb == null && this.type == null) { this.type = ProgressBar.DETERMINATE; } if (this.type != null) { return this.type; } if (_vb != null) { return (String) _vb.getValue(getFacesContext()); } return null; } /** *

Type of progress bar. Value must be one of the following:
* "DETERMINATE" for horizontal bar showing percent complete
* "INDETERMINATE" for horizontal bar without percent complete
* "BUSY" for simple activity indicator

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

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") 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; } ValueBinding _vb = getValueBinding("visible"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); 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; } /** *

Number of pixels for the width of the progress bar animation. The default * is 184.

*/ @Property(name = "width", displayName = "Bar Width", category = "Appearance", editorClassName = "com.sun.rave.propertyeditors.IntegerPropertyEditor") private int width = Integer.MIN_VALUE; private boolean width_set = false; /** *

Number of pixels for the width of the progress bar animation. The default * is 184.

*/ public int getWidth() { if (this.width_set) { return this.width; } ValueBinding _vb = getValueBinding("width"); if (_vb != null) { Object _result = _vb.getValue(getFacesContext()); if (_result == null) { return Integer.MIN_VALUE; } else { return ((Integer) _result).intValue(); } } return Integer.MIN_VALUE; } /** *

Number of pixels for the width of the progress bar animation. The default * is 184.

* @see #getWidth() */ public void setWidth(int width) { this.width = width; this.width_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.toolTip = (String) _values[1]; this.description = (String) _values[2]; this.failedStateText = (String) _values[3]; this.height = ((Integer) _values[4]).intValue(); this.height_set = ((Boolean) _values[5]).booleanValue(); this.logMessage = (String) _values[6]; this.overlayAnimation = ((Boolean) _values[7]).booleanValue(); this.overlayAnimation_set = ((Boolean) _values[8]).booleanValue(); this.progress = ((Integer) _values[9]).intValue(); this.progress_set = ((Boolean) _values[10]).booleanValue(); this.progressImageUrl = (String) _values[11]; this.refreshRate = ((Integer) _values[12]).intValue(); this.refreshRate_set = ((Boolean) _values[13]).booleanValue(); this.status = (String) _values[14]; this.style = (String) _values[15]; this.styleClass = (String) _values[16]; this.tabIndex = ((Integer) _values[17]).intValue(); this.tabIndex_set = ((Boolean) _values[18]).booleanValue(); this.taskState = (String) _values[19]; this.type = (String) _values[20]; this.visible = ((Boolean) _values[21]).booleanValue(); this.visible_set = ((Boolean) _values[22]).booleanValue(); this.width = ((Integer) _values[23]).intValue(); this.width_set = ((Boolean) _values[24]).booleanValue(); } /** *

Save the state of this component.

*/ @Override public Object saveState(FacesContext _context) { Object _values[] = new Object[25]; _values[0] = super.saveState(_context); _values[1] = this.toolTip; _values[2] = this.description; _values[3] = this.failedStateText; _values[4] = new Integer(this.height); _values[5] = this.height_set ? Boolean.TRUE : Boolean.FALSE; _values[6] = this.logMessage; _values[7] = this.overlayAnimation ? Boolean.TRUE : Boolean.FALSE; _values[8] = this.overlayAnimation_set ? Boolean.TRUE : Boolean.FALSE; _values[9] = new Integer(this.progress); _values[10] = this.progress_set ? Boolean.TRUE : Boolean.FALSE; _values[11] = this.progressImageUrl; _values[12] = new Integer(this.refreshRate); _values[13] = this.refreshRate_set ? Boolean.TRUE : Boolean.FALSE; _values[14] = this.status; _values[15] = this.style; _values[16] = this.styleClass; _values[17] = new Integer(this.tabIndex); _values[18] = this.tabIndex_set ? Boolean.TRUE : Boolean.FALSE; _values[19] = this.taskState; _values[20] = this.type; _values[21] = this.visible ? Boolean.TRUE : Boolean.FALSE; _values[22] = this.visible_set ? Boolean.TRUE : Boolean.FALSE; _values[23] = new Integer(this.width); _values[24] = this.width_set ? Boolean.TRUE : Boolean.FALSE; return _values; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy