|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
oracle.dacf.control.swing.GridControl
This class is a data-aware control based on the JFC JTable class.
The grid control supports binding to data items which implements the ScrollableRowsetAccess InfoBus interface.
If the data item also implements the DataItemView InfoBus interface, the performance of the grid will be vastly improved.
The grid control does not support data items which only implement the ArrayAccess or RowsetAccess InfoBus interfaces. The data item must implement the ScrollableRowsetAccess interface as a minimum.
Control
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
protected oracle.dacf.control.swing.ColumnPropertiesPopupMenu |
_popupMenu
|
protected boolean |
_rebuildColumnModel
|
protected boolean |
_showColumnPropertiesMenu
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface oracle.dacf.control.Control |
DEFAULT_INFOBUS_NAME, EVENT_PROPERTY_ROW, EVENT_PROPERTY_ROW_CHANGE, EVENT_PROPERTY_ROW_COUNT, EVENT_PROPERTY_VIEW_CHANGE, EVENT_PROPERTY_VIEW_REFRESHED, EVENT_PROPERTY_VIEW_SCROLLED, EXCLUDE, HIDE, SHOW |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GridControl()
Creates a new grid data-aware control. |
Method Summary | |
protected void |
_displayLOV(int columnIndex)
|
protected void |
_displayLOV(java.lang.String columnDataItemName)
|
protected oracle.dacf.control.swing.ColumnPropertiesPopupMenu |
_getPopupMenu()
|
void |
addNavigatedListener(NavigatedListener listener)
Adds a navigated listener to this control. |
void |
addNavigatingListener(NavigatingListener listener)
Adds a navigating listener to this control. |
void |
applyEdits()
Causes the control to close the cell editor, saving the value |
void |
cancelEdits()
Causes the control to close the cell editor, loosing the value |
boolean |
changeCurrency()
Returns true if a ContainerControl (e.g. |
protected javax.swing.JScrollPane |
createScrollPane()
Override this method, if you wish to use a custom ScrollPane. |
protected GridDataSource |
createTableDataSource(GridControl g)
|
void |
dataItemAdded(javax.infobus.DataItemAddedEvent event)
Indicates that a new item was added to the bound aggregate data item (e.g. |
void |
dataItemChanged(java.lang.Object oldDataItem,
java.lang.Object newDataItem)
Notifies the control that the bound InfoBus DataItem has changed. |
void |
dataItemDeleted(javax.infobus.DataItemDeletedEvent event)
Indicates that an item was deleted from the bound aggregate data item (e. |
void |
dataItemRevoked(javax.infobus.DataItemRevokedEvent event)
Indicates that the bound data item (and its sub-items, if any) has been revoked, and is temporarily unavailable. |
void |
dataItemValueChanged(javax.infobus.DataItemValueChangedEvent event)
Indicates a changed value in the bound data item. |
void |
enabledChanged(boolean b)
|
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
boolean |
getAutoCreateColumnsFromModel()
|
int |
getAutoResizeMode()
|
javax.swing.table.TableCellEditor |
getCellEditor(int row,
int column)
|
boolean |
getCellSelectionEnabled()
|
protected java.lang.String |
getColumnDataItemName(int columnIndex)
|
javax.swing.table.TableColumnModel |
getColumnModel()
|
boolean |
getColumnSelectionAllowed()
|
java.awt.Component |
getComponent()
Returns the AWT component associated with this control. |
java.lang.Object |
getDataItem()
Returns the InfoBus DataItem this control is bound to. |
java.lang.String |
getDataItemName()
Returns the name of the InfoBus DataItem this control is bound to. |
int |
getEditingColumn()
|
int |
getEditingRow()
|
java.awt.Color |
getFocusedSelectionBackground()
Return background selection color used when the GridControl has focus. |
java.awt.Color |
getFocusedSelectionForeground()
Return the foreground selection color when the GridControl has focus. |
java.awt.Color |
getGridColor()
|
java.lang.String |
getInfoBusName()
Returns the name of the InfoBus this control is connected to. |
java.awt.Dimension |
getIntercellSpacing()
|
javax.swing.table.TableModel |
getModel()
|
java.awt.Dimension |
getPreferredScrollableViewportSize()
|
java.awt.Color |
getReadOnlyCellBackgroundColor()
get the current back color used for read only cells. |
int |
getRowHeight()
|
int |
getRowMargin()
|
boolean |
getRowSelectionAllowed()
|
java.awt.Color |
getSelectionBackground()
This will return the current Color being used to indicate the current selection background. |
java.awt.Color |
getSelectionForeground()
This will return the current Color being used to indicate the current selection foreground. |
javax.swing.ListSelectionModel |
getSelectionModel()
|
boolean |
getShowHorizontalLines()
Exposes the JTable ShowHorizontalLines property in our subcomponent to the property sheet |
boolean |
getShowVerticalLines()
Exposes the JTable ShowVerticalLines property in our subcomponent to the property sheet |
SortDelegate |
getSortDelegate()
Return the helper object currently used for sorting |
javax.swing.JTable |
getTable()
Returns the underlying JFC JTable object. |
javax.swing.JScrollPane |
getTableAggregate()
Returns the scroll pane being used by the underlying JFC JTable object. |
java.awt.Color |
getTableBackground()
Exposes the JTable Background color property in our subcomponent to the property sheet |
GridDataSource |
getTableDataSource()
Returns the data source being used by the underlying JFC JTable object. |
java.awt.Color |
getTableForeground()
Exposes the JTable Foreground color property in our subcomponent to the property sheet |
javax.swing.table.JTableHeader |
getTableHeader()
|
java.awt.Color |
getUnfocusedSelectionBackground()
Return the background selection color when the Grid looses focus. |
java.awt.Color |
getUnfocusedSelectionForeground()
Return the foreground selection color when the Grid looses focus. |
int |
getVisibleRowCount()
|
protected void |
installColumnPropertiesPopupMenu()
|
boolean |
isAutoRowNavigation()
Controls how Tab or Shift-Tab will cause the selection to move. |
boolean |
isFocusValidated()
Determines whether focus into this control causes validation to occur. |
boolean |
isForceReadOnly()
are all the cells be forced as read only cells ? |
boolean |
isScrollToSelectedRow()
Returns whether the Grid has been configured to scroll automatically to the selected row in single selection mode. |
boolean |
isShowColumnPropertiesPopupMenu()
|
void |
processNavigatedEvent(NavigatedEvent event)
Processes a navigated event for this control. |
void |
processNavigatingEvent(NavigatingEvent event)
Processes a navigating event for this control. |
void |
releaseResources(InfoBusManagerReleaseEvent e)
A signalling method used to indicate the the control should free all resources and unregister any listeners that it has registered. |
void |
removeNavigatedListener(NavigatedListener listener)
Removes a navigated listener from this control. |
void |
removeNavigatingListener(NavigatingListener listener)
Removes a navigating listener from this control. |
void |
rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
Indicates that the cursor for the bound RowsetAccess data item has changed rows. |
void |
setAutoCreateColumnsFromModel(boolean createColumns)
|
void |
setAutoResizeMode(int mode)
|
void |
setAutoRowNavigation(boolean auto)
Controls how Tab or Shift-Tab will cause the selection to move. |
void |
setCellEditor(javax.swing.table.TableCellEditor anEditor)
|
void |
setCellSelectionEnabled(boolean flag)
|
void |
setColumnModel(javax.swing.table.TableColumnModel newModel)
|
void |
setColumnSelectionAllowed(boolean flag)
|
void |
setDataItemName(java.lang.String dataItemName)
Sets the name of the InfoBus DataItem this control is bound to. |
void |
setEditingColumn(int aColumn)
|
void |
setEditingRow(int aRow)
|
void |
setEnabled(boolean b)
An override of java.awt.Component.setEnabled. |
void |
setFocusedSelectionBackground(java.awt.Color focusedSelectionColor)
Set the background selection color for when the GridControl has focus. |
void |
setFocusedSelectionForeground(java.awt.Color focusedSelectionColor)
Set the foreground selection color for when the Grid has focus. |
void |
setFocusTraversable(boolean focusTraversable)
Sets the underlying JTable as focus traversable. |
void |
setFocusValidated(boolean focusValidated)
Sets whether focus into this control causes validation to occur. |
void |
setForceReadOnly(boolean forceReadOnly)
force all the cells to be read only., irrespective of the underlying data object. |
void |
setGridColor(java.awt.Color gridColor)
|
void |
setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this control is connected to. |
void |
setIntercellSpacing(java.awt.Dimension newSpacing)
|
void |
setModel(javax.swing.table.TableModel newModel)
|
void |
setOpaque(boolean isOpaque)
|
void |
setPreferredScrollableViewportSize(java.awt.Dimension size)
|
void |
setReadOnlyCellBackgroundColor(java.awt.Color color)
specify the background color used for cells which are read-only |
void |
setRowHeight(int newHeight)
|
void |
setRowMargin(int rowMargin)
|
void |
setRowSelectionAllowed(boolean flag)
|
void |
setScrollToSelectedRow(boolean bScroll)
In single selection mode, this flag controls whether the grid should scroll to the selected row or not. |
void |
setSelectionBackground(java.awt.Color color)
This will override the selection background setting currently in effect. |
void |
setSelectionForeground(java.awt.Color color)
This will override the selection foreground setting currently in effect. |
void |
setSelectionModel(javax.swing.ListSelectionModel newModel)
|
void |
setShowColumnPropertiesPopupMenu(boolean showMenu)
displays the Column properties menu on right click |
void |
setShowGrid(boolean showGrid)
Exposes the JTable ShowGrid property in our subcomponent |
void |
setShowHorizontalLines(boolean showLines)
Exposes the JTable ShowHorizontalLines property in our subcomponent to the property sheet |
void |
setShowVerticalLines(boolean showLines)
Exposes the JTable ShowVerticalLines property in our subcomponent to the property sheet |
void |
setSortDelegate(SortDelegate sortDelegate)
GridControl delegates 'sorting' to this helper object. |
void |
setTableBackground(java.awt.Color color)
Exposes the JTable Background color property in our subcomponent to the property sheet |
void |
setTableForeground(java.awt.Color color)
Exposes the JTable Foreground color property in our subcomponent to the property sheet |
void |
setTableHeader(javax.swing.table.JTableHeader newHeader)
|
void |
setToolTipText(java.lang.String text)
|
void |
setUnfocusedSelectionBackground(java.awt.Color unfocusedSelectionColor)
Set the background selection color for when the Grid looses focus. |
void |
setUnfocusedSelectionForeground(java.awt.Color unfocusedSelectionColor)
Set the foreground selection color when the Grid looses focus. |
void |
showVerticalScrollBar(boolean bShow)
The vertical scroll can be removed by this method. |
protected void |
uninstallColumnPropertiesPopupMenu()
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected oracle.dacf.control.swing.ColumnPropertiesPopupMenu _popupMenu
protected boolean _showColumnPropertiesMenu
protected boolean _rebuildColumnModel
Constructor Detail |
public GridControl()
Method Detail |
public void setFocusedSelectionBackground(java.awt.Color focusedSelectionColor)
focusedSelectionColor
- The color to be used for the selection
background when the Grid has the
keyboard focussetFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public java.awt.Color getFocusedSelectionBackground()
setFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public void setUnfocusedSelectionBackground(java.awt.Color unfocusedSelectionColor)
unfocusedSelectionColor
- The color to be used for the selection
background when the Grid doesn't have
the keyboard focussetFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public java.awt.Color getUnfocusedSelectionBackground()
setFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public void setFocusedSelectionForeground(java.awt.Color focusedSelectionColor)
focusedSelectionColor
- The color to be used for the selection
foreground when the Grid has the keyboard
focussetFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public java.awt.Color getFocusedSelectionForeground()
setFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public void setUnfocusedSelectionForeground(java.awt.Color unfocusedSelectionColor)
unfocusedSelectionColor
- The color to be used for the selection
foreground when the Grid doesn't have
the keyboard focussetFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public java.awt.Color getUnfocusedSelectionForeground()
setFocusedSelectionBackground(java.awt.Color)
,
getFocusedSelectionBackground()
,
setFocusedSelectionForeground(java.awt.Color)
,
getFocusedSelectionForeground()
,
setUnfocusedSelectionBackground(java.awt.Color)
,
getUnfocusedSelectionBackground()
,
setUnfocusedSelectionForeground(java.awt.Color)
,
getUnfocusedSelectionForeground()
public final javax.swing.JTable getTable()
protected GridDataSource createTableDataSource(GridControl g)
public final GridDataSource getTableDataSource()
public final javax.swing.JScrollPane getTableAggregate()
public boolean changeCurrency()
ContainerControl
This method is called during the navigation process by the NavigationManager and should not be called directly.
changeCurrency
in interface ContainerControl
public void enabledChanged(boolean b)
enabledChanged
in interface ControlEnabledListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void releaseResources(InfoBusManagerReleaseEvent e)
InfoBusManagerListener
releaseResources
in interface InfoBusManagerListener
public void setEnabled(boolean b)
setEnabled
in interface Control
b
- boolean flag indicating whether the control is enabledpublic final java.lang.String getInfoBusName()
getInfoBusName
in interface Control
Control.getInfoBusName()
public final void setInfoBusName(java.lang.String infoBusName)
By default, the control is connected to the default InfoBus, named Control.DEFAULT_INFOBUS_NAME.
If the named InfoBus does not exist, it is created automatically.
If the control is already connected to an InfoBus, it is disconnected first.
setInfoBusName
in interface Control
infoBusName
- The name of the InfoBus to connect to.Control.DEFAULT_INFOBUS_NAME
,
Control.setInfoBusName(java.lang.String)
public final java.lang.String getDataItemName()
getDataItemName
in interface Control
getDataItem()
,
Control.getDataItemName()
public final void setDataItemName(java.lang.String dataItemName)
The DataItem with the given name is searched for on the InfoBus, and if found, is bound to this control.
If the control is already bound to a DataItem, it is unbound first.
setDataItemName
in interface Control
dataItemName
- The name of the DataItem to bind to.getDataItem()
,
Control.setDataItemName(java.lang.String)
public final java.lang.Object getDataItem()
getDataItem
in interface Control
Control.getDataItem()
public boolean isAutoRowNavigation()
When true the following rules apply:
public void setAutoRowNavigation(boolean auto)
When true the following rules apply:
public final void setShowGrid(boolean showGrid)
public final void setTableBackground(java.awt.Color color)
public final java.awt.Color getTableBackground()
public final void setTableForeground(java.awt.Color color)
public final java.awt.Color getTableForeground()
public void setReadOnlyCellBackgroundColor(java.awt.Color color)
public java.awt.Color getReadOnlyCellBackgroundColor()
public void setForceReadOnly(boolean forceReadOnly)
forceReadOnly
- - ignore the columns 'isUpdatable' flag when truepublic boolean isForceReadOnly()
public void setScrollToSelectedRow(boolean bScroll)
bScroll
- true if the grid should scroll to the selected rowpublic boolean isScrollToSelectedRow()
public void setSortDelegate(SortDelegate sortDelegate)
sortDelegate
- helper object to do the sortpublic SortDelegate getSortDelegate()
public void dataItemChanged(java.lang.Object oldDataItem, java.lang.Object newDataItem)
dataItemChanged
in interface Control
oldDataItem
- The formerly bound DataItem (can be null).newDataItem
- The newly bound DataItem (can be null).Control.dataItemChanged(java.lang.Object, java.lang.Object)
public void applyEdits()
applyEdits
in interface ApplyEditsListener
public void cancelEdits()
cancelEdits
in interface ApplyEditsListener
public java.awt.Component getComponent()
getComponent
in interface Control
Control.getComponent()
public final boolean isFocusValidated()
isFocusValidated
in interface Control
Control.isFocusValidated()
public final void setFocusValidated(boolean focusValidated)
setFocusValidated
in interface Control
focusValidated
- If true, focus into this control will
cause validation to occur.Control.setFocusValidated(boolean)
public final void setFocusTraversable(boolean focusTraversable)
public final void addNavigatedListener(NavigatedListener listener)
The listener will be notified of NavigateIn and NavigateOut events.
addNavigatedListener
in interface Control
listener
- The listener to add.Control.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void removeNavigatedListener(NavigatedListener listener)
removeNavigatedListener
in interface Control
listener
- The listener to remove.Control.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void processNavigatedEvent(NavigatedEvent event)
This method is for use by the NavigationManager only.
processNavigatedEvent
in interface Control
event
- The navigated event.Control.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
public final void addNavigatingListener(NavigatingListener listener)
The listener will be notified of NavigateIn and NavigateOut events.
addNavigatingListener
in interface Control
listener
- The listener to add.Control.addNavigatingListener(oracle.dacf.control.NavigatingListener)
public final void removeNavigatingListener(NavigatingListener listener)
removeNavigatingListener
in interface Control
listener
- The listener to remove.Control.removeNavigatingListener(oracle.dacf.control.NavigatingListener)
public final void processNavigatingEvent(NavigatingEvent event) throws NavigatingException
This method is for use by the NavigationManager only.
processNavigatingEvent
in interface Control
event
- The navigating event.
NavigatingException
- If the navigation is redirected to a
different control.Control.processNavigatingEvent(oracle.dacf.control.NavigatingEvent)
public final void dataItemValueChanged(javax.infobus.DataItemValueChangedEvent event)
A reference to the data item that changed can be obtained from the event.
dataItemValueChanged
in interface javax.infobus.DataItemChangeListener
event
- Contains change information.DataItemChangeListener.dataItemValueChanged(javax.infobus.DataItemValueChangedEvent)
public final void dataItemAdded(javax.infobus.DataItemAddedEvent event)
A reference to the data item that was added, and a reference to the one that gained it, can be obtained from the event.
dataItemAdded
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the addition.DataItemChangeListener.dataItemAdded(javax.infobus.DataItemAddedEvent)
public final void dataItemDeleted(javax.infobus.DataItemDeletedEvent event)
A reference to the data item that was deleted, and a reference to the one that lost it, can be obtained from the event.
dataItemDeleted
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the deletion.DataItemChangeListener.dataItemDeleted(javax.infobus.DataItemDeletedEvent)
public final void dataItemRevoked(javax.infobus.DataItemRevokedEvent event)
A reference to the data item that was revoked can be obtained from the event.
dataItemRevoked
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the revoked data.DataItemChangeListener.dataItemRevoked(javax.infobus.DataItemRevokedEvent)
public final void rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
A reference to the rowset data item can be obtained from the event.
rowsetCursorMoved
in interface javax.infobus.DataItemChangeListener
event
- Contains details of the cursor move.DataItemChangeListener.rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent)
protected void installColumnPropertiesPopupMenu()
protected void uninstallColumnPropertiesPopupMenu()
protected javax.swing.JScrollPane createScrollPane()
public void setOpaque(boolean isOpaque)
public void setToolTipText(java.lang.String text)
public void setAutoCreateColumnsFromModel(boolean createColumns)
public boolean getAutoCreateColumnsFromModel()
public void setAutoResizeMode(int mode)
public int getAutoResizeMode()
public void setCellEditor(javax.swing.table.TableCellEditor anEditor)
public javax.swing.table.TableCellEditor getCellEditor(int row, int column)
public void setCellSelectionEnabled(boolean flag)
public boolean getCellSelectionEnabled()
public void setColumnModel(javax.swing.table.TableColumnModel newModel)
public javax.swing.table.TableColumnModel getColumnModel()
public void setColumnSelectionAllowed(boolean flag)
public boolean getColumnSelectionAllowed()
public void setEditingColumn(int aColumn)
public int getEditingColumn()
public void setEditingRow(int aRow)
public int getEditingRow()
public final void setGridColor(java.awt.Color gridColor)
public final java.awt.Color getGridColor()
public void setIntercellSpacing(java.awt.Dimension newSpacing)
public java.awt.Dimension getIntercellSpacing()
public void setModel(javax.swing.table.TableModel newModel)
public javax.swing.table.TableModel getModel()
public void setPreferredScrollableViewportSize(java.awt.Dimension size)
public java.awt.Dimension getPreferredScrollableViewportSize()
public void setRowHeight(int newHeight)
public int getRowHeight()
public void setRowMargin(int rowMargin)
public int getRowMargin()
public void setRowSelectionAllowed(boolean flag)
public boolean getRowSelectionAllowed()
public final void setSelectionBackground(java.awt.Color color)
setFocusedSelectionBackground(java.awt.Color)
,
setUnfocusedSelectionBackground(java.awt.Color)
public final java.awt.Color getSelectionBackground()
getFocusedSelectionBackground()
,
getUnfocusedSelectionBackground()
public final void setSelectionForeground(java.awt.Color color)
setFocusedSelectionForeground(java.awt.Color)
,
setUnfocusedSelectionForeground(java.awt.Color)
public final java.awt.Color getSelectionForeground()
getFocusedSelectionForeground()
,
getUnfocusedSelectionForeground()
public void setSelectionModel(javax.swing.ListSelectionModel newModel)
public javax.swing.ListSelectionModel getSelectionModel()
public final void setShowHorizontalLines(boolean showLines)
public final boolean getShowHorizontalLines()
public final void setShowVerticalLines(boolean showLines)
public final boolean getShowVerticalLines()
public void setTableHeader(javax.swing.table.JTableHeader newHeader)
public javax.swing.table.JTableHeader getTableHeader()
public int getVisibleRowCount()
public void showVerticalScrollBar(boolean bShow)
protected void _displayLOV(int columnIndex)
protected void _displayLOV(java.lang.String columnDataItemName)
public void setShowColumnPropertiesPopupMenu(boolean showMenu)
showMenu
- true if the column show/hide properties menu
should be displayedpublic boolean isShowColumnPropertiesPopupMenu()
protected java.lang.String getColumnDataItemName(int columnIndex)
protected oracle.dacf.control.swing.ColumnPropertiesPopupMenu _getPopupMenu()
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.