|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
wt.clients.beans.table.WTTableAction
wt.workflow.TableLoaderAction
TableLoaderAction populates a table model with formated work item data. The table model is supplied to a TableProcessor for display in an html page.
Nested Class Summary |
Nested classes inherited from class javax.swing.AbstractAction |
|
Field Summary | |
private static String |
ACTION_RESOURCE
|
private static int |
CHUNKSIZE
|
private static ClassInfo |
ciPERSISTABLE
|
private static ClassInfo |
ciWTREFERENCE
|
private static String |
CLASSNAME
|
private static Class |
cWFACTIVITY
|
private static Class |
cWFBLOCK
|
private static Class |
cWFPROCESS
|
private static boolean |
DISABLE_LOBS
|
private Vector |
displayColumns
|
private Locale |
locale
|
private static boolean |
PRE_QUERY_PERSISTABLES
|
private static ResourceBundle |
rb
|
private static String |
RESOURCE
|
protected static String |
TABLE_COLUMN
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
TableLoaderAction(String name)
|
Method Summary | |
private Hashtable |
getActivityMap(Vector itemVector)
|
(package private) Vector |
getDisplayColumns()
|
(package private) Locale |
getLocale()
|
private static WTReference |
getPBOReference(WfProcess wfprocess)
|
private Hashtable |
getPrimaryBusinessObjectMap(Hashtable processMap)
Return a Hashtable containing the Process' PrimaryBusinessObjects The key is either ObjectReference or VersionForeignKey |
private Hashtable |
getProcessMap(Hashtable activityMap)
For all activities in the activityMap, find the corresponding WfProcess. |
void |
loadTableItems(Enumeration tableItemList,
WTTableModel model,
String actionName)
Loads attributes from the Objects in the tableItemList into the model in a format specified by the wt.properties file. |
void |
loadTableItems(Enumeration tableItemList,
WTTableModel model,
String actionName,
Locale aLocale)
Loads attributes from the Objects in the tableItemList into the model in a format specified by the wt.properties file. |
void |
loadTableItems(Enumeration tableItemList,
WTTableModel model,
String actionName,
Vector aDisplayColumns,
Locale aLocale)
Loads attributes from the Objects in the tableItemList into the model in a format specified by the wt.properties file. |
private QueryResult |
queryParentByClass(Class clazz,
Vector refVector)
|
(package private) void |
setDisplayColumns(Vector aDisplayColumns)
|
(package private) void |
setLocale(Locale aLocale)
Set the locale for display values |
void |
setupTableItem(WTObject myTableItem,
WTTableModel model,
Vector tableFields,
WfProcess process,
WfActivity activity,
WTObject businessObject)
Add an entry to the model with myTableItems attributes as defined by tableFields. |
private Hashtable |
traverseBlocks(Vector wfblockVector,
Hashtable blockByReqRef)
|
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
Field Detail |
private static final String RESOURCE
private static final String ACTION_RESOURCE
private static final String CLASSNAME
private static final String versionID
protected static String TABLE_COLUMN
private static final ResourceBundle rb
private static Class cWFPROCESS
private static Class cWFACTIVITY
private static Class cWFBLOCK
private static ClassInfo ciWTREFERENCE
private static ClassInfo ciPERSISTABLE
private static boolean DISABLE_LOBS
private static final boolean PRE_QUERY_PERSISTABLES
private static final boolean VERBOSE
private static int CHUNKSIZE
private Vector displayColumns
private Locale locale
Constructor Detail |
public TableLoaderAction(String name)
Method Detail |
public void loadTableItems(Enumeration tableItemList, WTTableModel model, String actionName, Vector aDisplayColumns, Locale aLocale)
tableItemList
- The items to be displayed in the tablemodel
- The model to be populated with the dataactionName
- Key for looking up the column definition string in the actions.properties filepublic void loadTableItems(Enumeration tableItemList, WTTableModel model, String actionName, Locale aLocale)
tableItemList
- The items to be displayed in the tablemodel
- The model to be populated with the dataactionName
- Key for looking up the column definition string in the actions.properties filepublic void loadTableItems(Enumeration tableItemList, WTTableModel model, String actionName)
tableItemList
- The items to be displayed in the tablemodel
- The model to be populated with the dataactionName
- Key for looking up the column definition string in the actions.properties filepublic void setupTableItem(WTObject myTableItem, WTTableModel model, Vector tableFields, WfProcess process, WfActivity activity, WTObject businessObject)
myTableItem
- the workItem to be processesmodel
- the model to update with myTableItem's attributestableFields
- the definition of the table columnsprocess
- the WfProcess (optional)activity
- the WfActivity (optional)businessObject
- the PrimaryBusinessObject (optional)void setDisplayColumns(Vector aDisplayColumns)
Vector getDisplayColumns() throws IOException
IOException
void setLocale(Locale aLocale)
Locale getLocale()
private Hashtable getActivityMap(Vector itemVector) throws WTException
WTException
private Hashtable getProcessMap(Hashtable activityMap) throws WTException
WTException
private Hashtable traverseBlocks(Vector wfblockVector, Hashtable blockByReqRef) throws WTException
WTException
private QueryResult queryParentByClass(Class clazz, Vector refVector) throws WTException, QueryException
WTException
QueryException
private Hashtable getPrimaryBusinessObjectMap(Hashtable processMap) throws WTException
WTException
private static WTReference getPBOReference(WfProcess wfprocess) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |