|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.control.NavigationManager
This class arbitrates the focus changes between Data aware controls Control. A control must ask the NavigationManager if it can receive focus or not.
NavigationManager keeps track of the currently focused control. Upon receiving a focus change request makes use of the ValidationManager to validate the dataitem bound to the currently focused control. If the dataitem is valid the request is approved else it is rejected.
Also, If the request is approved the requesting control is marked as current else focus is redirected to the current control. The NavigationManager is implemented as a Singleton and the clients of this class must use thegetNavigationManager()
method to get an
instance.
ValidationManager
Field Summary | |
protected static java.lang.String |
ERR_PROD_CODE
|
Constructor Summary | |
protected |
NavigationManager()
NavigationManager is implemented as a singleton and cannot be instantiated directly. |
Method Summary | |
void |
addCurrencyListener(Control control)
Adds a CurrencyListern as a listener on all CurrencyChanged events. |
void |
displayLOV(java.lang.String toItemName)
display LOV if there is an LOV property set on the data object |
void |
focusedIsInvalid(boolean isInvalid)
Lets the NavigationManager know that the currently focused control is invalid and all requests to change focus should be ignored. |
int |
getChangeLevel(Control srcControl,
Control desControl)
|
boolean |
getDisableLOV()
should the LOV dialog be displayed on navigation by the Navigation manager |
Control |
getFocusedControl()
Returns the currently focused control |
java.lang.String |
getFocusedDataItemName()
Returns the name of the DataItem associated with the focused control |
static NavigationManager |
getNavigationManager()
Gets an instance of the NavigationManager. |
Control |
getTargetControl()
Returns the control requesting a focus change |
java.lang.String |
getTargetDataItemName()
Returns the name of the DataItem associated with the target control. |
void |
removeCurrencyListener(Control control)
Removes a Control as a listener on all CurrencyChanged events. |
void |
setDisableLOV(boolean disableLOV)
This property controls whether the Navigation manager display the LOV dialog or not. |
boolean |
validateFocusChange(Control newFocus)
This method validates a focus change request from a control |
boolean |
validateFocusChange(Control container,
java.lang.String fromItemName,
java.lang.String toItemName,
boolean rowChange)
This method allows a Container to request a focus change amongst it's child controls. |
boolean |
validateFocusedControl()
Validation the current focused control. |
boolean |
validateFocusedControl(int changeLevel)
Validation the current focused control. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String ERR_PROD_CODE
Constructor Detail |
protected NavigationManager()
getNavigationManager()
Method Detail |
public boolean validateFocusedControl()
Validation is performed only at the Attribute level. This means that only the Attribute validation listeners are called.
public boolean validateFocusedControl(int changeLevel)
Validation is performed only upto and including specified level. The allowed values are:
public void focusedIsInvalid(boolean isInvalid)
public boolean validateFocusChange(Control newFocus)
newFocus
- Control requesting to receive focus.
public boolean validateFocusChange(Control container, java.lang.String fromItemName, java.lang.String toItemName, boolean rowChange)
Containers are responsible for managing the display of LOVs after the the tow currency has been changed.
container
- Composite control requesting focus changefromItemName
- Name of dataItem bound to child loosing the focustoItemName
- Name of dataItem bound to child receiving the focusrowChange
- true if the source and target child are
currently bound to a different row otherwise
false
public static NavigationManager getNavigationManager()
public Control getTargetControl()
public java.lang.String getTargetDataItemName()
public Control getFocusedControl()
public java.lang.String getFocusedDataItemName()
public void addCurrencyListener(Control control)
control
- An instance of Control that inplements CurrencyListenerremoveCurrencyListener(Control control)
public void removeCurrencyListener(Control control)
control
- An instance of Control that inplements CurrencyListeneraddCurrencyListener(Control control)
public void setDisableLOV(boolean disableLOV)
public boolean getDisableLOV()
public void displayLOV(java.lang.String toItemName)
toItemName
- - check LOV property on this data objectpublic int getChangeLevel(Control srcControl, Control desControl)
|
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.