java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
javax.swing.JWindow
jpicedt.ui.util.PEProgressBar
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable
- public class PEProgressBar
- extends javax.swing.JWindow
a progress bar that is (currently) used only during GUI initialization on start-up (hence messages are predefined so that
it makes sense during a GUI init, but probably not elsewhere).
Nested classes inherited from class javax.swing.JWindow |
javax.swing.JWindow.AccessibleJWindow |
Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Methods inherited from class javax.swing.JWindow |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getLayeredPane, getPreferredSize, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update, windowInit |
Methods inherited from class java.awt.Window |
addNotify, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
maximum
private int maximum
progressValue
private int progressValue
progressMsg
private java.lang.String progressMsg
title
private java.lang.String title
logoPanel
private PEProgressBar.LogoPanel logoPanel
TITLE
private static final java.lang.String TITLE
INITIAL_MSG
private static final java.lang.String INITIAL_MSG
- See Also:
- Constant Field Values
LOGO_URL
private static final java.lang.String LOGO_URL
- See Also:
- Constant Field Values
LOGO_WIDTH
private static final int LOGO_WIDTH
- See Also:
- Constant Field Values
LOGO_HEIGHT
private static final int LOGO_HEIGHT
- See Also:
- Constant Field Values
MSG_X
private static final float MSG_X
- See Also:
- Constant Field Values
MSG_Y
private static final float MSG_Y
- See Also:
- Constant Field Values
MSG_COLOUR
private static final java.awt.Color MSG_COLOUR
TITLE_X
private static final float TITLE_X
- See Also:
- Constant Field Values
TITLE_Y
private static final float TITLE_Y
- See Also:
- Constant Field Values
TITLE_COLOUR
private static final java.awt.Color TITLE_COLOUR
PEProgressBar
public PEProgressBar(int maximum)
PEProgressBar
public PEProgressBar(int maximum,
java.lang.String title,
java.lang.String initMsg)
destroy
public void destroy()
- destroy this progress bar, disposing the hosting frame
increment
public void increment(java.lang.String message)
- increment the state of this progress bar by one, displaying the given message at the same time
increment
public void increment()
- increment the state of this progress bar by one, leaving the message unchanged
confirmMsg
public void confirmMsg(java.lang.String message)
- open a dialog box with the given information message
recoverableError
public void recoverableError(java.lang.String message)
- open a dialog box with the given error message
fatalError
public void fatalError(java.lang.String message)
- open a modal dialog box with the given error message, wait for the user to close the dialog, then exit the application
main
public static void main(java.lang.String[] args)
- test