|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap oracle.jbo.common.JboAbstractMap oracle.adf.model.binding.DCControlBinding oracle.jbo.uicli.binding.JUControlBinding oracle.jbo.uicli.binding.JUCtrlValueBinding oracle.jbo.uicli.binding.JUCtrlRangeBinding oracle.jbo.uicli.jui.JUTableBinding
A lightweight TableModel that implements
binding a javax.swing.JTable
to a RowIterator for a BC4J ViewObject.
Applications should subclass this binding and return a subclass of JUTableModel that can:
This class creates a runtime instance of JUTableModel to interact with a JTable instance. It is responsible for:
RowIterator
,
ViewObject
,
JTable
,
TableModel
,
AbstractTableModel
Nested Class Summary | |
protected class |
JUTableBinding.JUTableModel
This TableModel is used by JUTableBinding to perform updates of the JTable control to which it is bound. |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary |
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_DISPLAY_HINT, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_PATH, ATTR_TOOLTIP, ATTR_UPDATEABLE, mHasInputVal, mInputVal, SEP_LIST_DISPLAY |
Fields inherited from class oracle.adf.model.binding.DCControlBinding |
ATTR_CURRENTROW, ATTR_DEF, ATTR_ERROR, ATTR_ERRORS, ATTR_FULLNAME, ATTR_ITER, ATTR_NAME, mInternalGet_KeyResolved, ROW_KEY_STR |
Constructor Summary | |
JUTableBinding(javax.swing.JTable control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames)
Creates an instance of JUTableModel that performs the binding of a BC4J ViewObject with a JTable. |
Method Summary | |
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
void |
addTableModelListener(javax.swing.event.TableModelListener l)
|
static javax.swing.table.TableModel |
createAttributeListBinding(JUPanelBinding formBinding,
javax.swing.JTable control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String[] attrNames)
Creates an instance of JUTableBinding to return. |
static javax.swing.table.TableModel |
createAttributeListBinding(JUPanelBinding formBinding,
javax.swing.JTable control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String[] attrNames,
boolean columnSort,
JUTableSortModel sorter)
Creates an instance of JUTableBinding to return. |
java.lang.Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int columnIndex)
|
java.lang.Object |
getControlModel(java.lang.Object control)
Gets the associated View's model object. |
protected int |
getDefaultVisibleRowCount()
Subclasses may override this to provide a default visible row count for a table binding where the table is not in a scrollpane or the table has not been appropriately sized yet and table needs to know the visible row count. |
static javax.swing.table.TableModel |
getInstance(JUPanelBinding formBinding,
javax.swing.JTable control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String[] attrNames)
Deprecated. since 9.0.2 |
java.lang.Object |
getLayoutObject()
*** For internal framework use only *** |
JUTableBinding.JUTableModel |
getModel()
|
protected JUTableBinding.JUTableModel |
getModelImpl(javax.swing.JTable control)
Returns an instance of JUTableModel that this binding works with and is applied as the JTableModel to the given JTable control. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value as stored in the control at a given row and column index. |
void |
hierarchyChanged(java.awt.event.HierarchyEvent e)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
protected boolean |
isControlQueriable()
Returns true by default to imply that this binding supports Find mode. |
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
|
void |
setControl(java.lang.Object ctrl)
Bind this binding to a control. |
void |
setLayoutObject(javax.swing.JScrollPane scrollPane)
*** For internal framework use only *** |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
void |
stopEditing()
Notification method to this listener to stop editing. |
void |
updateNavigated(NavigationEvent event)
Adjusts the display to move the current row selection to the new current row. |
void |
updateRangeScrolled(ScrollEvent event)
Adjusts the scrollbar of the associated JTable and also refreshes the display with the current set of rows in range in the associated RowIterator. |
void |
updateRowDeleted(DeleteEvent event)
When a row is deleted in the associated iterator, this method gets invoked by the framework, so that this binding can update the displayed rows in the JTable after stopping the edit function on the current cell (if a cell was being edited). |
void |
updateRowInserted(InsertEvent event)
When a new row is inserted into the associated Iterator, this method gets invoked by the framework. |
void |
updateValuesFromRows(Row[] rows,
boolean clear)
Updates the JTable's display with the given set of rows after optionally clearing out the current rows (if clear is true). |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlRangeBinding |
createValueBindingRef, getEstimatedRowCount, getRangeSet, getRangeSize, getRangeStart, internalGet, needsEstimatedRowCount, refreshControl, release, resetInputState, updateValuesFromRow |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
getFormBinding, getIteratorBinding, reportException, setFormBinding |
Methods inherited from class oracle.adf.model.binding.DCControlBinding |
addToDCExceptions, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getBindingContainer, getControl, getCurrentRow, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, hashCode, internalSetName, removeFromDCExceptions, reportException, resetAttributeExceptionInRow, setBindingContainer, setName, toString |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
entrySet, equals |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.StructureDef |
getDefFullName, getDefName, getFullName, getName |
Constructor Detail |
public JUTableBinding(javax.swing.JTable control, JUIteratorBinding iterBinding, java.lang.String[] attrNames)
This class is responsible for:
Method Detail |
public java.lang.Object getControlModel(java.lang.Object control)
getControlModel
in class DCControlBinding
public static javax.swing.table.TableModel createAttributeListBinding(JUPanelBinding formBinding, javax.swing.JTable control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String[] attrNames)
public static javax.swing.table.TableModel createAttributeListBinding(JUPanelBinding formBinding, javax.swing.JTable control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String[] attrNames, boolean columnSort, JUTableSortModel sorter)
public static javax.swing.table.TableModel getInstance(JUPanelBinding formBinding, javax.swing.JTable control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String[] attrNames)
public void setControl(java.lang.Object ctrl)
setControl
in class DCControlBinding
public void stopEditing()
JUPanelStopEditingListener
stopEditing
in interface JUPanelStopEditingListener
stopEditing
in class JUCtrlValueBinding
public JUTableBinding.JUTableModel getModel()
protected JUTableBinding.JUTableModel getModelImpl(javax.swing.JTable control)
Override this method to return a subclass of JUTableModel to perform customizations on the table model like:
protected boolean isControlQueriable()
isControlQueriable
in class DCControlBinding
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUCtrlRangeBinding
public java.lang.Object getLayoutObject()
Returns the scrollpane object in which the JTable control is displayed. If JTable is not displayed in a scrollpane, then this method returns the JTable control instance.
getLayoutObject
in class DCControlBinding
public void setLayoutObject(javax.swing.JScrollPane scrollPane)
protected int getDefaultVisibleRowCount()
public void updateValuesFromRows(Row[] rows, boolean clear)
updateValuesFromRows
in class JUCtrlRangeBinding
public void updateRangeScrolled(ScrollEvent event)
updateRangeScrolled
in class JUCtrlRangeBinding
public void updateRowInserted(InsertEvent event)
updateRowInserted
in class JUCtrlValueBinding
public void updateRowDeleted(DeleteEvent event)
updateRowDeleted
in class JUCtrlValueBinding
public void updateNavigated(NavigationEvent event)
updateNavigated
in class JUCtrlRangeBinding
public void hierarchyChanged(java.awt.event.HierarchyEvent e)
hierarchyChanged
in interface java.awt.event.HierarchyListener
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
JUCtrlRangeBinding
getValueAt
in interface javax.swing.table.TableModel
getValueAt
in class JUCtrlRangeBinding
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class JUCtrlRangeBinding
public void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener
in interface javax.swing.table.TableModel
public void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener
in interface javax.swing.table.TableModel
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.