com.jaxfront.core.ui.tableModel
Class FlippableListTypeTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.jaxfront.core.ui.tableModel.ListTypeTableModel
com.jaxfront.core.ui.tableModel.FlippableListTypeTableModel
- All Implemented Interfaces:
- DOMChangeListener, StackableTableModel, java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel
public class FlippableListTypeTableModel
- extends ListTypeTableModel
- implements StackableTableModel
- See Also:
- Serialized Form
Method Summary |
java.lang.Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
Get the number of columns in the table Value depends on whether the table
is flipped (This is used by the JTable displaying this model) |
java.lang.String |
getColumnName(int col)
Get the column name at index col. |
int |
getRowCount()
Count the number of rows in the table.Value depends on whether the table
is flipped |
java.lang.String |
getRowName(int row)
Get the column name at index col. |
java.lang.Object |
getValueAt(int row,
int col)
Get the Object at position row, column Returns the approriate object from
the internal object table, location depends on row, column but also on
whether the table is flipped or not. col = 0 will always return the
rowHeaders for the table. |
int |
getViewToModel(int rowIndex)
|
boolean |
isFlipped()
|
void |
setFlipped(boolean flipped)
|
Methods inherited from class com.jaxfront.core.ui.tableModel.ListTypeTableModel |
domChanged, evaluateParentTableRowIndex, getColumns, getExcelTableData, getIndexFor, getListType, getRowFormulas, getRowHeaders, getSimpleTypeAt, getStrategy, getTableInfo, isCellEditable, isCellEditableEnabled, release, setValueAt, swapFormula |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt |
FlippableListTypeTableModel
public FlippableListTypeTableModel(ListType listType)
getColumnClass
public java.lang.Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface javax.swing.table.TableModel
- Overrides:
getColumnClass
in class ListTypeTableModel
- See Also:
TableModel.getColumnClass(int)
getColumnCount
public int getColumnCount()
- Get the number of columns in the table Value depends on whether the table
is flipped (This is used by the JTable displaying this model)
- Specified by:
getColumnCount
in interface javax.swing.table.TableModel
- Overrides:
getColumnCount
in class ListTypeTableModel
- See Also:
TableModel.getColumnCount()
getRowCount
public int getRowCount()
- Description copied from class:
ListTypeTableModel
- Count the number of rows in the table.Value depends on whether the table
is flipped
- Specified by:
getRowCount
in interface javax.swing.table.TableModel
- Overrides:
getRowCount
in class ListTypeTableModel
- See Also:
TableModel.getRowCount()
getColumnName
public java.lang.String getColumnName(int col)
- Get the column name at index col. Value depends on whether the table is
flipped.
- Specified by:
getColumnName
in interface javax.swing.table.TableModel
- Overrides:
getColumnName
in class ListTypeTableModel
- Parameters:
col
- the column to select- See Also:
TableModel.getColumnName(int)
getRowName
public java.lang.String getRowName(int row)
- Get the column name at index col. Value depends on whether the table is
flipped.
- Overrides:
getRowName
in class ListTypeTableModel
- Parameters:
col
- the column to select- See Also:
TableModel.getColumnName(int)
getValueAt
public java.lang.Object getValueAt(int row,
int col)
- Description copied from class:
ListTypeTableModel
- Get the Object at position row, column Returns the approriate object from
the internal object table, location depends on row, column but also on
whether the table is flipped or not. col = 0 will always return the
rowHeaders for the table. Values for the cells will be computed on the
fly for not yet evaluated XPath Expressions.
- Specified by:
getValueAt
in interface javax.swing.table.TableModel
- Overrides:
getValueAt
in class ListTypeTableModel
- Parameters:
row
- The row to selectcol
- The column to select
- Returns:
- The object at that location
getViewToModel
public int getViewToModel(int rowIndex)
- Specified by:
getViewToModel
in interface StackableTableModel
- Overrides:
getViewToModel
in class ListTypeTableModel
setFlipped
public void setFlipped(boolean flipped)
- Parameters:
flipped
- The flipped to set.
isFlipped
public boolean isFlipped()
- Returns:
- Returns the flipped.