|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
wt.clients.lifecycle.administrator.LifeCycleFlow
A class to visually define a life cycle flow with phases and gates.
Nested Class Summary | |
(package private) class |
LifeCycleFlow.FlowEditor
The actual graphics panel. |
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) String |
clickHereString
|
(package private) CLifeCycleTemplate |
cLifeCycleTemplate
|
(package private) LifeCycleFlow.FlowEditor |
flowEditor
|
(package private) ItemListener |
itemListener
|
(package private) ScrollPane |
scrollPane
|
(package private) Phase |
selected
|
private boolean |
viewMode
|
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 | |
LifeCycleFlow()
Creates a new life cycle flow. |
Method Summary | |
void |
addItemListener(ItemListener l)
Adds the specified item listener to receive item events from this Life Cycle Flow. |
void |
addNotify()
Notifies this component that it has been added to a container and if a peer is required, it should be created. |
protected void |
addPhase(Phase phase)
Adds a phase to the end of the life cycle flow. |
protected void |
addPhaseNoSelect(Phase phase)
Adds a phase to the end of the life cycle flow. |
protected LifeCycleDefinitionPanel |
getLifeCyclePanel()
Returns the LifeCycleDefinitionPanel of this panel |
Dimension |
getMinimumSize()
Returns the minimum size of this widget. |
Dimension |
getPreferredSize()
Returns the preferred size of this widget. |
protected Phase |
getSelectedItem()
Returns the selected phase in the life cycle flow. |
Object[] |
getSelectedObjects()
Returns the selected items on the list in an array of Objects. |
protected void |
insertPhase(Phase phase)
Inserts a phase before the selected phase of the life cycle flow. |
protected boolean |
isViewMode()
Returns true if this panel is in view only mode. |
static void |
main(String[] args)
Test driver. |
protected void |
markCurrent(Phase phase)
Marks a phase current in the life cycle flow. |
protected void |
processItemEvent(ItemEvent e)
Processes item events occurring on this Life Cycle Flow by dispatching them to any registered ItemListener objects. |
void |
removeItemListener(ItemListener l)
Removes the specified item listener so that it no longer receives item events from this Life Cycle Flow. |
protected void |
removePhase(Phase phase)
Removes a phase from the life cycle flow. |
protected void |
setCLifeCycleTemplate(CLifeCycleTemplate clife_cycle_template)
Sets the client life cycle template. |
void |
setLayout(LayoutManager l)
Sets the layout of this widget. |
protected void |
setViewMode(boolean view_mode)
Sets the mode of the life cycle flow panel. |
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
String clickHereString
CLifeCycleTemplate cLifeCycleTemplate
Phase selected
transient ItemListener itemListener
LifeCycleFlow.FlowEditor flowEditor
ScrollPane scrollPane
private boolean viewMode
Constructor Detail |
public LifeCycleFlow()
Method Detail |
public static void main(String[] args)
public void addNotify()
protected LifeCycleDefinitionPanel getLifeCyclePanel()
protected void setCLifeCycleTemplate(CLifeCycleTemplate clife_cycle_template)
clife_cycle_template
- the template being shown by this widgetpublic Dimension getPreferredSize()
public Dimension getMinimumSize()
public void setLayout(LayoutManager l)
protected void insertPhase(Phase phase)
phase
- the phase to insertprotected void addPhase(Phase phase)
phase
- the phase to addprotected void addPhaseNoSelect(Phase phase)
phase
- the phase to addprotected void removePhase(Phase phase)
phase
- the phase to removeprotected void markCurrent(Phase phase)
phase
- the phase to mark currentprotected Phase getSelectedItem()
public Object[] getSelectedObjects()
getSelectedObjects
in interface ItemSelectable
ItemSelectable
public void addItemListener(ItemListener l)
addItemListener
in interface ItemSelectable
l
- the item listener.ItemEvent
,
ItemListener
,
removeItemListener(java.awt.event.ItemListener)
public void removeItemListener(ItemListener l)
removeItemListener
in interface ItemSelectable
l
- the item listener.ItemEvent
,
ItemListener
,
addItemListener(java.awt.event.ItemListener)
protected void processItemEvent(ItemEvent e)
ItemListener
objects.
This method is not called unless item events are enabled for this component. Item events are enabled when one of the following occurs:
ItemListener
object is registered
via addItemListener
.
enableEvents
.
e
- the item event.ItemEvent
,
ItemListener
,
List.addItemListener(java.awt.event.ItemListener)
,
Component.enableEvents(long)
protected void setViewMode(boolean view_mode)
view_mode
- true if read-only, else falseprotected boolean isViewMode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |