|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All data-aware controls that plug into the runtime framework must implement this interface.
The ControlSupport class provides default implementations for all of the methods in this interface, except for the following methods:
Field Summary | |
static java.lang.String |
DEFAULT_INFOBUS_NAME
The name of the default InfoBus that controls will connect to if they do not have a different InfoBus specified via their setInfoBusName method. |
static java.lang.String |
EVENT_PROPERTY_ROW
The event property for the initial row affected by an event. |
static java.lang.String |
EVENT_PROPERTY_ROW_CHANGE
|
static java.lang.String |
EVENT_PROPERTY_ROW_COUNT
The event property for the number of rows affected by an event. |
static java.lang.String |
EVENT_PROPERTY_VIEW_CHANGE
|
static java.lang.String |
EVENT_PROPERTY_VIEW_REFRESHED
|
static java.lang.String |
EVENT_PROPERTY_VIEW_SCROLLED
|
static int |
EXCLUDE
attribute to indicate a column should not be included. |
static int |
HIDE
attribute to indicate a column should be hidden., control is initially hidden. |
static int |
SHOW
attribute to indicate a column should be displayed., when the control is initially displayed. |
Method Summary | |
void |
addNavigatedListener(NavigatedListener listener)
Adds a navigated listener to this control. |
void |
addNavigatingListener(NavigatingListener listener)
Adds a navigating listener to this control. |
void |
dataItemChanged(java.lang.Object oldDataItem,
java.lang.Object newDataItem)
Notifies the control that the bound InfoBus DataItem has changed. |
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. |
java.lang.String |
getInfoBusName()
Returns the name of the InfoBus this control is connected to. |
boolean |
isFocusValidated()
Determines whether this control causes validation upon gaining focus. |
void |
processNavigatedEvent(NavigatedEvent event)
Processes a navigated event for this control. |
void |
processNavigatingEvent(NavigatingEvent event)
Processes a navigating event for this control. |
void |
removeNavigatedListener(NavigatedListener listener)
Removes a navigated listener from this control. |
void |
removeNavigatingListener(NavigatingListener listener)
Removes a navigating listener from this control. |
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)
Sets whether focus into this control causes validation to occur. |
void |
setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this control is connected to. |
Methods inherited from interface javax.infobus.DataItemChangeListener |
dataItemAdded, dataItemDeleted, dataItemRevoked, dataItemValueChanged, rowsetCursorMoved |
Field Detail |
public static final java.lang.String DEFAULT_INFOBUS_NAME
setInfoBusName(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String EVENT_PROPERTY_ROW
DataItemChangeEvent.getProperty(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String EVENT_PROPERTY_ROW_COUNT
DataItemChangeEvent.getProperty(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String EVENT_PROPERTY_VIEW_CHANGE
public static final java.lang.String EVENT_PROPERTY_ROW_CHANGE
public static final java.lang.String EVENT_PROPERTY_VIEW_SCROLLED
public static final java.lang.String EVENT_PROPERTY_VIEW_REFRESHED
public static final int SHOW
setColumnDisplayAttribute
,
Constant Field Valuespublic static final int HIDE
setColumnDisplayAttribute
,
Constant Field Valuespublic static final int EXCLUDE
setColumnDisplayAttribute
,
Constant Field ValuesMethod Detail |
public void setEnabled(boolean b)
A control implements this method and delegates the call to ControlSupport.
b
- boolean flag indicating whether the control is enabledpublic java.lang.String getInfoBusName()
Most controls should delegate this method to ControlSupport.
ControlSupport.getInfoBusName()
public void setInfoBusName(java.lang.String infoBusName)
By default, the control is connected to the default InfoBus, named 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.
Most controls should delegate this method to ControlSupport.
infoBusName
- The name of the InfoBus to connect to.DEFAULT_INFOBUS_NAME
,
ControlSupport.setInfoBusName(java.lang.String)
public java.lang.String getDataItemName()
Most controls should delegate this method to ControlSupport.
getDataItem()
,
ControlSupport.getDataItemName()
public 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.
Most controls should delegate this method to ControlSupport.
dataItemName
- The name of the DataItem to bind to.getDataItem()
,
ControlSupport.setDataItemName(java.lang.String)
public java.lang.Object getDataItem()
Most controls should delegate this method to ControlSupport.
ControlSupport.getDataItem()
public void dataItemChanged(java.lang.Object oldDataItem, java.lang.Object newDataItem)
The control can safely ignore this notification.
oldDataItem
- The formerly bound DataItem (can be null).newDataItem
- The newly bound DataItem (can be null).public java.awt.Component getComponent()
public boolean isFocusValidated()
Most controls should delegate this method to ControlSupport.
ControlSupport.isFocusValidated()
public void setFocusValidated(boolean focusValidated)
Most controls should delegate this method to ControlSupport.
focusValidated
- If true, focus into this control will
cause validation to occur.ControlSupport.setFocusValidated(boolean)
public void addNavigatedListener(NavigatedListener listener)
The listener will be notified of NavigateIn and NavigateOut events.
Most controls should delegate this method to ControlSupport.
listener
- The listener to add.ControlSupport.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public void removeNavigatedListener(NavigatedListener listener)
Most controls should delegate this method to ControlSupport.
listener
- The listener to remove.ControlSupport.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public void processNavigatedEvent(NavigatedEvent event)
This method is for use by the NavigationManager only.
Most controls should delegate this method to ControlSupport.
event
- The navigated event.ControlSupport.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
public void addNavigatingListener(NavigatingListener listener)
The listener will be notified of NavigateIn and NavigateOut events.
Most controls should delegate this method to ControlSupport.
listener
- The listener to add.ControlSupport.addNavigatedListener(oracle.dacf.control.NavigatedListener)
public void removeNavigatingListener(NavigatingListener listener)
Most controls should delegate this method to ControlSupport.
listener
- The listener to remove.ControlSupport.removeNavigatedListener(oracle.dacf.control.NavigatedListener)
public void processNavigatingEvent(NavigatingEvent event) throws NavigatingException
This method is for use by the NavigatedManager only.
Most controls should delegate this method to ControlSupport.
event
- The navigating event.
NavigatingException
- If the navigation is redirected to a
different control.ControlSupport.processNavigatedEvent(oracle.dacf.control.NavigatedEvent)
|
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.