Skip navigation links 
 
oracle.jbo.uicli.jui
Class JUTableBinding.JUTableModel
java.lang.Object
  
javax.swing.table.AbstractTableModel
      
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:
- Updating the displayed data in JTable.
 
- Accepting edits from the JTable and passing it to the appropriate Row in the BC4J layer.
 
- Managing the scrollbar associated with the associated JTable's display.
 
- Passing the class of the data in each column thats displayed to the JTable so that it can use an appropriate display renderer or cell editor.
 
- Editability of cells based on whether the current attribute in the current row is editable or not.
 
- See Also:
 
- Serialized Form
 
 
 
| Fields inherited from class javax.swing.table.AbstractTableModel | 
listenerList | 
  
 
 
| 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 | 
 
 
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 
 
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.