wt.templateutil.table
Class RowDataTableModel

java.lang.Object
  extended bywt.templateutil.table.RowDataTableModel
All Implemented Interfaces:
AddColumn, ColumnIdentifier, TableHeaderSetter, TableModel, TableModelStub
Direct Known Subclasses:
EffHistoryTableModel, PickerRowDataTableModel, ShareStatusTableModel, SubscriptionTableModel, TreeTableModel

public class RowDataTableModel
extends Object
implements TableModelStub, AddColumn, TableHeaderSetter

Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release.

Supported API: true

Extendable: false


Field Summary
private  Map classCache
          Deprecated.  
private static String CLASSNAME
          Deprecated.  
private  Locale locale
          Deprecated.  
private static String RESOURCE
          Deprecated.  
private  Properties resourceBundle
          Deprecated.  
private  Properties resourceKey
          Deprecated.  
private  Vector rowDataObjects
          Deprecated.  
private  Vector setValues
          Deprecated.  
private  Vector tableColumns
          Deprecated.  
private  Properties targetClass
          Deprecated.  
private  WTAttribute theWTAttribute
          Deprecated.  
private static boolean VERBOSE
          Deprecated.  
private  WTAttribute wtAttribute
          Deprecated.  
 
Constructor Summary
RowDataTableModel()
          Deprecated.  
 
Method Summary
 void addColumn(Properties props)
          Deprecated.  
 void addTableModelListener(TableModelListener l)
          Deprecated.  
private  boolean classHasProperty(Class nextClass, String propertyName)
          Deprecated.  
 Class getColumnClass(int columnIndex)
          Deprecated.  
 Vector getColumnClasses(int columnIndex)
          Deprecated.  
 int getColumnCount()
          Deprecated.  
 String getColumnName(int columnIndex)
          Deprecated.  
 String getColumnName(String attribute)
          Deprecated.  
 Object getIdentifier(int columnIndex)
          Deprecated.  
 Locale getLocale()
          Deprecated.  
 Class getParentClass(Vector columnClasses)
          Deprecated.  
 int getRowCount()
          Deprecated.  
 Vector getRowDataObjects()
          Deprecated.  
protected  Vector getSetValues()
          Deprecated.  
 Vector getTableColumns()
          Deprecated.  
 Object getValueAt(int rowIndex, int columnIndex)
          Deprecated.  
 WTAttribute getWtAttribute()
          Deprecated.  
 WTAttribute getWTAttribute()
          Deprecated.  
 boolean isCellEditable(int rowIndex, int columnIndex)
          Deprecated.  
protected  WTAttribute newWTAttribute()
          Deprecated.  
 void removeTableModelListener(TableModelListener l)
          Deprecated.  
 void setHeaderFromResource(String resourceBundleName, String resourceBundleKey, Object columnId)
          Deprecated.  
 void setHeaderFromTargetClass(String targetClassName, Object columnId)
          Deprecated.  
 void setLocale(Locale newLocale)
          Deprecated.  
 void setRowDataObjects(Vector a_RowDataObjects)
          Deprecated.  
protected  void setSetValues(Vector newSetValues)
          Deprecated.  
 void setTableColumns(Vector a_TableColumns)
          Deprecated.  
 void setValueAt(Object value, int rowIndex, int columnIndex)
          Deprecated.  
 void setWTAttribute(WTAttribute a_WTAttribute)
          Deprecated.  
private  void theWTAttributeValidate(WTAttribute a_WTAttribute)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

rowDataObjects

private Vector rowDataObjects
Deprecated. 

tableColumns

private Vector tableColumns
Deprecated. 

VERBOSE

private static boolean VERBOSE
Deprecated. 

theWTAttribute

private WTAttribute theWTAttribute
Deprecated. 

wtAttribute

private WTAttribute wtAttribute
Deprecated. 

locale

private Locale locale
Deprecated. 

targetClass

private Properties targetClass
Deprecated. 

resourceBundle

private Properties resourceBundle
Deprecated. 

resourceKey

private Properties resourceKey
Deprecated. 

setValues

private Vector setValues
Deprecated. 

classCache

private Map classCache
Deprecated. 
Constructor Detail

RowDataTableModel

public RowDataTableModel()
Deprecated. 
Method Detail

getRowDataObjects

public Vector getRowDataObjects()
Deprecated.  

Gets the value of the attribute: rowDataObjects; rowDataObjects holds the list of objects that represents the table row.

Supported API: true

Returns:
Vector

setRowDataObjects

public void setRowDataObjects(Vector a_RowDataObjects)
Deprecated.  

Sets the value of the attribute: rowDataObjects; rowDataObjects holds the list of objects that represents the table row.

Supported API: true

Parameters:
a_RowDataObjects -

getTableColumns

public Vector getTableColumns()
Deprecated.  

Gets the value of the attribute: tableColumns; tableColumn holds list of names (attributes) that represent the columns

Supported API: true

Returns:
Vector

setTableColumns

public void setTableColumns(Vector a_TableColumns)
Deprecated.  

Sets the value of the attribute: tableColumns; tableColumn holds list of names (attributes) that represent the columns

Supported API: true

Parameters:
a_TableColumns -

getWTAttribute

public WTAttribute getWTAttribute()
Deprecated.  

Gets the object for the association that plays role: theWTAttribute.

Supported API: false

Returns:
WTAttribute

setWTAttribute

public void setWTAttribute(WTAttribute a_WTAttribute)
                    throws WTPropertyVetoException
Deprecated.  

Sets the object for the association that plays role: theWTAttribute.

Supported API: false

Parameters:
a_WTAttribute -
Throws:
WTPropertyVetoException

theWTAttributeValidate

private void theWTAttributeValidate(WTAttribute a_WTAttribute)
                             throws WTPropertyVetoException
Deprecated. 
Parameters:
a_WTAttribute -
Throws:
WTPropertyVetoException

addTableModelListener

public void addTableModelListener(TableModelListener l)
Deprecated.  



Supported API: true

Specified by:
addTableModelListener in interface TableModelStub
Parameters:
l -

getColumnClass

public Class getColumnClass(int columnIndex)
Deprecated.  



Supported API: true

Specified by:
getColumnClass in interface TableModelStub
Parameters:
columnIndex -
Returns:
Class

getColumnCount

public int getColumnCount()
Deprecated.  



Supported API: true

Specified by:
getColumnCount in interface TableModelStub
Returns:
int

getColumnName

public String getColumnName(int columnIndex)
Deprecated.  

Returns name of the HTML table column for the column index passed in as input parameter.

Supported API: true

Specified by:
getColumnName in interface TableModelStub
Parameters:
columnIndex -
Returns:
String

getRowCount

public int getRowCount()
Deprecated.  



Supported API: true

Specified by:
getRowCount in interface TableModelStub
Returns:
int

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Deprecated.  



Supported API: true

Specified by:
getValueAt in interface TableModelStub
Parameters:
rowIndex -
columnIndex -
Returns:
Object

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Deprecated.  



Supported API: true

Specified by:
isCellEditable in interface TableModelStub
Parameters:
rowIndex -
columnIndex -
Returns:
boolean

removeTableModelListener

public void removeTableModelListener(TableModelListener l)
Deprecated.  



Supported API: true

Specified by:
removeTableModelListener in interface TableModelStub
Parameters:
l -

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Deprecated.  



Supported API: true

Specified by:
setValueAt in interface TableModelStub
Parameters:
value -
rowIndex -
columnIndex -

addColumn

public void addColumn(Properties props)
               throws WTException
Deprecated.  

Adds a new Column to the TableModel. The Properties object can be used to pass in information regarding adding the new column to the TableModel. In the case of the addColumn method in the BasicTableService, the Properties are the name/value pairs that were passed in the Windchill script call.

Supported API: true

Specified by:
addColumn in interface AddColumn
Parameters:
props -
Throws:
WTException

getIdentifier

public Object getIdentifier(int columnIndex)
Deprecated.  

Returns the name/handle of the column at columnIndex.

Supported API: true

Specified by:
getIdentifier in interface ColumnIdentifier
Parameters:
columnIndex -
Returns:
Object

setHeaderFromResource

public void setHeaderFromResource(String resourceBundleName,
                                  String resourceBundleKey,
                                  Object columnId)
Deprecated.  

Sets the value returned from the getColumnName method for the column with name/handle columnId to be the localized String returned for the resource key, resourceBundleKey, from the resource bundle, resourceBundleName.

This is a convenience method to allow overriding the either the display name for an attribute or to allow setting the title on a column when the name/handle of the column is not an attribute of the BinaryLink or OtherSide object.

Supported API: true

Specified by:
setHeaderFromResource in interface TableHeaderSetter
Parameters:
resourceBundleName -
resourceBundleKey -
columnId -

setHeaderFromTargetClass

public void setHeaderFromTargetClass(String targetClassName,
                                     Object columnId)
Deprecated.  

Sets the class that introspection is done on when the name/handle of the column is used to define the Column Name.

Supported API: true

Specified by:
setHeaderFromTargetClass in interface TableHeaderSetter
Parameters:
targetClassName -
columnId -

getColumnClasses

public Vector getColumnClasses(int columnIndex)
Deprecated. 

getParentClass

public Class getParentClass(Vector columnClasses)
Deprecated. 

getWtAttribute

public WTAttribute getWtAttribute()
Deprecated. 

setLocale

public void setLocale(Locale newLocale)
Deprecated.  

Sets the value of the attribute: locale; locale holds user locale information.

Supported API: true

Parameters:
newLocale -

getLocale

public Locale getLocale()
Deprecated. 

getSetValues

protected Vector getSetValues()
Deprecated. 

setSetValues

protected void setSetValues(Vector newSetValues)
Deprecated. 

getColumnName

public String getColumnName(String attribute)
Deprecated.  

Returns name of the HTML table column for the attribute name passed in as input parameter.

Supported API: true

Parameters:
attribute -
Returns:
String

newWTAttribute

protected WTAttribute newWTAttribute()
Deprecated. 

classHasProperty

private boolean classHasProperty(Class nextClass,
                                 String propertyName)
Deprecated.