|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcharva.awt.Component
charvax.swing.JComponent
charvax.swing.JProgressBar
A component that displays an integer value within a bounded interval. A progress bar is typically used to indicate the progress of some task by displaying a percentage of completion and possibly a textual display of this percentage.
| Field Summary | |
protected boolean |
_indeterminate
|
protected java.lang.Thread |
_indeterminateThread
|
protected int |
_maximum
|
protected int |
_minimum
|
protected java.lang.String |
_string
|
protected boolean |
_stringPainted
|
protected int |
_value
|
protected int |
_width
The length of this component on the screen. |
| Fields inherited from class charvax.swing.JComponent |
_border |
| Fields inherited from class charva.awt.Component |
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Constructor Summary | |
JProgressBar()
Creates a horizontal progress bar that displays a border but no progress string. |
|
JProgressBar(int min_,
int max_)
Creates a progress bar with the specified minimum and maximum values. |
|
| Method Summary | |
void |
debug(int level_)
|
void |
draw()
Draws the border of the component (if there is one). |
void |
finalize()
|
int |
getHeight()
|
int |
getMaximum()
|
int |
getMinimum()
|
Dimension |
getSize()
Get the screen size of the progress bar. |
java.lang.String |
getString()
Returns the value of the progress string |
int |
getValue()
|
int |
getWidth()
|
boolean |
isFocusTraversable()
This component will not receive focus when Tab or Shift-Tab is pressed. |
boolean |
isIndeterminate()
|
boolean |
isStringPainted()
Returns the value of the _stringPainted property |
Dimension |
minimumSize()
|
void |
processKeyEvent(KeyEvent ke_)
The JProgressBar class ignores key events. |
void |
requestFocus()
The JProgressBar component never gets the keyboard input focus. |
void |
setIndeterminate(boolean newval)
|
void |
setMaximum(int max_)
Set the progress bar's maximum value. |
void |
setMinimum(int min_)
Set the progress bar's minimum value. |
void |
setSize(Dimension size_)
Set the size of the component on the screen. |
void |
setString(java.lang.String string_)
Sets the value of the progress string |
void |
setStringPainted(boolean stringPainted_)
Set the value of the _stringPainted property |
void |
setValue(int value_)
Set the progress bar's value. |
| Methods inherited from class charvax.swing.JComponent |
getBorder, getInsets, setBorder |
| Methods inherited from class charva.awt.Component |
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, invalidate, isDisplayed, isEnabled, isTotallyObscured, isValid, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int _minimum
protected int _value
protected int _maximum
protected boolean _stringPainted
protected java.lang.String _string
protected int _width
protected boolean _indeterminate
protected java.lang.Thread _indeterminateThread
| Constructor Detail |
public JProgressBar()
public JProgressBar(int min_,
int max_)
| Method Detail |
public void setMinimum(int min_)
public void setValue(int value_)
public void setMaximum(int max_)
public void setSize(Dimension size_)
public Dimension getSize()
getSize in class Componentpublic int getWidth()
getWidth in class Componentpublic int getHeight()
getHeight in class Componentpublic void draw()
JComponent
draw in class JComponentpublic boolean isFocusTraversable()
isFocusTraversable in class Componentpublic void processKeyEvent(KeyEvent ke_)
processKeyEvent in class Componentpublic void requestFocus()
requestFocus in class Componentpublic void debug(int level_)
debug in class Componentpublic Dimension minimumSize()
minimumSize in class Componentpublic int getMinimum()
public int getValue()
public int getMaximum()
public boolean isStringPainted()
public void setStringPainted(boolean stringPainted_)
public void setString(java.lang.String string_)
public void setIndeterminate(boolean newval)
public boolean isIndeterminate()
public java.lang.String getString()
public void finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||