Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.ui.util
Class PEProgressBar  view PEProgressBar download PEProgressBar.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjavax.swing.JWindow
                  extended byjpicedt.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 Class Summary
private  class PEProgressBar.LogoPanel
           
static class PEProgressBar.Test
          test class
 
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
 
Field Summary
private static java.lang.String INITIAL_MSG
           
private static int LOGO_HEIGHT
           
private static java.lang.String LOGO_URL
           
private static int LOGO_WIDTH
           
private  PEProgressBar.LogoPanel logoPanel
           
private  int maximum
           
private static java.awt.Color MSG_COLOUR
           
private static float MSG_X
           
private static float MSG_Y
           
private  java.lang.String progressMsg
           
private  int progressValue
           
private  java.lang.String title
           
private static java.lang.String TITLE
           
private static java.awt.Color TITLE_COLOUR
           
private static float TITLE_X
           
private static float TITLE_Y
           
 
Fields inherited from class javax.swing.JWindow
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PEProgressBar(int maximum)
           
PEProgressBar(int maximum, java.lang.String title, java.lang.String initMsg)
           
 
Method Summary
 void confirmMsg(java.lang.String message)
          open a dialog box with the given information message
 void destroy()
          destroy this progress bar, disposing the hosting frame
 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
 void increment()
          increment the state of this progress bar by one, leaving the message unchanged
 void increment(java.lang.String message)
          increment the state of this progress bar by one, displaying the given message at the same time
static void main(java.lang.String[] args)
          test
 void recoverableError(java.lang.String message)
          open a dialog box with the given error message
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

PEProgressBar

public PEProgressBar(int maximum)

PEProgressBar

public PEProgressBar(int maximum,
                     java.lang.String title,
                     java.lang.String initMsg)
Method Detail

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