charvax.swing
Class JProgressBar
public class 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.
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT , _alignmentX , _alignmentY , _background , _cursesColor , _enabled , _focusListeners , _foreground , _keyListeners , _origin , _parent , _visible |
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.
|
addFocusListener , addKeyListener , contains , contains , debug , draw , getAlignmentX , getAlignmentY , getAncestorWindow , getBackground , getBounds , getCursesColor , getForeground , getHeight , getLocation , getLocationOnScreen , getName , getParent , getSize , getWidth , hasFocus , hide , invalidate , isDisplayed , isEnabled , isFocusTraversable , isTotallyObscured , isValid , isVisible , minimumSize , processEvent , processFocusEvent , processKeyEvent , processMouseEvent , repaint , requestFocus , requestSync , setBackground , setEnabled , setForeground , setLocation , setLocation , setName , setParent , setVisible , show , validate , validateCursesColor |
_indeterminate
protected boolean _indeterminate
_indeterminateThread
protected Thread _indeterminateThread
_maximum
protected int _maximum
_minimum
protected int _minimum
_string
protected String _string
_stringPainted
protected boolean _stringPainted
_value
protected int _value
_width
protected int _width
The length of this component on the screen.
JProgressBar
public JProgressBar()
Creates a horizontal progress bar that displays a border
but no progress string.
JProgressBar
public JProgressBar(int min_,
int max_)
Creates a progress bar with the specified minimum and
maximum values.
finalize
public void finalize()
getMaximum
public int getMaximum()
getMinimum
public int getMinimum()
getString
public String getString()
Returns the value of the progress string
getValue
public int getValue()
isFocusTraversable
public boolean isFocusTraversable()
This component will not receive focus when Tab or Shift-Tab is pressed.
- isFocusTraversable in interface Component
isIndeterminate
public boolean isIndeterminate()
isStringPainted
public boolean isStringPainted()
Returns the value of the _stringPainted property
processKeyEvent
public void processKeyEvent(KeyEvent ke_)
The JProgressBar class ignores key events. A JProgressBar should never
have input focus anyway.
- processKeyEvent in interface Component
requestFocus
public void requestFocus()
The JProgressBar component never gets the keyboard input focus.
- requestFocus in interface Component
setIndeterminate
public void setIndeterminate(boolean newval)
setMaximum
public void setMaximum(int max_)
Set the progress bar's maximum value.
setMinimum
public void setMinimum(int min_)
Set the progress bar's minimum value.
setSize
public void setSize(Dimension size_)
Set the size of the component on the screen.
setString
public void setString(String string_)
Sets the value of the progress string
setStringPainted
public void setStringPainted(boolean stringPainted_)
Set the value of the _stringPainted property
setValue
public void setValue(int value_)
Set the progress bar's value.