public class GProgressBar extends GComponent implements GDisplay
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GProgressBar(int value)
Constructor to create a progress bar with an initial value on it.
|
GProgressBar(String widgetId,
int orientation,
int value)
Constructor to create a progress bar with an initial value on it.
|
Modifier and Type | Method and Description |
---|---|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
JProgressBar |
getJProgressBar()
Get the Swing JProgressBar encapsulated by the class.
|
void |
setIndeterminate(boolean flag)
Set the progressBar to the indeterminate representation.
|
void |
setProgressValue(Integer value)
Launches an event to the main GUI thread queue to update the progress bar percentage with a given
value.
|
void |
setStringPainted(boolean flag)
Sets if the string shall be painted or not.
|
void |
setValue(int value)
Set the value for the progress bar.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GProgressBar(int value)
value
- of the progress.public GProgressBar(String widgetId, int orientation, int value)
widgetId
- Widget identifier.orientation
- of the progressBar.value
- of the progress.public void setValue(int value)
setProgressValue(Integer)
can be used in this case).value
- of the progress.public void setProgressValue(Integer value)
value
- to set to the progress bar, if -1 the progress bar is set to indertermined mode.public void setIndeterminate(boolean flag)
flag
- true if the representation is indeterminate, false otherwise.public void setStringPainted(boolean flag)
flag
- true if the string shall be painted, false otherwise.public void display()
public JProgressBar getJProgressBar()
public Component getComponent()
getComponent
in class GComponent
Copyright © 2024. All rights reserved.