org.olat.core.gui.components.progressbar
Class ProgressBar
java.lang.Object
org.olat.core.gui.components.Component
org.olat.core.gui.components.progressbar.ProgressBar
public class ProgressBar
- extends Component
Initial Date: Feb 2, 2004 A Choice is
- Author:
- Andreas
|
Constructor Summary |
ProgressBar(java.lang.String name)
|
ProgressBar(java.lang.String name,
int width,
float actual,
float max,
java.lang.String unitLabel)
|
| Methods inherited from class org.olat.core.gui.components.Component |
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProgressBar
public ProgressBar(java.lang.String name)
- Parameters:
name -
ProgressBar
public ProgressBar(java.lang.String name,
int width,
float actual,
float max,
java.lang.String unitLabel)
- Parameters:
name - width - actual - max - unitLabel -
setActual
public void setActual(float i)
- Parameters:
i -
setMax
public void setMax(float i)
- Parameters:
i -
setIsNoMax
public void setIsNoMax(boolean isNoMax)
- If set to true, no max limit for this progress bar.
- Parameters:
noMax -
setUnitLabel
public void setUnitLabel(java.lang.String string)
- Parameters:
string -
setWidth
public void setWidth(int i)
- Parameters:
i -
getExtendedDebugInfo
public java.lang.String getExtendedDebugInfo()
- Overrides:
getExtendedDebugInfo in class Component
- Returns:
- the extended debuginfo
- See Also:
Component.getExtendedDebugInfo()
getHTMLRendererSingleton
public ComponentRenderer getHTMLRendererSingleton()
- Specified by:
getHTMLRendererSingleton in class Component
isPercentagesEnabled
public boolean isPercentagesEnabled()
- Returns:
- percentagesEnabled true: show percentages; false: show only unit labels, no percentags
setPercentagesEnabled
public void setPercentagesEnabled(boolean percentagesEnabled)
- Parameters:
percentagesEnabled - true: show percentages; false: show only unit labels, no percentags