Business Components

oracle.jbo.uicli.controls
Class JUStatusBar.StatusBarProgressControl

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JProgressBar
                          |
                          +--oracle.jbo.uicli.controls.JUStatusBar.StatusBarProgressControl
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants
Enclosing class:
JUStatusBar

public class JUStatusBar.StatusBarProgressControl
extends javax.swing.JProgressBar

A derivative of JProgressBar that listens to three DataItems. The first DataItem is the Maximim value, the second DataItem is the current value, and the third DataItem is the minimum value. The third DataItem is optional and if missing, the minimum value is assumed to be 1.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JProgressBar
javax.swing.JProgressBar.AccessibleJProgressBar
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Fields inherited from class javax.swing.JProgressBar
changeEvent, changeListener, model, orientation, paintBorder, paintString, progressString
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JUStatusBar.StatusBarProgressControl()
          Constructs a StatusBarProgressControl.
JUStatusBar.StatusBarProgressControl(int orient)
           
JUStatusBar.StatusBarProgressControl(int min, int max)
           
JUStatusBar.StatusBarProgressControl(int orient, int min, int max, java.lang.String formatString, Formatter formatter)
           
JUStatusBar.StatusBarProgressControl(java.lang.String formatString, Formatter formatter)
          Creates a LabelControl instance with the specified image.
 
Method Summary
TypeMethod
 java.lang.String getFormatString()
          Returns the format string to be used when displaying the value.
 Formatter getFormatter()
          Returns the formatter for the ProgressControl.
 java.awt.Dimension getMaximumSize()
          StatusBarProgressControl override.
 java.awt.Dimension getMinimumSize()
          StatusBarProgressControl override.
 java.awt.Dimension getPreferredSize()
          StatusBarProgressControl override.
 void setFormatString(java.lang.String nuFormatString)
          Sets the format string to be used when displaying the value.
 void setFormatter(Formatter formatter)
          Sets the formatter for the ProgressControl
 void setMaximumSize(java.awt.Dimension dim)
           
 void setMinimumSize(java.awt.Dimension dim)
           
 void setPreferredSize(java.awt.Dimension dim)
           
 void setSize(java.awt.Dimension dim)
           
 void setSize(int width, int height)
           
 
Methods inherited from class javax.swing.JProgressBar
addChangeListener, createChangeListener, fireStateChanged, getAccessibleContext, getMaximum, getMinimum, getModel, getOrientation, getPercentComplete, getString, getUI, getUIClassID, getValue, isBorderPainted, isStringPainted, paintBorder, paramString, removeChangeListener, setBorderPainted, setMaximum, setMinimum, setModel, setOrientation, setString, setStringPainted, setUI, setValue, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JUStatusBar.StatusBarProgressControl

public JUStatusBar.StatusBarProgressControl()
Constructs a StatusBarProgressControl.

JUStatusBar.StatusBarProgressControl

public JUStatusBar.StatusBarProgressControl(int orient)

JUStatusBar.StatusBarProgressControl

public JUStatusBar.StatusBarProgressControl(int min,
                                            int max)

JUStatusBar.StatusBarProgressControl

public JUStatusBar.StatusBarProgressControl(java.lang.String formatString,
                                            Formatter formatter)
Creates a LabelControl instance with the specified image. The label is centered vertically and horizontally in display area.
Parameters:
image - The image to be displayed by the label.

JUStatusBar.StatusBarProgressControl

public JUStatusBar.StatusBarProgressControl(int orient,
                                            int min,
                                            int max,
                                            java.lang.String formatString,
                                            Formatter formatter)
Method Detail

getMaximumSize

public java.awt.Dimension getMaximumSize()
StatusBarProgressControl override.

Overrides:
getMaximumSize in class javax.swing.JComponent
Returns:
the maximum Dimensions of the StatusBarProgressControl

setMaximumSize

public void setMaximumSize(java.awt.Dimension dim)
Overrides:
setMaximumSize in class javax.swing.JComponent

getMinimumSize

public java.awt.Dimension getMinimumSize()
StatusBarProgressControl override.

Overrides:
getMinimumSize in class javax.swing.JComponent
Returns:
The minimum Dimensions of the StatusBarProgressControl.

setMinimumSize

public void setMinimumSize(java.awt.Dimension dim)
Overrides:
setMinimumSize in class javax.swing.JComponent

getPreferredSize

public java.awt.Dimension getPreferredSize()
StatusBarProgressControl override.

Overrides:
getPreferredSize in class javax.swing.JComponent
Returns:
The preferred Dimensions of the StatusBarProgressControl.

setPreferredSize

public void setPreferredSize(java.awt.Dimension dim)
Overrides:
setPreferredSize in class javax.swing.JComponent

setSize

public void setSize(java.awt.Dimension dim)
Overrides:
setSize in class java.awt.Component

setSize

public void setSize(int width,
                    int height)
Overrides:
setSize in class java.awt.Component

setFormatString

public void setFormatString(java.lang.String nuFormatString)
Sets the format string to be used when displaying the value.

The format string should be a format string as supported by the DefaultNumberFormatter.

Parameters:
nuFormatString - The format string.
See Also:
getFormatString(), DefaultNumberFormatter

getFormatString

public java.lang.String getFormatString()
Returns the format string to be used when displaying the value.

The format string should be a format string as supported by the DefaultNumberFormatter.

Returns:
A reference to the format string.
See Also:
setFormatString(String nuFormatString), DefaultNumberFormatter

setFormatter

public void setFormatter(Formatter formatter)
Sets the formatter for the ProgressControl
Parameters:
Formatter - the new formatter for the progress control.

getFormatter

public Formatter getFormatter()
Returns the formatter for the ProgressControl.
Returns:
The new formatter for the progress control.

Business Components