|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--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 could
This class creates a runtime instance of JUTableModel to interact with a JTable instance. It is responsible for
RowIterator,
ViewObject,
JTable,
TableModel,
AbstractTableModel| Inner Class Summary |
| Type | Class |
|---|---|
protected class |
JUTableBinding.JUTableModel
This TableModel is used by JUTableBinding to perform updates of the JTable control to which it is bound to. |
| 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 |
| Type | Method |
|---|---|
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. |
java.lang.Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int columnIndex)
|
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 *** |
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 |
setLayoutObject(javax.swing.JScrollPane scrollPane)
*** For internal framework use only *** |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the given value from a BC4J row into the control at the given row/column. |
void |
stopEditing()
Notified by NavigationBar to stop any edits on the current control. |
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 a 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 |
getEstimatedRowCount, updateValuesFromRow |
| Methods inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
findAttributeDef, getAttribute, getAttribute,
getAttributeCount, getAttributeDef, getAttributeDefs,
getAttributeFromRow, getAttributeFromRow,
getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf,
getAttributeNames, isAttributeUpdateable, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow |
| Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
executeQuery, executeQueryIfNeeded, getAllRowsInRange,
getApplicationModule, getControl, getCurrentRow,
getDef, getFormBinding, getIteratorBinding,
getName, getRowAtRangeIndex, getRowIterator,
getTransaction, getViewObject, reportException,
setFormBinding, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JUTableBinding(javax.swing.JTable control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames)
This class is responsible for
| Method Detail |
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 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 stopEditing()
stopEditing in interface JUPanelStopEditingListenerstopEditing in class JUCtrlValueBindingprotected 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 JUControlBinding
public void addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
addControlToPanel in class JUControlBindingpublic 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 JUControlBindingpublic void setLayoutObject(javax.swing.JScrollPane scrollPane)
public void updateValuesFromRows(Row[] rows, boolean clear)
updateValuesFromRows in class JUCtrlRangeBindingpublic void updateRangeScrolled(ScrollEvent event)
updateRangeScrolled in class JUCtrlRangeBindingoracle.jbo.uicli.binding.JUCtrlValueBindingScrollEventpublic void updateRowInserted(InsertEvent event)
updateRowInserted in class JUCtrlValueBindingpublic void updateRowDeleted(DeleteEvent event)
updateRowDeleted in class JUCtrlValueBindingpublic void updateNavigated(NavigationEvent event)
updateNavigated in class JUCtrlRangeBindingpublic void hierarchyChanged(java.awt.event.HierarchyEvent e)
hierarchyChanged in interface java.awt.event.HierarchyListenerpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelpublic 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)
JUCtrlRangeBindinggetValueAt in interface javax.swing.table.TableModelgetValueAt in class
JUCtrlRangeBinding
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
JUCtrlRangeBindingsetValueAt in interface javax.swing.table.TableModelsetValueAt
in class JUCtrlRangeBindingpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface javax.swing.table.TableModelpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModel
|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||