|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JRootPane | +--com.bea.wlpi.client.worklist.WorklistPane
A WebLogic Process Integrator Worklist. This component is designed to be embedded in third-party applications or applets.
WorklistAddIn
,
WorklistApplet
,
WorklistFrame
,
loadProperties()
,
storeProperties()
, Serialized FormInner classes inherited from class javax.swing.JRootPane |
javax.swing.JRootPane.AccessibleJRootPane,
javax.swing.JRootPane.RootLayout |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
protected static java.lang.String |
AUDIO_NOTIFICATION
|
protected static java.lang.String |
CMD_ABOUT
|
protected static java.lang.String |
CMD_ATTACHMENTS
|
protected static java.lang.String |
CMD_DONE
|
protected static java.lang.String |
CMD_EXECUTE
|
protected static java.lang.String |
CMD_EXIT
|
protected static java.lang.String |
CMD_INACTIVE
|
protected static java.lang.String |
CMD_LOGOFF
|
protected static java.lang.String |
CMD_LOGON
|
protected static java.lang.String |
CMD_LOGONMSG
|
protected static java.lang.String |
CMD_MARK_DONE
|
protected static java.lang.String |
CMD_OPTIONS
|
protected static java.lang.String |
CMD_ORG
|
protected static java.lang.String |
CMD_PENDING
|
protected static java.lang.String |
CMD_PROPERTIES
|
protected static java.lang.String |
CMD_REASSIGN
|
protected static java.lang.String |
CMD_REFRESH
|
protected static java.lang.String |
CMD_START
|
protected static java.lang.String |
CMD_STATUS
|
protected static java.lang.String |
CMD_TAKE
|
protected static java.lang.String |
CMD_UNMARK_DONE
|
static boolean |
debug
|
protected static java.lang.String |
DONE
|
protected static java.lang.String |
ERROR_MESSAGE
|
protected static java.lang.String |
H
|
protected static java.lang.String |
IMAGE_PATH
|
protected static java.lang.String |
INACTIVE
|
protected static java.lang.String |
JMS_FACTORY
|
protected static java.lang.String |
JNDI_FACTORY
|
protected static java.lang.String |
LOGON_MESSAGE
|
protected static java.lang.String |
LOOK_AND_FEEL
|
protected static java.lang.String |
MAX_LIST_ITEMS_PER_CALL
|
protected static java.lang.String |
MESSAGE_BUNDLE
|
protected static java.lang.String |
NEWLINE
|
protected static java.lang.String |
NOTIFICATION_THRESHOLD
|
protected static java.lang.String |
NOTIFY_TOPIC
|
protected static java.lang.String |
PENDING
|
protected java.util.Properties |
prop
|
protected static java.lang.String |
PROPERTIES_FILENAME
|
protected static java.lang.String |
PROPERTY_PREFIX
|
protected static java.lang.String |
RESOURCE_BUNDLE
|
protected static java.lang.String |
TASK_NOTIFICATION
|
protected static java.lang.String |
URL
|
protected static java.lang.String |
USERID
|
protected static java.lang.String |
W
|
protected static java.lang.String |
WARNING_MESSAGE
|
protected WLPI |
wlpi
|
protected static java.lang.String |
X
|
protected static java.lang.String |
Y
|
Fields inherited from class javax.swing.JRootPane |
contentPane,
defaultButton,
defaultPressAction,
defaultReleaseAction,
glassPane,
layeredPane,
menuBar |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
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 | |
protected void |
about()
|
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. |
protected static char |
getChar(java.lang.String key)
Get a localized character from the worklist's resource bundle. |
java.awt.Point |
getPreferredLocation()
Return the preferred location of the worklist's container. |
java.awt.Dimension |
getPreferredSize()
Internal use only. |
protected java.lang.String |
getSelectedOrg()
Return the ID of the current organization. |
protected TaskInfo |
getSelectedTask()
Return the currently selected task. |
protected InstanceInfo |
getSelectedWorkflow()
Return the workflow instance for the currently selected task. |
protected static java.lang.String |
getString(java.lang.String key)
Get a localized string from the worklist's resource bundle. |
protected static java.lang.String |
getString(java.lang.String key,
java.lang.Object[] args)
Get a localized message from the worklist's resource bundle, formatted with the supplied arguments. |
void |
init()
Initialize the worklist. |
protected void |
loadProperties()
Load previously stored properties. |
protected void |
logoff()
Disconnect from WebLogic Process Integrator. |
protected boolean |
logon(java.lang.String url,
java.lang.String userId,
java.lang.String password)
Logon to WebLogic Process Integrator. |
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. |
protected void |
storeProperties()
Store current properties. |
java.lang.String |
transfchar(java.lang.String response)
|
Methods inherited from class javax.swing.JRootPane |
addImpl,
addNotify,
createContentPane,
createGlassPane,
createLayeredPane,
createRootLayout,
getAccessibleContext,
getContentPane,
getDefaultButton,
getGlassPane,
getJMenuBar,
getLayeredPane,
getMenuBar,
getUI,
getUIClassID,
isFocusCycleRoot,
isOptimizedDrawingEnabled,
isValidateRoot,
paramString,
removeNotify,
setContentPane,
setDefaultButton,
setGlassPane,
setJMenuBar,
setLayeredPane,
setMenuBar,
setUI,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addPropertyChangeListener,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
disable,
enable,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getActionMap,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInputMap,
getInputMap,
getInputVerifier,
getInsets,
getInsets,
getListeners,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVerifyInputWhenFocusTarget,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
hide,
isDoubleBuffered,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isMaximumSizeSet,
isMinimumSizeSet,
isOpaque,
isPaintingTile,
isPreferredSizeSet,
isRequestFocusEnabled,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
print,
printAll,
printBorder,
printChildren,
printComponent,
processComponentKeyEvent,
processFocusEvent,
processKeyBinding,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removePropertyChangeListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setActionMap,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setInputMap,
setInputVerifier,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVerifyInputWhenFocusTarget,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addHierarchyBoundsListener,
addHierarchyListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disableEvents,
dispatchEvent,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphicsConfiguration,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
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,
processComponentEvent,
processHierarchyBoundsEvent,
processHierarchyEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeHierarchyBoundsListener,
removeHierarchyListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final java.lang.String JNDI_FACTORY
protected static final java.lang.String JMS_FACTORY
protected static final java.lang.String NOTIFY_TOPIC
protected static final java.lang.String MESSAGE_BUNDLE
protected static final java.lang.String WARNING_MESSAGE
protected static final java.lang.String ERROR_MESSAGE
protected static final java.lang.String RESOURCE_BUNDLE
protected static final java.lang.String IMAGE_PATH
protected static final java.lang.String PROPERTIES_FILENAME
protected static final java.lang.String PROPERTY_PREFIX
protected static final java.lang.String LOOK_AND_FEEL
protected static final java.lang.String LOGON_MESSAGE
protected static final java.lang.String TASK_NOTIFICATION
protected static final java.lang.String AUDIO_NOTIFICATION
protected static final java.lang.String NOTIFICATION_THRESHOLD
protected static final java.lang.String MAX_LIST_ITEMS_PER_CALL
protected static final java.lang.String URL
protected static final java.lang.String USERID
protected static final java.lang.String X
protected static final java.lang.String Y
protected static final java.lang.String W
protected static final java.lang.String H
protected static final java.lang.String PENDING
protected static final java.lang.String DONE
protected static final java.lang.String INACTIVE
protected static final java.lang.String NEWLINE
protected static final java.lang.String CMD_ORG
protected static final java.lang.String CMD_EXECUTE
protected static final java.lang.String CMD_MARK_DONE
protected static final java.lang.String CMD_UNMARK_DONE
protected static final java.lang.String CMD_TAKE
protected static final java.lang.String CMD_REASSIGN
protected static final java.lang.String CMD_ATTACHMENTS
protected static final java.lang.String CMD_STATUS
protected static final java.lang.String CMD_PROPERTIES
protected static final java.lang.String CMD_LOGON
protected static final java.lang.String CMD_LOGOFF
protected static final java.lang.String CMD_EXIT
protected static final java.lang.String CMD_REFRESH
protected static final java.lang.String CMD_PENDING
protected static final java.lang.String CMD_DONE
protected static final java.lang.String CMD_INACTIVE
protected static final java.lang.String CMD_OPTIONS
protected static final java.lang.String CMD_LOGONMSG
protected static final java.lang.String CMD_START
protected static final java.lang.String CMD_ABOUT
public static boolean debug
protected WLPI wlpi
protected java.util.Properties prop
Constructor Detail |
public WorklistPane() throws WorkflowException
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent event)
public void addActionListener(java.awt.event.ActionListener listener)
listener
- The ActionListener to add.removeActionListener(java.awt.event.ActionListener)
public void removeActionListener(java.awt.event.ActionListener listener)
listener
- The ActionListener to remove.addActionListener(java.awt.event.ActionListener)
public void init()
WorklistApplet.init()
method.
destroy()
public void start(java.lang.String url, java.lang.String userId, java.lang.String password)
logon(java.lang.String, java.lang.String, java.lang.String)
.
url
- The WebLogic Process Integrator server URL.userId
- WebLogic Process Integrator user ID.password
- Password for userId
.start()
public void start()
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.
start(String, String, String)
,
stop()
,
storeProperties()
public void stop()
WorklistApplet.stop()
method. The implementation closes the connection to the workflow
server by calling logoff()
.
start()
,
storeProperties()
public void destroy()
WorklistApplet.destroy()
method. The implementation stores user preferences in the local file
worklist.properties
.
start()
public java.awt.Dimension getPreferredSize()
public java.awt.Point getPreferredLocation()
setPreferredLocation(java.awt.Point)
public void onMessage(javax.jms.Message msg)
msg
- public void stateChanged(javax.swing.event.ChangeEvent e)
e
- Event describing the tab that is now selected.public void setPreferredLocation(java.awt.Point p)
storeProperties()
and will be returned by subsequent calls to
getPreferredLocation()
.
p
- protected static char getChar(java.lang.String key)
key
- Resource key.protected static java.lang.String getString(java.lang.String key)
key
- Resource key.protected static java.lang.String getString(java.lang.String key, java.lang.Object[] args)
key
- resource key.args
- arguments to be inserted into message text.protected void about()
protected void loadProperties()
storeProperties()
protected void storeProperties()
worklist.properties
, located in the user's
home directory (i.e., the directory indicated by the system property
user.home
. Subclasses can override to provide alternative
storage for user preferences. The worklist recognizes the following settings:
Property | Default | Description |
---|---|---|
jndi.factory
|
weblogic.jndi.WLInitialContextFactory |
Fully qualified class name of JNDI initial context factory. |
jms.factory |
javax.jms.TopicConnectionFactory |
JNDI name of JMS topic factory. |
logon.message |
true |
Whether to display a summary message at logon. |
look.and.feel |
javax.swing.plaf.metal.MetalLookAndFeel |
Fully qualified class name of look and feel to use. |
notify.topic |
wlpi.NotifyTopic |
JNDI name of JMS topic for task update notification broadcasts. |
tasklist.column.count |
8 |
Number of columns in workflow status list. |
tasklist.column.header.n |
Status, Name, Assignee, DueDate, Started, Completed,
Priority, Comment |
Heading for nth workflow status column. |
tasklist.column.identifier.n |
Status, Name, Assignee, DueDate, Started, Completed,
Priority, Comment |
Identifier of nth workflow status column. |
tasklist.column.width.n |
- |
Width of nth workflow status column. |
tasklist.w |
600 |
Width of workflow status window. |
tasklist.h |
300 |
Height of workflow status window. |
tasklist.x |
40 |
X-position of workflow status window. |
tasklist.y |
40 |
Y-position of workflow status window. |
url |
t3\://localhost\:7001 |
Server URL of last successful connection. |
userid |
System.getProperty("user.name") |
User ID for last successful connection. |
worklist.column.count |
8 |
Number of columns in worklist. |
worklist.column.header.n |
Status, Name, Workflow, WorkflowId, DueDate, Started,
Priority, Comment |
Heading for nth worklist column. |
worklist.column.identifier.n |
Status, Name, Workflow, WorkflowId, DueDate, Started,
Priority, Comment |
Identifier of nth worklist column. |
worklist.column.width.n |
- |
Width of nth worklist column. |
worklist.done |
false |
Whether to display completed tasks. |
worklist.inactive |
false |
Whether to display inactive tasks. |
worklist.pending |
true |
Whether to display pending tasks. |
worklist.sort.ascending |
false |
Whether to sort the worklist in ascending order. |
worklist.sort.column |
-1 |
Column number on which to sort the worklist. |
worklist.w |
640 |
Width of worklist window. |
worklist.h |
300 |
Height of worklist window. |
worklist.x |
0 |
X-position of worklist window. |
worklist.y |
0 |
Y-position of worklist window. |
loadProperties()
protected java.lang.String getSelectedOrg()
protected final TaskInfo getSelectedTask()
protected final InstanceInfo getSelectedWorkflow()
protected boolean logon(java.lang.String url, java.lang.String userId, java.lang.String password) throws javax.ejb.CreateException, java.rmi.RemoteException, WorkflowException
userId
, and
all roles to which that user belongs. It also populates the
'organizations' combo-box with all the organizations to which that user
belongs. The method then connects to the JMS notification topic (default
JNDI name wlpi.NotifyTopic
) in order to receive task
notification messages.
url
- The URL of a WebLogic Process Integrator server.userId
- The User ID with which to connect.password
- Security credentials.logoff()
,
onMessage(javax.jms.Message)
protected void logoff()
logon(java.lang.String, java.lang.String, java.lang.String)
public java.lang.String transfchar(java.lang.String response)
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |