wt.clients.lifecycle.administrator
Class LifeCycleFlow.FlowEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.lifecycle.administrator.LifeCycleFlow.FlowEditor
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable
Enclosing class:
LifeCycleFlow

class LifeCycleFlow.FlowEditor
extends Panel

The actual graphics panel.


Nested Class Summary
(package private)  class LifeCycleFlow.FlowEditor.PhaseMouseListener
          Mouse listener for phases.
(package private)  class LifeCycleFlow.FlowEditor.TemplateMouseListener
          Mouse listener for the life cycle template (background).
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  Graphics offgraphics
           
(package private)  Image offscreen
           
(package private)  Dimension offscreensize
           
(package private)  Vector phaseVector
           
(package private)  Dimension size
           
 
Fields inherited from class java.awt.Panel
 
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
protected LifeCycleFlow.FlowEditor()
          Create the new graphics panel.
 
Method Summary
protected  void addPhase(Phase phase)
          Adds the phase to the end of the flow.
protected  void addPhaseNoSelect(Phase phase)
          Adds the phase to the end of the flow.
protected  void deselect(LifeCycleFlow.FlowEditor flow)
          Deselects the flow.
protected  void deselect(Phase phase)
          Deselects the phase.
protected  void fireItemEventSelect(Object item)
          Sends the item event to any listeners.
 Dimension getPreferredSize()
          Returns the preferred size of this panel.
protected  void insertPhase(Phase phase)
          Inserts the phase before the selected phase.
protected  boolean isPhaseNameUnique()
           
protected  boolean isValidPhaseName(String phaseName, boolean isCopyPhase)
           
protected  void markCurrent(Phase phase)
          Marks a phase current in the life cycle flow.
 void paint(Graphics g)
          Paints the flow onto the specified graphics.
protected  void removePhase(Phase phase)
          Removes a phase from the life cycle flow.
protected  void select(LifeCycleFlow.FlowEditor flow)
          Selects the specified flow.
protected  void select(Phase phase)
          Selects the specified phase.
 void update(Graphics g)
          Updates the specified graphics.
 void validate()
          Validates the graphics.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, 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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, 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, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

size

Dimension size

phaseVector

Vector phaseVector

offscreen

Image offscreen

offscreensize

Dimension offscreensize

offgraphics

Graphics offgraphics
Constructor Detail

LifeCycleFlow.FlowEditor

protected LifeCycleFlow.FlowEditor()
Create the new graphics panel.

Method Detail

getPreferredSize

public Dimension getPreferredSize()
Returns the preferred size of this panel.


insertPhase

protected void insertPhase(Phase phase)
Inserts the phase before the selected phase.


addPhase

protected void addPhase(Phase phase)
Adds the phase to the end of the flow.


addPhaseNoSelect

protected void addPhaseNoSelect(Phase phase)
Adds the phase to the end of the flow. The added phase is not selected.


removePhase

protected void removePhase(Phase phase)
Removes a phase from the life cycle flow.

Parameters:
phase - the phase to remove

markCurrent

protected void markCurrent(Phase phase)
Marks a phase current in the life cycle flow.

Parameters:
phase - the phase to mark current

select

protected void select(Phase phase)
Selects the specified phase.

Parameters:
phase - the phase to select

select

protected void select(LifeCycleFlow.FlowEditor flow)
Selects the specified flow. Selecting the flow deselects all phases and moves focus to the background life cycle template.

Parameters:
flow - the flow to select

fireItemEventSelect

protected void fireItemEventSelect(Object item)
Sends the item event to any listeners.

Parameters:
item - the item to fire the item event at

deselect

protected void deselect(LifeCycleFlow.FlowEditor flow)
Deselects the flow.

Parameters:
flow - the flow to deselect

deselect

protected void deselect(Phase phase)
Deselects the phase.

Parameters:
phase - the phase to deselect

validate

public void validate()
Validates the graphics. Repositions the phases to their correct places.


update

public void update(Graphics g)
Updates the specified graphics.

Parameters:
g - the graphics to updated

paint

public void paint(Graphics g)
Paints the flow onto the specified graphics.

Parameters:
g - the graphics to paint to

isValidPhaseName

protected boolean isValidPhaseName(String phaseName,
                                   boolean isCopyPhase)

isPhaseNameUnique

protected boolean isPhaseNameUnique()