|
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.StatusBarControl
StatusBar
The StatusBar Control can display the status of a rowset.
When a dataItemName is specified, it tracks the status of the rowset it is bound to, otherwise, it tracks the status of the DAC control (Rowset) which currently has the focus.
The StatusBar has six indicators:
The default display state for each indicator is:
Nested Class Summary | |
class |
StatusBarControl.StatusBarLabelControl
|
class |
StatusBarControl.StatusBarProgressControl
A derivative of JProgressBar that listens to three DataItems. |
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 | |
static java.lang.String |
DEFAULT_WORKING_ICON
|
static java.lang.String |
WORKING_ICON_1
|
static java.lang.String |
WORKING_ICON_2
|
static java.lang.String |
WORKING_ICON_3
|
static java.lang.String |
WORKING_ICON_4
|
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 | |
StatusBarControl()
Create a new StatusBarControl. |
Method Summary | |
protected java.lang.String |
_getActiveRowset()
Get the active rowset. |
protected void |
_updateIndicators()
|
protected void |
_updateIndicatorValues()
|
void |
activityStarted(oracle.dacf.activity.ActivityEvent event)
This method is called when a particular activity is started |
void |
activityStopped(oracle.dacf.activity.ActivityEvent event)
This method is called when a particular activity is stopped |
void |
addNavigatedListener(NavigatedListener listener)
This method is a no-op; it has no effect |
void |
addNavigatingListener(NavigatingListener listener)
This method is a no-op; it has no effect |
void |
currencyChanged(CurrencyChangedEvent e)
This method is used to track which control on the screen gets focus |
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. |
java.awt.Component |
getComponent()
Returns the AWT component associated with this control. |
java.lang.String |
getCurrentRowFormatString()
Returns the format string for formatting the CurrentRow status label. |
Formatter |
getCurrentRowFormatter()
Returns the formatter for formatting the CurrentRow status label. |
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. |
java.awt.Font |
getFont()
StatusBarControl override. |
boolean |
getHasCurrentRow()
Indicates whether the Current Row indicator is shown. |
boolean |
getHasHighWaterMark()
Indicates whether the High Water Mark indicator is shown. |
boolean |
getHasMessageArea()
Reports whether the Message Area is shown. |
boolean |
getHasModifiedFlag()
Reports whether the modified flag is shown. |
boolean |
getHasPercentDone()
Indicates whether the Percent Done indicator is shown. |
boolean |
getHasRowCount()
Indicates whether the Row Count indicator is shown. |
java.lang.String |
getHighWaterMarkFormatString()
Returns the format string for formatting the HighWaterMark status label. |
Formatter |
getHighWaterMarkFormatter()
Returns the formatter for formatting the HighWaterMark status label. |
javax.swing.border.Border |
getIndicatorBorderStyle()
Returns the border sytle used by the status bar's indicators. |
java.lang.String |
getInfoBusName()
Returns the name of the InfoBus this control is connected to. |
java.awt.LayoutManager |
getLayout()
Returns the LayoutManger used by the StatusBarControl. |
java.awt.Dimension |
getMaximumSize()
StatusBarControl override. |
java.lang.String |
getMessageAreaFormatString()
Returns the format string for formatting the MessageArea status label. |
Formatter |
getMessageAreaFormatter()
Returns the formatter for formatting the MessageArea status label. |
java.awt.Dimension |
getMinimumSize()
StatusBarControl override. |
java.lang.String |
getModifiedFlagFormatString()
Returns the format string for formatting the ModifiedFlag status label. |
Formatter |
getModifiedFlagFormatter()
Returns the formatter for formatting the ModifiedFlag status label. |
java.lang.String |
getPercentDoneFormatString()
Returns the format string for formatting the PercentDone status label. |
Formatter |
getPercentDoneFormatter()
Returns the formatter for formatting the PercentDone status label. |
java.awt.Dimension |
getPreferredSize()
StatusBarControl override. |
java.awt.Dimension |
getProgressBarSize()
Returns the progress indicator's size. |
java.lang.String |
getRowCountFormatString()
Returns the format string for formatting the RowCount status label. |
Formatter |
getRowCountFormatter()
Returns the formatter for formatting the RowCount status label. |
protected javax.swing.Icon |
getWorkingIcon()
Returns the actual Icon that will be displayed when a long running activity begins. |
java.lang.String |
getWorkingIconFileName()
Gets the name of the icon shown when a long-running activity starts. |
boolean |
hasWorkingIcon()
Inquires whether the working icon is shown. |
protected void |
hideWorkingIcon()
A "hook" so that subclasses can change how the working icon is hidden. |
boolean |
isFocusValidated()
Determines whether focus into this control causes validation to occur. |
void |
processNavigatedEvent(NavigatedEvent event)
This method is a no-op; it has no effect |
void |
processNavigatingEvent(NavigatingEvent event)
This method is a no-op in that it has no effect |
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)
This method is a no-op; it has no effect |
void |
removeNavigatingListener(NavigatingListener listener)
This method is a no-op; it has no effect |
void |
rowsetCursorMoved(javax.infobus.RowsetCursorMovedEvent event)
Indicates that the cursor for the bound RowsetAccess data item has changed rows. |
void |
setBackground(java.awt.Color c)
StatusBarControl override. |
void |
setCurrentRowFormatString(java.lang.String currentRowFormatString)
Sets the format string for formatting the CurrentRow status label. |
void |
setCurrentRowFormatter(Formatter currentRowFormatter)
Sets the formatter for formatting the CurrentRow status label. |
void |
setDataItemName(java.lang.String dataItemName)
Sets the name of the InfoBus DataItem this control is bound to. |
void |
setEnabled(boolean b)
An override of java.awt.Component.setEnabled. |
void |
setFocusValidated(boolean focusValidated)
This method is a no-op; it has no effect |
void |
setFont(java.awt.Font nuFont)
StatusBarControl override. |
void |
setForeground(java.awt.Color c)
StatusBarControl override. |
void |
setHasCurrentRow(boolean showIt)
Determines whether the current row indicator is visible. |
void |
setHasHighWaterMark(boolean showIt)
Determines whether the High Water Mark indicator is visible. |
void |
setHasMessageArea(boolean showIt)
Determines whether the message are is visible. |
void |
setHasModifiedFlag(boolean showIt)
Determines whether the modified flag is visible. |
void |
setHasPercentDone(boolean showIt)
Determines whether the percent done indicator is visible. |
void |
setHasRowCount(boolean showIt)
Determines whether the row count indicator is visible. |
void |
setHighWaterMarkFormatString(java.lang.String highWaterMarkFormatString)
Sets the format string for formatting the HighWaterMark status label. |
void |
setHighWaterMarkFormatter(Formatter highWaterMarkFormatter)
Sets the formatter for formatting the HighWaterMark status label. |
void |
setIndicatorBorderStyle(javax.swing.border.Border indicatorBorderStyle)
Sets the border sytle for the status bar's indicators. |
void |
setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this control is connected to. |
void |
setLayout(java.awt.LayoutManager l)
An override of the setLayout() inherited from java.awt.Container.
|
void |
setMaximumSize(java.awt.Dimension dim)
|
void |
setMessageAreaFormatString(java.lang.String messageAreaFormatString)
Sets the format string for formatting the MessageArea status label. |
void |
setMessageAreaFormatter(Formatter messageAreaFormatter)
Sets the formatter for formatting the MessageArea status label. |
void |
setMinimumSize(java.awt.Dimension dim)
|
void |
setModifiedFlagFormatString(java.lang.String modifiedFlagFormatString)
Sets the format string for formatting the ModifiedFlag status label. |
void |
setModifiedFlagFormatter(Formatter modifiedFlagFormatter)
Sets the formatter for formatting the ModifiedFlag status label. |
void |
setPercentDoneFormatString(java.lang.String percentDoneFormatString)
Sets the format string for formatting the PercentDone status label. |
void |
setPercentDoneFormatter(Formatter percentDoneFormatter)
Sets the formatter for formatting the PercentDone status label. |
void |
setPreferredSize(java.awt.Dimension dim)
|
void |
setProgressBarSize(java.awt.Dimension progressBarSize)
Sets the progress indicator's size. |
void |
setRowCountFormatString(java.lang.String rowCountFormatString)
Sets the format string for formatting the RowCount status label. |
void |
setRowCountFormatter(Formatter rowCountFormatter)
Sets the formatter for formatting the RowCount status label. |
void |
setShowWorkingIcon(boolean hasWorkingIcon)
Determines whether or not the working icon is shown. |
void |
setWorkingIconFileName(java.lang.String workingIconFileName)
Sets the name of the icon shown when a long-running activity starts. |
protected void |
showWorkingIcon()
A "hook" so that subclasses can change how the working icon is displayed. |
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, getNextFocusableComponent, 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, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, 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, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, 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 |
public static final java.lang.String WORKING_ICON_1
public static final java.lang.String WORKING_ICON_2
public static final java.lang.String WORKING_ICON_3
public static final java.lang.String WORKING_ICON_4
public static final java.lang.String DEFAULT_WORKING_ICON
Constructor Detail |
public StatusBarControl()
Method Detail |
public java.awt.LayoutManager getLayout()
The StatusBarControl only uses a GridBag layout manager defined in its constructor.
public void setLayout(java.awt.LayoutManager l)
l
- a LayoutManger that will be ignored by the StatusBarControl.public void setProgressBarSize(java.awt.Dimension progressBarSize)
progressBarSize
- the desired size of the progress indicatorgetProgressBarSize()
public java.awt.Dimension getProgressBarSize()
setProgressBarSize(Dimension progressBarSize)
public void setIndicatorBorderStyle(javax.swing.border.Border indicatorBorderStyle)
indicatorBorderStyle
- the border sytle for the status bar's
indicatorsgetIndicatorBorderStyle()
public javax.swing.border.Border getIndicatorBorderStyle()
setIndicatorBorderStyle(Border indicatorBorderStyle)
public void setFont(java.awt.Font nuFont)
Sets the font for the status bar and all contained conponents.
nuFont
- the font to use for the status bar and all contained
componentsgetFont()
public java.awt.Font getFont()
Returns the font for the status bar and all contained conponents.
getFont
in interface java.awt.MenuContainer
setFont(Font nuFont)
public void setForeground(java.awt.Color c)
c
- The foreground color for the StatusBarpublic void setBackground(java.awt.Color c)
c
- The background color for the StatusBarpublic java.awt.Dimension getMaximumSize()
public void setMaximumSize(java.awt.Dimension dim)
public java.awt.Dimension getMinimumSize()
public void setMinimumSize(java.awt.Dimension dim)
public java.awt.Dimension getPreferredSize()
public void setPreferredSize(java.awt.Dimension dim)
public void setCurrentRowFormatter(Formatter currentRowFormatter)
currentRowFormatter
- formatter for formatting the CurrentRow
status labelgetCurrentRowFormatter()
public Formatter getCurrentRowFormatter()
setCurrentRowFormatter(Formatter currentRowFormatter)
public void setHighWaterMarkFormatter(Formatter highWaterMarkFormatter)
highWaterMarkFormatter
- formatter for formatting the HighWaterMark
status labelgetHighWaterMarkFormatter()
public Formatter getHighWaterMarkFormatter()
setHighWaterMarkFormatter(Formatter highWaterMarkFormatter)
public void setRowCountFormatter(Formatter rowCountFormatter)
rowCountFormatter
- formatter for formatting the RowCount
status labelgetRowCountFormatter()
public Formatter getRowCountFormatter()
setRowCountFormatter(Formatter RowCountFormatter)
public void setModifiedFlagFormatter(Formatter modifiedFlagFormatter)
modifiedFlagFormatter
- formatter for formatting the ModifiedFlag
status labelgetModifiedFlagFormatter()
public Formatter getModifiedFlagFormatter()
setModifiedFlagFormatter(Formatter ModifiedFlagFormatter)
public void setMessageAreaFormatter(Formatter messageAreaFormatter)
messageAreaFormatter
- formatter for formatting the MessageArea
status labelgetMessageAreaFormatter()
public Formatter getMessageAreaFormatter()
setMessageAreaFormatter(Formatter messageAreaFormatter)
public void setPercentDoneFormatter(Formatter percentDoneFormatter)
percentDoneFormatter
- formatter for formatting the PercentDone
status labelgetPercentDoneFormatter()
public Formatter getPercentDoneFormatter()
setPercentDoneFormatter(Formatter percentDoneFormatter)
public void setCurrentRowFormatString(java.lang.String currentRowFormatString)
currentRowFormatString
- format string for formatting the
CurrentRow status labelgetCurrentRowFormatString()
public java.lang.String getCurrentRowFormatString()
setCurrentRowFormatString(String currentRowFormatString)
public void setHighWaterMarkFormatString(java.lang.String highWaterMarkFormatString)
highWaterMarkFormatString
- format string for formatting the
HighWaterMark status labelgetHighWaterMarkFormatString()
public java.lang.String getHighWaterMarkFormatString()
setHighWaterMarkFormatString(String highWaterMarkFormatString)
public void setRowCountFormatString(java.lang.String rowCountFormatString)
rowCountFormatString
- format string for formatting the RowCount
status labelgetRowCountFormatString()
public java.lang.String getRowCountFormatString()
setRowCountFormatString(String RowCountFormatString)
public void setModifiedFlagFormatString(java.lang.String modifiedFlagFormatString)
modifiedFlagFormatString
- format string for formatting the
ModifiedFlag status labelgetModifiedFlagFormatString()
public java.lang.String getModifiedFlagFormatString()
setModifiedFlagFormatString(String ModifiedFlagFormatString)
public void setMessageAreaFormatString(java.lang.String messageAreaFormatString)
messageAreaFormatString
- format string for formatting the
MessageArea status labelgetMessageAreaFormatString()
public java.lang.String getMessageAreaFormatString()
setMessageAreaFormatString(String messageAreaFormatString)
public void setPercentDoneFormatString(java.lang.String percentDoneFormatString)
percentDoneFormatString
- format string for formatting the
PercentDone status labelgetPercentDoneFormatString()
public java.lang.String getPercentDoneFormatString()
setPercentDoneFormatString(String percentDoneFormatString)
public boolean getHasModifiedFlag()
A status reporting method that informs the caller whether or not the message area of the StatusBar is displayed.
setHasModifiedFlag(boolean showIt)
public void setHasModifiedFlag(boolean showIt)
Allows the caller to show or hide the message area in the StatusBar.
showIt
- If TRUE then the modified flag will be shown.getHasModifiedFlag()
public boolean getHasMessageArea()
A status reporting method that informs the caller whether or not the message area of the StatusBar is displayed.
setHasMessageArea(boolean showIt)
public void setHasMessageArea(boolean showIt)
Allows the caller to show or hide the message area in the StatusBar.
showIt
- If TRUE then the message area will be shown.getHasMessageArea()
public boolean getHasCurrentRow()
A status reporting method that informs the caller whether or not the Current Row indicator on the StatusBar is displayed.
setHasCurrentRow(boolean showIt)
public void setHasCurrentRow(boolean showIt)
Allows the caller to show or hide the current row indicator in the StatusBar.
showIt
- if TRUE then the current row indicator is showngetHasCurrentRow()
public boolean getHasHighWaterMark()
A status reporting method that informs the caller whether or not the High Water Mark indicator on the StatusBar is displayed.
setHasHighWaterMark(boolean showIt)
public void setHasHighWaterMark(boolean showIt)
Allows the caller to show or hide the High Water Mark indicator in the StatusBar.
showIt
- TRUE to show the High Water Mark indicatorgetHasHighWaterMark()
public boolean getHasRowCount()
A status reporting method that informs the caller whether or not the Row Count indicator on the StatusBar is displayed.
setHasRowCount(boolean showIt)
public void setHasRowCount(boolean showIt)
Allows the caller to show or hide the row count indicator in the StatusBar.
showIt
- if TRUE then the row count indicator is showngetHasRowCount()
public boolean getHasPercentDone()
A status reporting method that informs the caller whether or not the Percent Done indicator on the StatusBar is displayed.
setHasPercentDone(boolean showIt)
public void setHasPercentDone(boolean showIt)
Allows the caller to show or hide the percent done indicator in the StatusBar.
showIt
- if TRUE then the percent done indicator is showngetHasPercentDone()
public void setShowWorkingIcon(boolean hasWorkingIcon)
hasWorkingIcon()
public boolean hasWorkingIcon()
setShowWorkingIcon(boolean showWorkingIcon)
public void setWorkingIconFileName(java.lang.String workingIconFileName)
This method selects the icon that is displayed when the ActivityMonitor notifies the StatusBar that a long running activity has started.
workingIconFileName
- the name of the icon shown when a
long-running activity startsgetWorkingIconFileName()
,
ActivityMonitor
public java.lang.String getWorkingIconFileName()
This method returns the icon that is displayed when the ActivityMonitor notifies the StatusBar that a long running activity has started.
setWorkingIconFileName(String workingIconFileName)
protected final javax.swing.Icon getWorkingIcon()
This method is intended to be used by subclasses that implement overrides to showWorkingIcon() and hideWorkingIcon().
showWorkingIcon()
,
hideWorkingIcon()
,
setWorkingIconFileName(String workingIconFileName)
,
getWorkingIconFileName()
protected void showWorkingIcon()
This method will be called when the working icon is to be displayed.
protected void hideWorkingIcon()
This method will be called when the working icon is to be hidden.
public void releaseResources(InfoBusManagerReleaseEvent e)
InfoBusManagerListener
releaseResources
in interface InfoBusManagerListener
public final void activityStarted(oracle.dacf.activity.ActivityEvent event)
activityStarted
in interface oracle.dacf.activity.ActivityListener
event
- An ActivityEvent object describing the activity being
startedActivityMonitor.activityStarted(java.lang.String)
public final void activityStopped(oracle.dacf.activity.ActivityEvent event)
activityStopped
in interface oracle.dacf.activity.ActivityListener
event
- An ActivityEvent object describing the activity being
stoppedActivityMonitor.activityStopped(int)
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
StatusBarControl.StatusBarLabelControl.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
,
StatusBarControl.StatusBarLabelControl.setInfoBusName(java.lang.String)
public final java.lang.String getDataItemName()
getDataItemName
in interface Control
getDataItem()
,
StatusBarControl.StatusBarLabelControl.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.
The StatusBar will now track the status of this rowset indicated by the dataItemName
setDataItemName
in interface Control
dataItemName
- The name of the DataItem to bind to.getDataItem()
,
StatusBarControl.StatusBarLabelControl.setDataItemName(java.lang.String)
public final java.lang.Object getDataItem()
getDataItem
in interface Control
StatusBarControl.StatusBarLabelControl.getDataItem()
public final 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).StatusBarControl.StatusBarLabelControl.dataItemChanged(java.lang.Object, java.lang.Object)
public final java.awt.Component getComponent()
getComponent
in interface Control
StatusBarControl.StatusBarLabelControl.getComponent()
public final boolean isFocusValidated()
isFocusValidated
in interface Control
StatusBarControl.StatusBarLabelControl.isFocusValidated()
public final void setFocusValidated(boolean focusValidated)
setFocusValidated
in interface Control
focusValidated
- If true, focus into this control will
cause validation to occur.ControlSupport.setFocusValidated(boolean)
public final void addNavigatedListener(NavigatedListener listener)
addNavigatedListener
in interface Control
listener
- The listener to add.ControlSupport.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void removeNavigatedListener(NavigatedListener listener)
removeNavigatedListener
in interface Control
listener
- The listener to remove.ControlSupport.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void processNavigatedEvent(NavigatedEvent event)
processNavigatedEvent
in interface Control
event
- The navigated event.ControlSupport.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
public final void addNavigatingListener(NavigatingListener listener)
addNavigatingListener
in interface Control
listener
- The listener to add.ControlSupport.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void removeNavigatingListener(NavigatingListener listener)
removeNavigatingListener
in interface Control
listener
- The listener to remove.ControlSupport.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public final void processNavigatingEvent(NavigatingEvent event) throws NavigatingException
processNavigatingEvent
in interface Control
event
- The navigating event.
NavigatingException
- Not relevant in this situationControlSupport.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
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.
Has no effect on the StatusBar.
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.
Has no effect on the StatusBar.
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)
public void currencyChanged(CurrencyChangedEvent e)
currencyChanged
in interface CurrencyListener
protected java.lang.String _getActiveRowset()
protected void _updateIndicators()
protected void _updateIndicatorValues()
|
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.