com.bea.wlpi.client.worklist
Class WorklistPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JRootPane
                          |
                          +--com.bea.wlpi.client.worklist.WorklistPane

public class WorklistPane
extends javax.swing.JRootPane
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, javax.jms.MessageListener

A WebLogic Process Integrator Worklist. This component is designed to be embedded in third-party applications or applets.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
See Also:
WorklistAddIn, WorklistApplet, WorklistFrame, #loadProperties, #storeProperties, Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static boolean debug
           
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
 
Constructor Summary
WorklistPane()
          Create a new worklist.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Internal use only.
 void addActionListener(java.awt.event.ActionListener listener)
          Add an ActionListener to the worklist.
 void destroy()
          Destroy the worklist.
 java.awt.Point getPreferredLocation()
          Return the preferred location of the worklist's container.
 java.awt.Dimension getPreferredSize()
          Internal use only.
 void init()
          Initialize the worklist.
 void onMessage(javax.jms.Message msg)
          Process a "task assigned" notification received via a JMS topic.
 void removeActionListener(java.awt.event.ActionListener listener)
          Remove a previously registered ActionListener.
 void setPreferredLocation(java.awt.Point p)
          Inform the worklist of the preferred start-up location for the worklist's container.
 void start()
          Start the worklist.
 void start(java.lang.String url, java.lang.String userId, java.lang.String password)
          Start the worklist.
 void stateChanged(javax.swing.event.ChangeEvent e)
          Called when the user changes the active tasklist by clicking the tab control.
 void stop()
          Stop the worklist.
 
Methods inherited from class javax.swing.JRootPane
addNotify, findComponentAt, getAccessibleContext, getContentPane, getDefaultButton, getGlassPane, getJMenuBar, getLayeredPane, getMenuBar, isFocusCycleRoot, isValidateRoot, removeNotify, setContentPane, setDefaultButton, setGlassPane, setJMenuBar, setLayeredPane, setMenuBar
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, 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, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Constructor Detail

WorklistPane

public WorklistPane()
             throws WorkflowException
Create a new worklist.

Throws:
WorkflowException -  
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Internal use only.
Specified by:
actionPerformed in interface java.awt.event.ActionListener


addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
Add an ActionListener to the worklist. The listener will be notified of all menu commands executed by the user.

Parameters:
listener - The ActionListener to add.
See Also:
removeActionListener(java.awt.event.ActionListener)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener listener)
Remove a previously registered ActionListener.

Parameters:
listener - The ActionListener to remove.
See Also:
addActionListener(java.awt.event.ActionListener)

init

public void init()
Initialize the worklist. Called by the WorklistApplet.init() method.

See Also:
destroy()

start

public void start(java.lang.String url,
                  java.lang.String userId,
                  java.lang.String password)
Start the worklist. The implementation attempts to connect using the specified URL, user ID and password by calling #logon.

Parameters:
url - The WebLogic Process Integrator server URL.
userId - WebLogic Process Integrator user ID.
password - Password for userId.
See Also:
start()

start

public void start()
Start the worklist. Called by the WorklistApplet.start() method. The implementation attempts to connect to the workflow server by calling start(String, String, String). When running in an applet, the method uses the applet codebase to generate the server URL and takes the user ID from the value of the system property user.name. Otherwise, the method passes the previously persisted values for URL and user ID.

See Also:
start(String, String, String), stop(), #storeProperties

stop

public void stop()
Stop the worklist. Called by the WorklistApplet.stop() method. The implementation closes the connection to the workflow server by calling #logoff().

See Also:
start(), #storeProperties

destroy

public void destroy()
Destroy the worklist. Called by the WorklistApplet.destroy() method. The implementation stores user preferences in the local file worklist.properties.

See Also:
start()

getPreferredSize

public java.awt.Dimension getPreferredSize()
Internal use only.

Overrides:
getPreferredSize in class javax.swing.JComponent

getPreferredLocation

public java.awt.Point getPreferredLocation()
Return the preferred location of the worklist's container.

Returns:
The preferred location of the worklist's container.
See Also:
setPreferredLocation(java.awt.Point)

onMessage

public void onMessage(javax.jms.Message msg)
Process a "task assigned" notification received via a JMS topic. The server broadcasts a notification whenever a task is assigned to a user. If the user has enabled task notification (via the preferences dialog), the implementation presents a message box to inform the user that a task has been assigned to them. This dialog box will only be displayed if the user-specified interval between successive notifications has elapsed.
Specified by:
onMessage in interface javax.jms.MessageListener

Parameters:
msg -  

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Called when the user changes the active tasklist by clicking the tab control.
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

Parameters:
e - Event describing the tab that is now selected.

setPreferredLocation

public void setPreferredLocation(java.awt.Point p)
Inform the worklist of the preferred start-up location for the worklist's container. This location is persisted by #storeProperties and will be returned by subsequent calls to getPreferredLocation().

Parameters:
p -