ImageObserver
, MenuContainer
, Serializable
, Accessible
, SwingConstants
Nested Classes
protected class
This class implements accessibility support for the JProgressBar
class.
Fields
Only one ChangeEvent
is needed per instance since the event's only interesting property is the immutable source, which is the progress bar.
Listens for change events sent by the progress bar's model, redispatching them to change-event listeners registered upon this progress bar.
The object that holds the data for the progress bar.
protected int
Whether the progress bar is horizontal or vertical.
protected boolean
Whether to display a border around the progress bar.
protected boolean
Whether to display a string of text on the progress bar.
An optional string that can be displayed on the progress bar.
Fields declared in interface javax.swing.SwingConstantsBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructors
Creates a horizontal progress bar that displays a border but no progress string.
Creates a progress bar with the specified orientation, which can be either SwingConstants.VERTICAL
or SwingConstants.HORIZONTAL
.
Creates a horizontal progress bar with the specified minimum and maximum.
Creates a progress bar using the specified orientation, minimum, and maximum.
Creates a horizontal progress bar that uses the specified model to hold the progress bar's data.
void
Adds the specified ChangeListener
to the progress bar.
Subclasses that want to handle change events from the model differently can override this to return an instance of a custom ChangeListener
implementation.
protected void
Send a ChangeEvent
, whose source is this JProgressBar
, to all ChangeListener
s that have registered interest in ChangeEvent
s.
Gets the AccessibleContext
associated with this JProgressBar
.
Returns an array of all the ChangeListener
s added to this progress bar with addChangeListener
.
int
Returns the progress bar's maximum
value from the BoundedRangeModel
.
int
Returns the progress bar's minimum
value from the BoundedRangeModel
.
Returns the data model used by this progress bar.
int
Returns SwingConstants.VERTICAL
or SwingConstants.HORIZONTAL
, depending on the orientation of the progress bar.
double
Returns the percent complete for the progress bar.
Returns a String
representation of the current progress.
Returns the look-and-feel object that renders this component.
Returns the name of the look-and-feel class that renders this component.
int
Returns the progress bar's current value
from the BoundedRangeModel
.
boolean
Returns the borderPainted
property.
boolean
Returns the value of the indeterminate
property.
boolean
Returns the value of the stringPainted
property.
protected void
Paints the progress bar's border if the borderPainted
property is true
.
Returns a string representation of this JProgressBar
.
void
Removes a ChangeListener
from the progress bar.
void
Sets the borderPainted
property, which is true
if the progress bar should paint its border.
void
Sets the indeterminate
property of the progress bar, which determines whether the progress bar is in determinate or indeterminate mode.
void
Sets the progress bar's maximum value (stored in the progress bar's data model) to n
.
void
Sets the progress bar's minimum value (stored in the progress bar's data model) to n
.
void
Sets the data model used by the JProgressBar
.
void
Sets the progress bar's orientation to newOrientation
, which must be SwingConstants.VERTICAL
or SwingConstants.HORIZONTAL
.
void
Sets the value of the progress string.
void
Sets the value of the stringPainted
property, which determines whether the progress bar should render a progress string.
void
Sets the look-and-feel object that renders this component.
void
Sets the progress bar's current value to n
.
void
Resets the UI property to a value from the current look and feel.
Methods declared in class javax.swing.JComponentaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods declared in class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods declared in class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4