|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.ProgressBar
public class ProgressBar
A simple colour based progress bar component. Unlike the original EPNG progress bar component, this is very light-weight and does not require compositing images on the server.
Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.
Field Summary | |
---|---|
static String |
PROPERTY_BAR_BACKGROUND
The property used to set the background colour of the variable width progress bar element. |
static String |
PROPERTY_PERCENTAGE
The property used to indicate the progress percentage value. |
static String |
PROPERTY_TEXT
The property used to display an optional text value in the bar. |
Fields inherited from class echopoint.internal.AbstractContainer |
---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
Constructor Summary | |
---|---|
ProgressBar()
|
Method Summary | |
---|---|
Color |
getBarBackground()
Return the value of PROPERTY_BAR_BACKGROUND property. |
int |
getPercentage()
Return the value of PROPERTY_PERCENTAGE property. |
String |
getText()
Return the value of PROPERTY_TEXT property. |
void |
setBarBackground(Color background)
Set the value of the PROPERTY_BAR_BACKGROUND property. |
void |
setPercentage(int percentage)
Set the value of the PROPERTY_PERCENTAGE property. |
void |
setText(String text)
Set the value of the PROPERTY_TEXT property. |
Methods inherited from class echopoint.internal.AbstractContainer |
---|
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_BAR_BACKGROUND
public static final String PROPERTY_PERCENTAGE
public static final String PROPERTY_TEXT
Constructor Detail |
---|
public ProgressBar()
Method Detail |
---|
public Color getBarBackground()
PROPERTY_BAR_BACKGROUND
property.
public void setBarBackground(Color background)
PROPERTY_BAR_BACKGROUND
property.
background
- The background colour for the variable width bar.public int getPercentage()
PROPERTY_PERCENTAGE
property.
public void setPercentage(int percentage)
PROPERTY_PERCENTAGE
property.
percentage
- The percentage complete that is to be depicted.public String getText()
PROPERTY_TEXT
property.
public void setText(String text)
PROPERTY_TEXT
property.
text
- The optional text to be displayed in the progress bar.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |