public interface DTSLoadingBarInterface
Modifier and Type | Method and Description |
---|---|
void |
endProgressSection()
inform the bar a section has reach the section end.
|
float |
getValue()
Access to the status bar value.
|
boolean |
isVisible()
Checks if is visible.
|
void |
popMessage()
Restores the last message in the stack.
|
void |
pushMessage()
Stores current message in an internal stack so a call to
popMessage() can
restore it later. |
void |
setMessage(java.lang.String msg,
java.lang.String toolTipText)
Sets a new message in the label at the bottom.
|
void |
setStopable(Stopable stopable)
Sets the container this loading bar is going to work with.
|
void |
setValue(float value)
Value must be a float between 0 and 100
if it is in the range 1-99 then the rolling icon
will be visible moving on the right.
|
void |
setVisible(boolean b)
Sets the visible.
|
void |
startProgressSection(float max)
The
setValue(float) method accepts a value between 0 and 100. |
void setMessage(java.lang.String msg, java.lang.String toolTipText)
msg
- StringtoolTipText
- Stringvoid setValue(float value)
value
- the new valueboolean isVisible()
void setVisible(boolean b)
b
- boolean valuevoid setStopable(Stopable stopable)
stopable
- the new containerfloat getValue()
void startProgressSection(float max)
setValue(float)
method accepts a value between 0 and 100. This method
creates a section that will transform the values sent to setValue(float)
into values that covers the section size.
When the section is finished, a call to endProgressSection()
is required
in order to remove internal section value mappings.
Multiple nested calls to startProgressSection(float)
are allowed. They
divide current section into smaller sub-sections.
Paired calls to startProgressSection(float)
and endProgressSection()
belongs to the same level. The sum of all
section sizes at the same level shall be equal to 100.
max
- the maxsetValue(float)
,
endProgressSection()
void endProgressSection()
startProgressSection(float)
void pushMessage()
popMessage()
can
restore it later.void popMessage()
pushMessage()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa