Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

oracle.jbo.uicli.jui
Class JUTableBinding.JUTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by oracle.jbo.uicli.jui.JUTableBinding.JUTableModel
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.ChangeListener, javax.swing.event.ListSelectionListener, javax.swing.table.TableModel
Direct Known Subclasses:
JUTreeTableBinding.JUTreeTableModel
Enclosing class:
JUTableBinding

protected class JUTableBinding.JUTableModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.event.ListSelectionListener, javax.swing.event.ChangeListener

This TableModel is used by JUTableBinding to perform updates of the JTable control to which it is bound. This class is responsible for:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Method Summary
 java.lang.Class getColumnClass(int attrIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int attrIndex)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int attrIndex)
           
 boolean isCellEditable(int rowIndex, int attrIndex)
           
protected  void resetRSICurrency(int selectTabRowIndex)
           
protected  void restoreEditorState(java.util.Map tableProperties)
          Restores table properties using the parameter provided
protected  java.util.Map saveEditorState()
          Method to save the jtable cell's editing state.
 void setValueAt(java.lang.Object value, int rowIndex, int attrIndex)
           
 void stateChanged(javax.swing.event.ChangeEvent event)
           
 void valueChanged(javax.swing.event.ListSelectionEvent event)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColumnName

public java.lang.String getColumnName(int attrIndex)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnClass

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

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getRowCount

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

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int attrIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int attrIndex)
Specified by:
getValueAt in interface javax.swing.table.TableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       int rowIndex,
                       int attrIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent event)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

resetRSICurrency

protected void resetRSICurrency(int selectTabRowIndex)

saveEditorState

protected java.util.Map saveEditorState()
Method to save the jtable cell's editing state. It stores editing cell column, row and the caret position if the cell editor is a text component. Can be overridden to store additional info.

Returns:
Map - Map instance which contains the table properties that needs be restored.

restoreEditorState

protected void restoreEditorState(java.util.Map tableProperties)
Restores table properties using the parameter provided

Parameters:
tableProperties - - contains properties of the table. It has the editing cell's column, row and caret position (if the cell editor is text component)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent event)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

Copyright © 1997, 2011, Oracle. All rights reserved.