Skip navigation links


com.essbase.eas.ui.ctable
Class CTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by com.essbase.eas.ui.ctable.CTableModel

All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.TableModelListener, javax.swing.table.TableModel
Direct Known Subclasses:
DbDataLoadTableModel, SmartListMappingTableModel, SmartListObjectTableModel, TableSpaceSorter

public class CTableModel
extends javax.swing.table.DefaultTableModel
implements javax.swing.event.TableModelListener

Title: Description: Copyright: Copyright (c) 2001 - 2003 Company: Hyperion Solutions Corporation

Version:
1.0
Author:
Sree Menon & Bill Schleifer
See Also:
Serialized Form

Nested Class Summary
 class CTableModel.MultiLineString
           

 

Field Summary
static int ColTypeCheck
           
static int ColTypeDate
           
static int ColTypeDouble
           
static int ColTypeLong
           
static int ColTypeMultiLine
           
static int ColTypeNumber
           
static int ColTypeObject
           
static int ColTypeOption
           
static int ColTypeString
           
static int ColTypeUser
           

 

Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector

 

Fields inherited from class javax.swing.table.AbstractTableModel
listenerList

 

Constructor Summary
CTableModel()
           
CTableModel(javax.swing.table.DefaultTableModel m)
           
CTableModel(javax.swing.table.TableModel m)
           

 

Method Summary
 void addEditRow(javax.swing.JTable table)
           
 int addNewRow()
           
 void addRow(java.lang.Object[] cols, java.lang.Object rowData)
           
 void changeRowValues(int row)
           
 void clearData()
           
 void delRow(int row)
           
 void delRows(int[] rows)
           
 void dispose()
           
 void endInsert(int firstRow)
           
 void endInsert(int firstRow, int lastRow)
           
 void endUpdate(int firstRow)
           
 void endUpdate(int firstRow, int lastRow)
           
 void fireTableRowsInserted(int firstRow, int lastRow)
           
 void fireTableRowsUpdated(int firstRow, int lastRow)
           
 java.lang.Object getCellData(int row, int col)
           
 boolean getColSortMode(int col)
           
 int getColumnAlignment(int col)
           
 java.lang.Class getColumnClass(int column)
           
static int[] getColumnIndexes(javax.swing.table.TableModel model, java.lang.String[] colNames)
           
 java.util.Comparator getComparator(int[] cols, boolean ascending)
           
 PTableHeaderListeners getHeaderListener(javax.swing.JTable table)
           
 java.util.Vector getOriginalRow(int row)
           
 java.lang.Object getOriginalValue(int row, int col)
           
 javax.swing.table.DefaultTableModel getOrignalModel()
           
 java.util.Vector getRow(int row)
           
 int getRowCount()
           
 java.lang.Object getRowData(int row)
           
 java.util.Vector getRowValues()
           
 void insertRow(int row, java.util.Vector rowData)
           
 boolean isCellEditable(int row, int col)
           
 boolean isCellModified(int row, int col)
           
 boolean isEditable()
           
 boolean isSortable()
           
 void removeRow(int row)
           
 void resetEditRow()
           
 void resetTableCols(int columns)
           
 void setCanReturnNull(boolean bNull)
           
 void setCellData(int row, int col, java.lang.Object data)
           
 void setCellEditableClass(java.lang.Object parent, java.lang.String method)
           
 void setColSortMode(int col, boolean bAsc)
           
 void setColumnAlignment(int col, int alignment)
           
 void setColumnClass(int col, java.lang.Class clazz)
           
 void setColumnIdentifiers(java.lang.Object[] newIdentifiers)
           
 void setColumnIdentifiers(java.util.Vector columnIdentifiers)
           
 void setColumnName(int column, java.lang.String columnName)
           
 void setColumnType(int col, int type)
           
 void setComparator(java.util.Comparator comparator)
           
 void setDataVector(java.util.Vector dataVector, java.util.Vector columnIdentifiers)
           
 void setEditable(boolean bEditable)
           
 PTableHeaderListeners setHeaderListener(javax.swing.JTable table, PTableHeaderListeners hListener)
           
 void setMaxColumns(int columns)
           
 void setNumRows(int rows)
           
 void setRowData(int row, java.lang.Object obj)
           
 void setSortable(boolean sortable)
           
 void setTableColumnUnEditable(boolean onlyThisCol, int column, boolean allLess, boolean allAbove)
           
 void setValueAt(java.lang.Object aValue, int row, int column)
           
 boolean shouldRecalcRow()
           
 void sort(javax.swing.JTable table, java.util.Comparator comp)
           
 void sort(javax.swing.JTable table, int column)
           
 void sort(javax.swing.JTable table, int column, boolean ascending)
           
 void startUpdate()
           
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 void updateRow(int row, java.lang.Object[] values)
           
 void useTableModel(javax.swing.table.TableModel model)
           
 void useTableModel(javax.swing.table.TableModel model, boolean inheritCols)
           
 void useTableModel(javax.swing.table.TableModel model, int[] cols)
           
 void useTableModel(javax.swing.table.TableModel model, java.lang.String[] colNames)
           

 

Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getValueAt, insertRow, moveRow, newDataAvailable, newRowsAdded, rowsRemoved, setColumnCount, setDataVector, setRowCount

 

Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

ColTypeString

public static final int ColTypeString
See Also:
Constant Field Values

ColTypeLong

public static final int ColTypeLong
See Also:
Constant Field Values

ColTypeNumber

public static final int ColTypeNumber
See Also:
Constant Field Values

ColTypeDate

public static final int ColTypeDate
See Also:
Constant Field Values

ColTypeCheck

public static final int ColTypeCheck
See Also:
Constant Field Values

ColTypeOption

public static final int ColTypeOption
See Also:
Constant Field Values

ColTypeMultiLine

public static final int ColTypeMultiLine
See Also:
Constant Field Values

ColTypeDouble

public static final int ColTypeDouble
See Also:
Constant Field Values

ColTypeUser

public static final int ColTypeUser
See Also:
Constant Field Values

ColTypeObject

public static final int ColTypeObject
See Also:
Constant Field Values

Constructor Detail

CTableModel

public CTableModel()

CTableModel

public CTableModel(javax.swing.table.TableModel m)

CTableModel

public CTableModel(javax.swing.table.DefaultTableModel m)

Method Detail

getOrignalModel

public javax.swing.table.DefaultTableModel getOrignalModel()

getHeaderListener

public PTableHeaderListeners getHeaderListener(javax.swing.JTable table)

setHeaderListener

public PTableHeaderListeners setHeaderListener(javax.swing.JTable table,
                                               PTableHeaderListeners hListener)

getColumnClass

public java.lang.Class getColumnClass(int column)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

setColumnIdentifiers

public void setColumnIdentifiers(java.util.Vector columnIdentifiers)
Overrides:
setColumnIdentifiers in class javax.swing.table.DefaultTableModel

setColumnIdentifiers

public void setColumnIdentifiers(java.lang.Object[] newIdentifiers)
Overrides:
setColumnIdentifiers in class javax.swing.table.DefaultTableModel

resetTableCols

public void resetTableCols(int columns)

setMaxColumns

public void setMaxColumns(int columns)

setColumnType

public void setColumnType(int col,
                          int type)

setColumnClass

public void setColumnClass(int col,
                           java.lang.Class clazz)

setColumnName

public void setColumnName(int column,
                          java.lang.String columnName)

getCellData

public java.lang.Object getCellData(int row,
                                    int col)

updateRow

public void updateRow(int row,
                      java.lang.Object[] values)

addNewRow

public int addNewRow()

setCellData

public void setCellData(int row,
                        int col,
                        java.lang.Object data)

sort

public void sort(javax.swing.JTable table,
                 java.util.Comparator comp)

sort

public void sort(javax.swing.JTable table,
                 int column)

sort

public void sort(javax.swing.JTable table,
                 int column,
                 boolean ascending)

setSortable

public void setSortable(boolean sortable)

isSortable

public boolean isSortable()

clearData

public void clearData()

setComparator

public void setComparator(java.util.Comparator comparator)

getComparator

public java.util.Comparator getComparator(int[] cols,
                                          boolean ascending)

setNumRows

public void setNumRows(int rows)
Overrides:
setNumRows in class javax.swing.table.DefaultTableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel
Overrides:
getRowCount in class javax.swing.table.DefaultTableModel

delRow

public void delRow(int row)

removeRow

public void removeRow(int row)
Overrides:
removeRow in class javax.swing.table.DefaultTableModel

setDataVector

public void setDataVector(java.util.Vector dataVector,
                          java.util.Vector columnIdentifiers)
Overrides:
setDataVector in class javax.swing.table.DefaultTableModel

isCellModified

public boolean isCellModified(int row,
                              int col)

setEditable

public void setEditable(boolean bEditable)

isEditable

public boolean isEditable()

getRowValues

public java.util.Vector getRowValues()

getRow

public java.util.Vector getRow(int row)

getOriginalRow

public java.util.Vector getOriginalRow(int row)

getOriginalValue

public java.lang.Object getOriginalValue(int row,
                                         int col)

changeRowValues

public void changeRowValues(int row)

setTableColumnUnEditable

public void setTableColumnUnEditable(boolean onlyThisCol,
                                     int column,
                                     boolean allLess,
                                     boolean allAbove)

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel

setCellEditableClass

public void setCellEditableClass(java.lang.Object parent,
                                 java.lang.String method)

insertRow

public void insertRow(int row,
                      java.util.Vector rowData)
Overrides:
insertRow in class javax.swing.table.DefaultTableModel

addEditRow

public void addEditRow(javax.swing.JTable table)

resetEditRow

public void resetEditRow()

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.DefaultTableModel

setCanReturnNull

public void setCanReturnNull(boolean bNull)

getColSortMode

public boolean getColSortMode(int col)

setColSortMode

public void setColSortMode(int col,
                           boolean bAsc)

getColumnAlignment

public int getColumnAlignment(int col)

setColumnAlignment

public void setColumnAlignment(int col,
                               int alignment)

useTableModel

public void useTableModel(javax.swing.table.TableModel model)

useTableModel

public void useTableModel(javax.swing.table.TableModel model,
                          boolean inheritCols)

useTableModel

public void useTableModel(javax.swing.table.TableModel model,
                          int[] cols)

useTableModel

public void useTableModel(javax.swing.table.TableModel model,
                          java.lang.String[] colNames)

getColumnIndexes

public static int[] getColumnIndexes(javax.swing.table.TableModel model,
                                     java.lang.String[] colNames)

delRows

public void delRows(int[] rows)

shouldRecalcRow

public boolean shouldRecalcRow()

setRowData

public void setRowData(int row,
                       java.lang.Object obj)

getRowData

public java.lang.Object getRowData(int row)

fireTableRowsInserted

public void fireTableRowsInserted(int firstRow,
                                  int lastRow)
Overrides:
fireTableRowsInserted in class javax.swing.table.AbstractTableModel

fireTableRowsUpdated

public void fireTableRowsUpdated(int firstRow,
                                 int lastRow)
Overrides:
fireTableRowsUpdated in class javax.swing.table.AbstractTableModel

startUpdate

public void startUpdate()

endInsert

public void endInsert(int firstRow)

endInsert

public void endInsert(int firstRow,
                      int lastRow)

endUpdate

public void endUpdate(int firstRow)

endUpdate

public void endUpdate(int firstRow,
                      int lastRow)

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener

addRow

public void addRow(java.lang.Object[] cols,
                   java.lang.Object rowData)

dispose

public void dispose()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.