Package org.dwcj.controls.progressbar
Class ProgressBar
java.lang.Object
org.dwcj.controls.AbstractControl
org.dwcj.controls.AbstractDwcControl
org.dwcj.controls.progressbar.ProgressBar
- All Implemented Interfaces:
Control,Enableable,HasAttribute,HasClassName,HasComputedStyle,HasControlText,HasDestroy,HasStyle,HasTooltip,HasVisibility
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.dwcj.controls.AbstractDwcControl
BASISNUMBER_1, BASISNUMBER_25, BASISNUMBER_250, focusable, horizontalScrollBarPosition, mouseWheelCondition, readOnly, STR_EXPANSE, STR_THEME, tabTraversable, textAlignment, textHighlight, verticalScrollBarPositionFields inherited from class org.dwcj.controls.AbstractControl
ctrl, destroyed, elementId, userData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddClassName(String selector) Adds a CSS class to the list of CSS classes for the control.protected voidcatchUp()The catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation.protected voidCreate the object on a panel p.This method returns the maximum range of theProgressBar control.This method returns the minimum range of theProgressBar control.This method returns the orientation of the ProgressBar control.getText()This method returns the text of aProgressBar control.getValue()This method returns the current value of a ProgressBar control.This method returns whether the ProgressBar control.This method returns whether the ProgressBar control will display a label (defaults to % complete).removeClassName(String selector) Removes a CSS class from the list of CSS classes for the control.setAttribute(String attribute, String value) set the value for an attribute in the controlsetEnabled(Boolean enabled) Set whether the control is to be enabledAssigns the ID of a controlsetIndeterminate(Boolean indeterminate) This method sets whether the ProgressBar control is indeterminate.setMaximum(Integer maximum) This method sets the maximum range for the ProgressBar control.setMinimum(Integer minimum) This method sets the minimum range for the ProgressBar control.setOrientation(Integer orientation) This method sets the orientation of the ProgressBar control to HORIZONTAL or VERTICAL.setProgressBarText(String text) This method sets the text (label) of a ProgressBar control.setStringPainted(Boolean stringPainted) This method determines whether the ProgressBar control will show a label.Assigns specified value to the specified CSS propertyset the text of the control Each control implementing this interface has a text property, which might be visible in different ways (caption, title, contents of edit) or sometimes not visible at allsetTooltipText(String text) Set the tooltip text of the controlThis method sets the value of a ProgressBar control.setVisible(Boolean visible) Set whether the control is visible or invisibleMethods inherited from class org.dwcj.controls.AbstractDwcControl
destroy, getAttribute, getComputedStyle, getTooltipText, isEnabled, isVisible, setControlExpanse, setControlThemeMethods inherited from class org.dwcj.controls.AbstractControl
getCaughtUp, getId, getUserData, isDestroyed, setUserData
-
Constructor Details
-
ProgressBar
public ProgressBar()
-
-
Method Details
-
create
Description copied from class:AbstractControlCreate the object on a panel p. The preferred way of creating an object is using the Panel::add(Control) method, instead of this- Overrides:
createin classAbstractControl- Parameters:
p- the panel to add this control on
-
getMaximum
This method returns the maximum range of theProgressBar control.- Returns:
- Returns the maximum range of the progress bar.
-
getMinimum
This method returns the minimum range of theProgressBar control.- Returns:
- Returns the minimum range of the progress bar.
-
getOrientation
This method returns the orientation of the ProgressBar control.- Returns:
- Returns 0 if horizontal, 1 if vertical.
-
getText
This method returns the text of aProgressBar control.- Specified by:
getTextin interfaceHasControlText- Overrides:
getTextin classAbstractDwcControl- Returns:
- Returns the text (label) of the progress bar control.
-
getValue
This method returns the current value of a ProgressBar control.- Returns:
- Returns the current value of the progress bar control.
-
isIndeterminate
This method returns whether the ProgressBar control.- Returns:
- Returns whether the progress bar is indeterminate (false = specific range, true = indeterminate).
-
isStringPainted
This method returns whether the ProgressBar control will display a label (defaults to % complete).- Returns:
- Returns whether the progress bar will show a label (false = no label, true = label will be displayed).
-
setIndeterminate
This method sets whether the ProgressBar control is indeterminate. This option is not available on all platforms.- Parameters:
indeterminate- - Sets whether the progress bar is indeterminate (false = Progress bar has a fixed range, which can be retrieved with getMinimum() and getMaximum(), true = Progress bar is indeterminate, indicating that the duration of the task is not yet known.)- Returns:
- Returns this
-
setMaximum
This method sets the maximum range for the ProgressBar control.- Parameters:
maximum- - Specifies the maximum range of the BBjProgressBar control.- Returns:
- Returns this
-
setMinimum
This method sets the minimum range for the ProgressBar control.- Parameters:
minimum- - Specifies the minimum range of the BBjProgressBar control.- Returns:
- Returns this
-
setOrientation
This method sets the orientation of the ProgressBar control to HORIZONTAL or VERTICAL.- Parameters:
orientation- - Specifies the orientation as HORIZONTAL or VERTICAL.- Returns:
- Returns this
-
setStringPainted
This method determines whether the ProgressBar control will show a label.- Parameters:
stringPainted- - Specifies whether the progress bar should display a label (false = Not painted, 1 = Painted)- Returns:
- Returns this
-
setProgressBarText
This method sets the text (label) of a ProgressBar control.- Parameters:
text- - Specifies the text to be displayed on the BBjProgressBar. If text is set to "", the progress bar will display percentage complete in the format "XX%".- Returns:
- Returns this
-
setValue
This method sets the value of a ProgressBar control.- Parameters:
value- - Specifies the value of the control.- Returns:
- Returns this
-
setText
Description copied from interface:HasControlTextset the text of the control Each control implementing this interface has a text property, which might be visible in different ways (caption, title, contents of edit) or sometimes not visible at all- Specified by:
setTextin interfaceHasControlText- Overrides:
setTextin classAbstractDwcControl- Returns:
- the control itself
-
setVisible
Description copied from interface:HasVisibilitySet whether the control is visible or invisible- Specified by:
setVisiblein interfaceHasVisibility- Overrides:
setVisiblein classAbstractDwcControl- Returns:
- the control itself
-
setEnabled
Description copied from interface:EnableableSet whether the control is to be enabled- Specified by:
setEnabledin interfaceEnableable- Overrides:
setEnabledin classAbstractDwcControl- Returns:
- the control itself
-
setTooltipText
Description copied from interface:HasTooltipSet the tooltip text of the control- Specified by:
setTooltipTextin interfaceHasTooltip- Overrides:
setTooltipTextin classAbstractDwcControl- Returns:
- the control itself
-
setAttribute
Description copied from class:AbstractDwcControlset the value for an attribute in the control- Specified by:
setAttributein interfaceHasAttribute- Overrides:
setAttributein classAbstractDwcControl- Parameters:
attribute- the name of the attributevalue- the value to be set- Returns:
- the control itself
-
setId
Description copied from interface:ControlAssigns the ID of a control- Specified by:
setIdin interfaceControl- Overrides:
setIdin classAbstractControl- Parameters:
elementId- Desired ID designation- Returns:
- The control itself
-
setStyle
Description copied from interface:HasStyleAssigns specified value to the specified CSS property- Specified by:
setStylein interfaceHasStyle- Overrides:
setStylein classAbstractDwcControl- Parameters:
property- The CSS property to be changedvalue- The value of the selected CSS property- Returns:
- The control itself
-
addClassName
Description copied from interface:HasClassNameAdds a CSS class to the list of CSS classes for the control.- Specified by:
addClassNamein interfaceHasClassName- Overrides:
addClassNamein classAbstractDwcControl- Returns:
- The control itself
-
removeClassName
Description copied from interface:HasClassNameRemoves a CSS class from the list of CSS classes for the control.- Specified by:
removeClassNamein interfaceHasClassName- Overrides:
removeClassNamein classAbstractDwcControl- Returns:
- The control itself
-
catchUp
Description copied from class:AbstractDwcControlThe catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation. A control is not created before it's added to a panel. Anything that is added between instantiation of a control and its addition to a panel has to be recorded and replayed in this method- Overrides:
catchUpin classAbstractDwcControl- Throws:
IllegalAccessException- - thrown if an attempt is made to call this method more than once
-