mondrian.gui
Class PropertyTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by mondrian.gui.PropertyTableModel
All Implemented Interfaces:
Serializable, TableModel

public class PropertyTableModel
extends AbstractTableModel

Author:
sean
See Also:
Serialized Form
 

Field Summary
(package private)  String[] propertyNames
           
(package private)  Object target
           
(package private)  Workbench workbench
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PropertyTableModel(Workbench wb, Object t, String[] pNames)
           
 
Method Summary
 int getColumnCount()
          Returns the number of columns in the model.
 String getColumnName(int i)
           
 String getErrorMsg()
           
 String getFactTable()
           
 String getFactTableSchema()
           
 ArrayList getNames()
           
 Object getParentTarget()
           
 int getRowCount()
          Returns the number of rows in the model.
 String getRowName(int i)
           
 Object getValue()
           
 Object getValueAt(int rowIndex, int columnIndex)
          Returns the value for the cell at columnIndex and rowIndex.
 boolean isCellEditable(int row, int col)
           
 void setErrorMsg(String errorMsg)
           
 void setFactTable(String factTable)
           
 void setFactTableSchema(String factTableSchema)
           
 void setNames(ArrayList names)
           
 void setParentTarget(Object parentTarget)
           
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyNames

String[] propertyNames

target

Object target

workbench

Workbench workbench
Constructor Detail

PropertyTableModel

public PropertyTableModel(Workbench wb,
                          Object t,
                          String[] pNames)
Method Detail

getColumnName

public String getColumnName(int i)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getRowName

public String getRowName(int i)

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getColumnCount

public int getColumnCount()
Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.

Returns:
the number of columns in the model
See Also:
getRowCount()

getRowCount

public int getRowCount()
Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.

Returns:
the number of rows in the model
See Also:
getColumnCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.

Parameters:
rowIndex - the row whose value is to be queried
columnIndex - the column whose value is to be queried
Returns:
the value Object at the specified cell

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

getValue

public Object getValue()

getParentTarget

public Object getParentTarget()

setParentTarget

public void setParentTarget(Object parentTarget)

getFactTable

public String getFactTable()

setFactTable

public void setFactTable(String factTable)

getFactTableSchema

public String getFactTableSchema()

setFactTableSchema

public void setFactTableSchema(String factTableSchema)

getNames

public ArrayList getNames()

setNames

public void setNames(ArrayList names)

getErrorMsg

public String getErrorMsg()

setErrorMsg

public void setErrorMsg(String errorMsg)

SourceForge.net_Logo