Package mondrian.gui
Class PropertyTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- mondrian.gui.PropertyTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
public class PropertyTableModel extends AbstractTableModel
- Author:
- sean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String[]propertyNames(package private) Objecttarget(package private) Workbenchworkbench-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description PropertyTableModel(Workbench wb, Object t, String[] pNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()Returns the number of columns in the model.StringgetColumnName(int i)StringgetErrorMsg()StringgetFactTable()StringgetFactTableSchema()List<String>getNames()ObjectgetParentTarget()intgetRowCount()Returns the number of rows in the model.StringgetRowName(int i)ObjectgetValue()ObjectgetValueAt(int rowIndex, int columnIndex)Returns the value for the cell atcolumnIndexandrowIndex.booleanisCellEditable(int row, int col)voidsetErrorMsg(String errorMsg)voidsetFactTable(String factTable)voidsetFactTableSchema(String factTableSchema)voidsetNames(List<String> names)voidsetParentTarget(Object parentTarget)voidsetValueAt(Object value, 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
-
-
-
-
Method Detail
-
getColumnName
public String getColumnName(int i)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getRowName
public String getRowName(int i)
-
isCellEditable
public boolean isCellEditable(int row, int col)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnCount
public int getColumnCount()
Returns the number of columns in the model. AJTableuses 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. AJTableuses 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 atcolumnIndexandrowIndex.- Parameters:
rowIndex- the row whose value is to be queriedcolumnIndex- the column whose value is to be queried- Returns:
- the value Object at the specified cell
-
setValueAt
public void setValueAt(Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
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)
-
getErrorMsg
public String getErrorMsg()
-
setErrorMsg
public void setErrorMsg(String errorMsg)
-
-