|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQProgressBar
Progress Bar Component.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants |
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQProgressBarProperties |
PROPERTY_INDETERMINATE, PROPERTY_MODEL, PROPERTY_ORIENTATION, PROPERTY_STRING, PROPERTY_STRING_PAINTED |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQProgressBar()
Constructs new JQProgressBar object. |
|
JQProgressBar(BoundedRangeModel model)
Constructs new JQProgressBar object. |
|
JQProgressBar(int orientation)
Constructs new JQProgressBar object. |
|
JQProgressBar(int minimum,
int maximum)
Constructs new JQProgressBar object. |
|
JQProgressBar(int orientation,
int minimum,
int maximum)
Constructs new JQProgressBar object. |
Method Summary | |
void |
addChangeListener(ChangeListener listener)
Adds change listener. |
protected void |
fireStateChanged()
Fires state changed event. |
ChangeListener[] |
getChangeListeners()
Returns change listeners. |
int |
getMaximum()
Returns maximum progress value. |
int |
getMinimum()
Returns minimum progress value. |
BoundedRangeModel |
getModel()
Returns data model of the progress bar. |
int |
getOrientation()
Returns orientation of the progress bar. |
double |
getPercentComplete()
Returns the percent complete. |
java.lang.String |
getString()
Returns progress string. |
int |
getValue()
Returns current value of the progress bar. |
boolean |
isIndeterminate()
Returns true if the progress bar is indeterminate. |
boolean |
isStringPainted()
Returns true if the progress string is painted. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
removeChangeListener(ChangeListener listener)
Removes change listener. |
void |
setIndeterminate(boolean indeterminate)
Sets whether or not the progress bar is indeterminate. |
void |
setMaximum(int maximum)
Sets maximum progress value. |
void |
setMinimum(int minimum)
Sets minimum progress value. |
void |
setModel(BoundedRangeModel model)
Sets data model of the progress bar. |
void |
setOrientation(int orientation)
Sets orientation. |
void |
setString(java.lang.String progressString)
Sets progress string. |
void |
setStringPainted(boolean paintString)
Sets whether of not the progress string is painted. |
void |
setValue(int value)
Sets current value of the progress bar. |
void |
updateLocalization()
Updates localization. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JQProgressBar()
public JQProgressBar(int orientation)
orientation
- the orientation of the progress barpublic JQProgressBar(int minimum, int maximum)
minimum
- the minimum value of the progress barmaximum
- the maximum value of the progress barpublic JQProgressBar(int orientation, int minimum, int maximum)
orientation
- the orientation of the progress barminimum
- the minimum value of the progress barmaximum
- the maximum value of the progress bar
java.lang.IllegalArgumentException
- it the orientation is invalidpublic JQProgressBar(BoundedRangeModel model)
model
- the modelMethod Detail |
public BoundedRangeModel getModel()
public void setModel(BoundedRangeModel model)
model
- the data modelpublic int getValue()
public void setValue(int value)
value
- the current value of the progress barpublic int getMinimum()
public void setMinimum(int minimum)
minimum
- the maximum progress valuepublic int getMaximum()
public void setMaximum(int maximum)
maximum
- the maximum progress valuepublic java.lang.String getString()
public void setString(java.lang.String progressString)
progressString
- the progress stringpublic boolean isStringPainted()
public void setStringPainted(boolean paintString)
paintString
- true if paintedpublic double getPercentComplete()
public int getOrientation()
public void setOrientation(int orientation)
orientation
- the orientationpublic boolean isIndeterminate()
public void setIndeterminate(boolean indeterminate)
indeterminate
- true if indeterminatepublic void addChangeListener(ChangeListener listener)
listener
- the change listenerpublic void removeChangeListener(ChangeListener listener)
listener
- the component listenerpublic ChangeListener[] getChangeListeners()
protected void fireStateChanged()
public void updateLocalization()
updateLocalization
in class JQComponent
protected java.lang.String paramString()
paramString
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |