Package mondrian.gui
Class PropertyTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- mondrian.gui.PropertyTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class PropertyTableModel extends javax.swing.table.AbstractTableModel
- Author:
- sean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String[]
propertyNames
(package private) java.lang.Object
target
(package private) Workbench
workbench
-
Constructor Summary
Constructors Constructor Description PropertyTableModel(Workbench wb, java.lang.Object t, java.lang.String[] pNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
Returns the number of columns in the model.java.lang.String
getColumnName(int i)
java.lang.String
getErrorMsg()
java.lang.String
getFactTable()
java.lang.String
getFactTableSchema()
java.util.List<java.lang.String>
getNames()
java.lang.Object
getParentTarget()
int
getRowCount()
Returns the number of rows in the model.java.lang.String
getRowName(int i)
java.lang.Object
getValue()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
Returns the value for the cell atcolumnIndex
androwIndex
.boolean
isCellEditable(int row, int col)
void
setErrorMsg(java.lang.String errorMsg)
void
setFactTable(java.lang.String factTable)
void
setFactTableSchema(java.lang.String factTableSchema)
void
setNames(java.util.List<java.lang.String> names)
void
setParentTarget(java.lang.Object parentTarget)
void
setValueAt(java.lang.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
-
-
-
-
Field Detail
-
propertyNames
java.lang.String[] propertyNames
-
target
java.lang.Object target
-
workbench
Workbench workbench
-
-
Constructor Detail
-
PropertyTableModel
public PropertyTableModel(Workbench wb, java.lang.Object t, java.lang.String[] pNames)
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName(int i)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getRowName
public java.lang.String getRowName(int i)
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
Returns the number of columns in the model. AJTable
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. AJTable
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 java.lang.Object getValueAt(int rowIndex, int columnIndex)
Returns the value for the cell atcolumnIndex
androwIndex
.- 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(java.lang.Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getValue
public java.lang.Object getValue()
-
getParentTarget
public java.lang.Object getParentTarget()
-
setParentTarget
public void setParentTarget(java.lang.Object parentTarget)
-
getFactTable
public java.lang.String getFactTable()
-
setFactTable
public void setFactTable(java.lang.String factTable)
-
getFactTableSchema
public java.lang.String getFactTableSchema()
-
setFactTableSchema
public void setFactTableSchema(java.lang.String factTableSchema)
-
getNames
public java.util.List<java.lang.String> getNames()
-
setNames
public void setNames(java.util.List<java.lang.String> names)
-
getErrorMsg
public java.lang.String getErrorMsg()
-
setErrorMsg
public void setErrorMsg(java.lang.String errorMsg)
-
-