Class symantec.itools.db.beans.brl.adapter.editors.DerivRuleInputTableModel
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.brl.adapter.editors.DerivRuleInputTableModel
Object
|
+----AbstractTableModel
|
+----symantec.itools.db.beans.brl.adapter.editors.DerivRuleInputTableModel
- public class DerivRuleInputTableModel
- extends AbstractTableModel
Class which extends AbstractTableModel for displaying inputs
to derivation business rule
-
symantec.itools.db.beans.brl.adapter.editors.DerivRuleInputTableModel()
- Default constructor
-
symantec.itools.db.beans.brl.adapter.editors.DerivRuleInputTableModel(CompColInputMember[])
- Constructor with CompColMember
-
deleteRow(int)
- Method to delete a row
-
getColumnClass(int)
- Return appropriate class based upon the column index
-
getColumnCount()
- Returns the number of columns managed by the data source object.
-
getColumnName(int)
- Return a default name for the column using spreadsheet conventions:
A, B, C, ...
-
getCompColArray()
- Get data
-
getRowCount()
- Returns the number of records managed by the data source object.
-
getValueAt(int, int)
- Returns an attribute value for the cell at columnIndex
and rowIndex.
-
insertRow(CompColInputMember, int)
- Method to insert a row
-
moveRow(int, int)
- Method to move row from one index to another
-
setCompColArray(CompColInputMember[])
- Set member data, which fires TableDataChanged Event
DerivRuleInputTableModel
public DerivRuleInputTableModel()
- Default constructor
DerivRuleInputTableModel
public DerivRuleInputTableModel(CompColInputMember[] members)
- Constructor with CompColMember
deleteRow
public synchronized void deleteRow(int rowIndex)
- Method to delete a row
getColumnClass
public java.lang.Class getColumnClass(int columnIndex)
- Return appropriate class based upon the column index
- Overrides:
- getColumnClass in class AbstractTableModel
getColumnCount
public int getColumnCount()
- Returns the number of columns managed by the data source object. A
JTable uses this method to determine how many columns it
should create and display on initialization.
- Returns:
- the number or columns in the model
- Overrides:
- getColumnCount in class AbstractTableModel
- See Also:
- getRowCount()
getColumnName
public java.lang.String getColumnName(int column)
- Return a default name for the column using spreadsheet conventions:
A, B, C, ... Z, AA, AB, etc.
- Overrides:
- getColumnName in class AbstractTableModel
getCompColArray
public symantec.itools.db.beans.brl.CompColMember[] getCompColArray()
- Get data
- Returns:
- array of CompColMember
getRowCount
public int getRowCount()
- Returns the number of records managed by the data source object. A
JTable uses this method to determine how many rows it
should create and display. This method should be quick, as it
is call by JTable quite frequently.
- Returns:
- the number or rows in the model
- Overrides:
- getRowCount in class AbstractTableModel
- See Also:
- getColumnCount()
getValueAt
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
- Returns an attribute value for the cell at columnIndex
and rowIndex.
- Parameters:
- rowIndex - the row whose value is to be looked up
- columnIndex - the column whose value is to be looked up
- Returns:
- the value Object at the specified cell
- Overrides:
- getValueAt in class AbstractTableModel
insertRow
public synchronized void insertRow(CompColInputMember row,
int rowIndex)
- Method to insert a row
- Parameters:
- row - CompColInputMember
- rowIndex - index in which to insert
moveRow
public void moveRow(int fromIndex,
int toIndex)
- Method to move row from one index to another
- Parameters:
- fromIndex - index to move from
- toIndex - index to move to
setCompColArray
public void setCompColArray(CompColInputMember[] data)
- Set member data, which fires TableDataChanged Event
- Parameters:
- data - array of CompColInputMember to be set
All Packages Class Hierarchy This Package Previous Next Index