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

Framework : PPRJNavigatorBase

Module : PPRNBLcaBase

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

_data

    ENOVIDataObject[] _data


_object

    ENOVIDataObject _object


_relName

    String _relName


_query

    ENOVIQuery _query


_cmd

    ENOVIClientCommand _cmd


_resultParmName

    String _resultParmName


_table

    CATTable _table


_session

    CATSession _session


_noun

    String _noun


_edit

    boolean _edit


_token

    ENOVILogonToken _token


_type

    ENOVIType _type


_lastSort

    CATColumnSort _lastSort


_typeAttrs

    Vector _typeAttrs


_viewAttrs

    Vector _viewAttrs


_firstColLink

    boolean _firstColLink


_bsortColumnDone

    boolean _bsortColumnDone


Constructor Detail

ENOVDataPPRTableModel

    ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken)

Constructor for non-edit mode


ENOVDataPPRTableModel

    ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken, boolean iEditMode)

Constructor specifying edit mode (Edit Mask)


ENOVDataPPRTableModel

    ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject iObject, String iRelName, boolean iEditMode)

Constructor specifying Edit mode (Edit Mask) without objects list


ENOVDataPPRTableModel

    ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIDataObject[] iData, ENOVILogonToken iToken, ENOVIType iType)

Constructor for non-edit mode with object list and object type


ENOVDataPPRTableModel

    ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIClientCommand iCommand, String iResultParmName)

Constructor for non-edit mode with object list resulting from a server command execution


ENOVDataPPRTableModel

    ENOVDataPPRTableModel(CATTable iTable, String iNoun, ENOVIQuery iQuery)

Constructor for non-edit mode with object list resulting from a server query execution


Method Detail

getCell

    String getCell(String iKey, int iColumn)

Returns the text of a table cell


getEnable

    boolean getEnable(String iKey, int iColumn)

Returns true if cell is enabled (apply to check/radio/link)


getImage

    String getImage(String key, int c)

Returns image name for table cell

See Also:
com.dassault_systemes.catjdialog.CATKeyTableModel#getImage(java.lang.String, int)

getTooltip

    String getTooltip(String key, int c)

Returns image tooltip for a table cell

See Also:
com.dassault_systemes.catjdialog.CATKeyTableModel#getImageTooltip(java.lang.String, int)

getKeys

    void getKeys(int iOffset, String[] oKeys)

Returns all table keys starting from an offset


getKeyCount

    int getKeyCount()

Returns total number of table keys


getLevel

    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...


getState

    boolean getState(String iKey, int iColumn)

Returns the check/radio state of a table cell.


getType

    int getType(String iKey, int iColumn)

To specify additional rendering for a table cell


getRenderType

    int getRenderType(String iKey, int iColumn)


isALiveName

    boolean isALiveName(String iKey, int iColumn)


isColumnSortable

    boolean isColumnSortable(int iColumn)

Returns true if a table column is sortable


setCell

    void setCell(String iKey, int iColumn, String iText)

Callback method for table cells of type tEDITABLE


getContextualMenu

    CATMenuModel getContextualMenu(String iKey, int iCol)

Returns table contextual menu

See Also:
com.dassault_systemes.catjdialog.CATKeyTableModelCtxMenuEx#getContextualMenu(java.lang.String, int)

onColumnSort

    void onColumnSort(CATDialog iDialog, CATNotification iNotif, Object iData)

Callback on sort of a table column (Convenience method for panels to use).


getAttrType

    int getAttrType(int iColumn)

Returns PPRAttribute for a table column


getCellObject

    Object getCellObject(String iKey, int iColumn)

Returns Attribute object for a table cell.


getData

    ENOVIDataObject[] getData()

Returns objects list for the table


getDataHash

    Hashtable getDataHash()

Returns object for a table key.


getDataObject

    ENOVIDataObject getDataObject(String iKey)

Returns object for a table key.


getSelectedObjects

    ENOVIDataObject[] getSelectedObjects()

Returns selected(highligthed) objects.


getDataUIDs

    PortalUID[] getDataUIDs(int iOffset, int iLength)

Returns PortalUID list for a range of table entries


getColumnCount

    int getColumnCount()

Returns number of table columns


getColumnTitle

    String getColumnTitle(int iColumn)

Returns table column titles


resetObjects

    void resetObjects(ENOVIDataObject[] iData)

Resets the objects list for the table


isData

    boolean isData()

Returns true if table is not empty


sortColumnDone

    boolean sortColumnDone()

Returns true if table sort is done


sortColumn

    ENOVIDataObject[] sortColumn(CATColumnSort newSort, ENOVIDataObject[] iData)

Sorts the specified table column.


getWebType

    String getWebType()

Returns table webtype


getType

    ENOVIType getType()

Returns object type for a table


getTypeAttrs

    Vector getTypeAttrs()

Returns the list of attributes that the table object type defines. The attribute order is determined by mask on the server.


getViewAttrs

    Vector getViewAttrs()

Returns the list of displayed attributes. The attribute order is determined by view definition.


generateDefaultView

    void generateDefaultView()


generatePrefView

    void generatePrefView()


generateFocalViewForHomelets

    void generateFocalViewForHomelets()


setPreferencePrefix

    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

Parameters:
iPreferencePrefix
See Also:
#getTablePrefsRepository(com.dassault_systemes.catjdialog.CATTable)

setFirstColLink

    void setFirstColLink(boolean iFlag)

Defines whether the first visible table column should be a link to the object.


getTablePrefsRepository

    String getTablePrefsRepository(CATTable iTable)

Returns the repository prefix for the table preferences A specific repository prefix ensure specific preferences for the table.

See Also:
com.dassault_systemes.catjdialog.CATKeyTableModel#getTablePrefsRepository(CATTable iTable)

getColumnAlignment

    int getColumnAlignment(int iColumn)

Returns the alignment type for a table cell (Right or Left)

See Also:
com.dassault_systemes.catjdialog.CATKeyTableModel#getColumnAlignment( int iColumn )

isListExportable

    boolean isListExportable()

Returns true if list is exportable to Excel(Displays Export link)

See Also:
com.dassault_systemes.catjdialog.CATKeyTableModel#isListExportable()

onCellActionLinkClicked

    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.


getRecordDriverName

    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.



Copyright © 2000, Dassault Systèmes. All rights reserved