|
|
Package com.dassault_systemes.pprnblcabase.model |
Class ENOVDataPPRTableModel
|
Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catjdialog.CATCallbackSource | +-com.dassault_systemes.catjdialog.CATKeyTableModel | +-com.dassault_systemes.pprnblcabase.model.ENOVDataPPRTableModel
Class Location |
Class Description |
public class ENOVDataPPRTableModel
Table Model for list. This table model supports multiple means of indicating the source of the data. The data can be specified as an array of data object (in which case this table model will NOT be a transient data model), or you can specify a base object and a relationship name from which to retrieve the data, or you can specify a ENOVIQuery from which to retrieve the data, or you can specify a ENOVIClientCommand from which to retrieve the data.
All Implemented Interfaces: CATKeyTableModelCtxMenuEx CATIRecordDriverSupport CATKeyTableModelTypeExCollab
Field Summary |
ENOVIDataObject[] | _data |
ENOVIDataObject | _object |
String | _relName |
ENOVIQuery | _query |
ENOVIClientCommand | _cmd |
String | _resultParmName |
CATTable | _table |
CATSession | _session |
String | _noun |
boolean | _edit |
ENOVILogonToken | _token |
ENOVIType | _type |
CATColumnSort | _lastSort |
Vector | _typeAttrs |
Vector | _viewAttrs |
boolean | _firstColLink |
boolean | _bsortColumnDone |
Constructor Summary |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken) |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken, boolean iEditMode) |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject iObject, String iRelName, boolean iEditMode) |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken, ENOVIType iType) |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIClientCommand iCommand, String iResultParmName) |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIQuery iQuery) |
Method Summary |
String | getCell(String iKey, int iColumn) |
boolean | getEnable(String iKey, int iColumn) |
String | getImage(String key, int c) |
String | getTooltip(String key, int c) |
void | getKeys(int iOffset, String[] oKeys) |
int | getKeyCount() |
int | getLevel(String iKey, int iColumn) |
boolean | getState(String iKey, int iColumn) |
int | getType(String iKey, int iColumn) |
int | getRenderType(String iKey, int iColumn) |
boolean | isALiveName(String iKey, int iColumn) |
boolean | isColumnSortable(int iColumn) |
void | setCell(String iKey, int iColumn, String iText) |
CATMenuModel | getContextualMenu(String iKey, int iCol) |
void | onColumnSort(CATDialog iDialog, CATNotification iNotif, Object iData) |
int | getAttrType(int iColumn) |
Object | getCellObject(String iKey, int iColumn) |
ENOVIDataObject[] | getData() |
Hashtable | getDataHash() |
ENOVIDataObject | getDataObject(String iKey) |
ENOVIDataObject[] | getSelectedObjects() |
PortalUID[] | getDataUIDs(int iOffset, int iLength) |
int | getColumnCount() |
String | getColumnTitle(int iColumn) |
void | resetObjects(ENOVIDataObject[] iData) |
boolean | isData() |
boolean | sortColumnDone() |
ENOVIDataObject[] | sortColumn(CATColumnSort newSort, ENOVIDataObject[] iData) |
String | getWebType() |
ENOVIType | getType() |
Vector | getTypeAttrs() |
Vector | getViewAttrs() |
void | generateDefaultView() |
void | generatePrefView() |
void | generateFocalViewForHomelets() |
void | setPreferencePrefix(String iPreferencePrefix) |
void | setFirstColLink(boolean iFlag) |
String | getTablePrefsRepository(CATTable iTable) |
int | getColumnAlignment(int iColumn) |
boolean | isListExportable() |
void | onCellActionLinkClicked(CATDialog iDialog, CATNotification iNotification, Object iData) |
String | getRecordDriverName() |
Field Detail |
ENOVIDataObject[] _data
ENOVIDataObject _object
String _relName
ENOVIQuery _query
ENOVIClientCommand _cmd
String _resultParmName
CATTable _table
CATSession _session
String _noun
boolean _edit
ENOVILogonToken _token
ENOVIType _type
CATColumnSort _lastSort
Vector _typeAttrs
Vector _viewAttrs
boolean _firstColLink
boolean _bsortColumnDone
Constructor Detail |
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken)Constructor for non-edit mode
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken, boolean iEditMode)Constructor specifying edit mode (Edit Mask)
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject iObject, String iRelName, boolean iEditMode)Constructor specifying Edit mode (Edit Mask) without objects list
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken, ENOVIType iType)Constructor for non-edit mode with object list and object type
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIClientCommand iCommand, String iResultParmName)Constructor for non-edit mode with object list resulting from a server command execution
ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIQuery iQuery)Constructor for non-edit mode with object list resulting from a server query execution
Method Detail |
String getCell(String iKey, int iColumn)Returns the text of a table cell
boolean getEnable(String iKey, int iColumn)Returns true if cell is enabled (apply to check/radio/link)
String getImage(String key, int c)Returns image name for table cell
String getTooltip(String key, int c)Returns image tooltip for a table cell
void getKeys(int iOffset, String[] oKeys)Returns all table keys starting from an offset
int getKeyCount()Returns total number of table keys
int getLevel(String iKey, int iColumn)Returns the style of a table cell. The style is defined by an integer. 0 stands for default aspect. 1 for title level. 2 for subtitle level...
boolean getState(String iKey, int iColumn)Returns the check/radio state of a table cell.
int getType(String iKey, int iColumn)To specify additional rendering for a table cell
int getRenderType(String iKey, int iColumn)
boolean isALiveName(String iKey, int iColumn)
boolean isColumnSortable(int iColumn)Returns true if a table column is sortable
void setCell(String iKey, int iColumn, String iText)Callback method for table cells of type tEDITABLE
CATMenuModel getContextualMenu(String iKey, int iCol)Returns table contextual menu
void onColumnSort(CATDialog iDialog, CATNotification iNotif, Object iData)Callback on sort of a table column (Convenience method for panels to use).
int getAttrType(int iColumn)Returns PPRAttribute for a table column
Object getCellObject(String iKey, int iColumn)Returns Attribute object for a table cell.
ENOVIDataObject[] getData()Returns objects list for the table
Hashtable getDataHash()Returns object for a table key.
ENOVIDataObject getDataObject(String iKey)Returns object for a table key.
ENOVIDataObject[] getSelectedObjects()Returns selected(highligthed) objects.
PortalUID[] getDataUIDs(int iOffset, int iLength)Returns PortalUID list for a range of table entries
int getColumnCount()Returns number of table columns
String getColumnTitle(int iColumn)Returns table column titles
void resetObjects(ENOVIDataObject[] iData)Resets the objects list for the table
boolean isData()Returns true if table is not empty
boolean sortColumnDone()Returns true if table sort is done
ENOVIDataObject[] sortColumn(CATColumnSort newSort, ENOVIDataObject[] iData)Sorts the specified table column.
String getWebType()Returns table webtype
ENOVIType getType()Returns object type for a table
Vector getTypeAttrs()Returns the list of attributes that the table object type defines. The attribute order is determined by mask on the server.
Vector getViewAttrs()Returns the list of displayed attributes. The attribute order is determined by view definition.
void generateDefaultView()
void generatePrefView()
void generateFocalViewForHomelets()
void setPreferencePrefix(String iPreferencePrefix)The preferences on the results (which attributes are displayed) are based by default on: - the current widget "SearchResults" - the type (adapter+env+type) If the preference prefix is set to: - null, the user cannot customize the results - empty String (default value), the user can customize the results based on the above parameters - otherwise, the new prefix is added to the list of above parameters
iPreferencePrefix
void setFirstColLink(boolean iFlag)Defines whether the first visible table column should be a link to the object.
String getTablePrefsRepository(CATTable iTable)Returns the repository prefix for the table preferences A specific repository prefix ensure specific preferences for the table.
int getColumnAlignment(int iColumn)Returns the alignment type for a table cell (Right or Left)
boolean isListExportable()Returns true if list is exportable to Excel(Displays Export link)
void onCellActionLinkClicked(CATDialog iDialog, CATNotification iNotification, Object iData)Callback to open the Properties panel for objects after clicking on the action link in the first column.
String getRecordDriverName()Returns which driver is supported by the key model. The returned string may contain arguments. ex: "Query@1,3" The name "Self" tells this object is also the RecordDriver to use.