|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.desktop.DSENavigationController
This class takes charge of controlling all the navigations of a business function.A DSENavigationController is defined for each Task.This class keeps information of the views and navigates among them depending on the DSECoordinated events received.
Field Summary | |
static java.lang.String |
CTXUSED_ACTIVE
identifier of the context of the active view |
static java.lang.String |
CTXUSED_PARENT
identifier of the context of the parent active view |
static java.lang.String |
CTXUSED_PROCESS
identifier of the context of the process |
protected int |
NAV_CHILDREN
identifier of children navigation |
protected int |
NAV_NONE
identifier of none navigation |
protected int |
NAV_PEER
identifier of the peer navigation |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Constructor Summary | |
DSENavigationController()
This constructor creates a DSENavigationController object. |
|
DSENavigationController(java.lang.String aName)
This constructor creates a DSENavigationController object. |
Method Summary | |
void |
activateView(java.lang.String viewId)
Activate the view passed as parameter.This view will be the active view of the NavigationArea and will nave the focus. |
void |
addCoordinatedEventListener(CoordinatedEventListener newListener)
Adds a CoordinatedEventListener. |
void |
cancel(java.lang.String viewId)
This method cancels all the operations done until now of the navigation, closing the panels of the navigation until the parent view if exists. |
void |
close()
This method close one to one all the views opened of this task |
void |
closeNavigation(java.lang.String viewId,
DataMapperFormat mapper)
This method close all the navigation of the panels and if an closeMapFormat is declared maps the value to the active view. |
void |
closeNavigation(java.lang.String viewId,
java.lang.String closeMapFormat)
This method close all the navigation of the panels and if an closeMapFormat is declared maps the value to the active view. |
void |
closeView(java.lang.String id)
This method close the view passed as parameter. |
void |
deActivateView(java.lang.String viewId)
this method deactivate the view passed as parameter. |
void |
deRegister(java.lang.String viewId)
This method removes the entry of this view to the View registry. |
void |
fireCoordinationEvent()
Fires a CoordinationEvent. |
void |
fireCoordinationEvent(DSECoordinationEvent event)
Fires a CoordinationEvent. |
java.lang.String |
getActiveView()
returns the viewId associated to the active view. |
java.util.Vector |
getChilds(java.lang.String viewId)
returns a list of the chidren associated to the viewId |
static java.awt.Component |
getFirstFocusableComponent(java.awt.Container c)
Gets the first component inside the task that can accept the focus. |
java.lang.String |
getKey()
This method returns the last element of the queue of views. |
SpInternalFrame |
getNavigationArea()
returns the Container of the view. |
java.lang.String |
getNextView(java.lang.String viewId)
returns the viewId of the next view associated to this id is. |
java.lang.String |
getParent(java.lang.String viewId)
returns the id of the parent view associated to the vieId |
java.util.Vector |
getPeers(java.lang.String viewId)
returns the peers associated to the viewId |
java.lang.String |
getPreviousView(java.lang.String viewId)
returns the viewId of the previous view associated to this id. |
Processor |
getProcess()
This method returns the process associated to this NavigationController. |
javax.swing.JScrollPane |
getScrollPane()
This method returns the scrollpane associated to the navigationArea. |
CoordinatedPanel |
getViewInstance(java.lang.String viewId)
This method return the instance of the view passed as parameter. |
void |
handleDSECoordinationEvent(DSECoordinationEvent event)
Contains the appropriate actions to be executed when DSECoordinationEvent has been triggered. |
boolean |
isChildren(java.lang.String viewId)
returns if the view associated to this id has children |
boolean |
isPeer(java.lang.String viewId)
returns if the view associated to this id is a peer of another view. |
void |
modifyNavigation(java.lang.String viewId,
boolean close,
boolean rollback,
DataMapperFormat mapper)
This method, depending on the parameters, closes, rollbacks, or maps the diferent views of the navigation |
void |
nextView(java.lang.String id,
ClientOperation operation,
int navigation,
java.lang.String linkContextTo,
java.lang.String inputPathFormat)
This method shows the next view and activates this,and stores the next and previous id of the views |
void |
nextView(java.lang.String id,
java.lang.String source,
ClientOperation operation,
int navigation,
java.lang.String linkContextTo,
java.lang.String inputPathFormat)
This method shows the next view and activates this,and stores the next and previous id of the views |
void |
openView(java.lang.String viewId)
This method opens a view and activates this,and stores all the information about the views |
void |
openView(java.lang.String viewId,
ClientOperation op,
java.lang.Boolean execOp)
This method open a view and activates this,and stores all information related to this view |
void |
openView(java.lang.String viewId,
ClientOperation op,
int navigation,
java.lang.String linkContextTo,
java.lang.String inputPathFormat)
This method open a view and activates this,and stores all information related to this view |
void |
openView(java.lang.String viewId,
java.lang.String viewSource,
ClientOperation op,
int navigation,
java.lang.String linkContextTo,
DataMapperFormat mapper)
This method open a view and activates this,and stores all information related to this view |
void |
openView(java.lang.String viewId,
java.lang.String viewSource,
ClientOperation op,
int navigation,
java.lang.String linkContextTo,
java.lang.String inputFormat)
This method open a view and activates this,and stores all information related to this view |
void |
previousView()
This method deactivates the active view and shows the previous view associated to this view. |
void |
refreshActiveView()
This method refresh the active view of the Task |
void |
removeCoordinatedEventListener(CoordinatedEventListener newListener)
Removes a CoordinatedEventListener. |
java.util.Vector |
reorder(java.util.Vector v)
This method returns the creation order of the views. |
void |
resizeActiveView(int height,
int width)
This method resize the size of the active view. |
void |
resizeActiveView(int height,
int width,
int xpos,
int ypos)
This method resizes the size and location of the active view. |
void |
setActiveView(java.lang.String viewId)
Sets the value of the activeView property. |
void |
setLevel(int i)
return the level of the navigationArea respects to the WorkingArea. |
void |
setNavigationArea(SpInternalFrame na)
Sets the value of the navigationArea property. |
void |
setProcess(Processor proc)
Sets the value of the process property. |
void |
undo(java.lang.String viewId)
This method rollback all the operations of the navigation. |
Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent,
terminate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int NAV_NONE
protected int NAV_PEER
protected int NAV_CHILDREN
public static final java.lang.String CTXUSED_PROCESS
public static final java.lang.String CTXUSED_ACTIVE
public static final java.lang.String CTXUSED_PARENT
Constructor Detail |
public DSENavigationController()
This class takes charge of all the navigation of the views.
public DSENavigationController(java.lang.String aName) throws java.io.IOException
This class takes charge of all the navigation of the views.
aName
- java.lang.StringMethod Detail |
public void activateView(java.lang.String viewId)
viewId
- java.lang.String identifier of the view.public void addCoordinatedEventListener(CoordinatedEventListener newListener)
newListener
- CoordinatedEventListenerpublic void cancel(java.lang.String viewId)
viewId
- Stringpublic void close()
public void closeNavigation(java.lang.String viewId, DataMapperFormat mapper)
public void closeNavigation(java.lang.String viewId, java.lang.String closeMapFormat)
public void closeView(java.lang.String id)
id
- java.lang.String identifier of the view.public void deActivateView(java.lang.String viewId)
viewId
- java.lang.String identifier of the view.public void deRegister(java.lang.String viewId)
viewId
- java.lang.String identifier of the view.public void fireCoordinationEvent()
public void fireCoordinationEvent(DSECoordinationEvent event)
DSECoordinationEvent
- eventpublic java.lang.String getActiveView()
public java.util.Vector getChilds(java.lang.String viewId)
public static java.awt.Component getFirstFocusableComponent(java.awt.Container c)
c
- java.awt.Containerpublic java.lang.String getKey()
public SpInternalFrame getNavigationArea()
public java.lang.String getNextView(java.lang.String viewId)
public java.lang.String getParent(java.lang.String viewId)
public java.util.Vector getPeers(java.lang.String viewId)
public java.lang.String getPreviousView(java.lang.String viewId)
public Processor getProcess()
public javax.swing.JScrollPane getScrollPane()
public CoordinatedPanel getViewInstance(java.lang.String viewId)
viewId
- java.lang.String identifier of the view.public void handleDSECoordinationEvent(DSECoordinationEvent event)
event
- DSECoordinationEventpublic boolean isChildren(java.lang.String viewId)
public boolean isPeer(java.lang.String viewId)
public void modifyNavigation(java.lang.String viewId, boolean close, boolean rollback, DataMapperFormat mapper)
close
- booleanrollback
- booleanCloseMapFormat
- DataMapperFormatpublic void nextView(java.lang.String id, ClientOperation operation, int navigation, java.lang.String linkContextTo, java.lang.String inputPathFormat)
id
- java.lang.String identifier of the viewoperation
- ClientOperationnavigation
- intlinkContextTo
- Stringpublic void nextView(java.lang.String id, java.lang.String source, ClientOperation operation, int navigation, java.lang.String linkContextTo, java.lang.String inputPathFormat)
id
- java.lang.String identifier of the viewjava.lang.String
- full name of the viewoperation
- ClientOperationnavigation
- intlinkContextTo
- Stringpublic void openView(java.lang.String viewId) throws java.lang.Exception
viewId
- java.lang.String identifier of the viewpublic void openView(java.lang.String viewId, ClientOperation op, int navigation, java.lang.String linkContextTo, java.lang.String inputPathFormat)
viewId
- java.lang.String identifier of the viewoperation
- ClientOperationnavigation
- intlinkContextTo
- Stringpublic void openView(java.lang.String viewId, ClientOperation op, java.lang.Boolean execOp) throws java.lang.Exception
viewId
- java.lang.String identifier of the viewoperation
- ClientOperationexecOp
- booleanpublic void openView(java.lang.String viewId, java.lang.String viewSource, ClientOperation op, int navigation, java.lang.String linkContextTo, DataMapperFormat mapper)
viewId
- java.lang.String identifier of the viewviewSource
- java.lang.String name of the package of the viewoperation
- ClientOperationnavigation
- intlinkContextTo
- Stringmapper
- DataMapperFormatpublic void openView(java.lang.String viewId, java.lang.String viewSource, ClientOperation op, int navigation, java.lang.String linkContextTo, java.lang.String inputFormat)
viewId
- java.lang.String identifier of the viewviewSource
- java.lang.String name of the package of the viewoperation
- ClientOperationnavigation
- intlinkContextTo
- Stringpublic void previousView()
public void refreshActiveView()
public void removeCoordinatedEventListener(CoordinatedEventListener newListener)
newListener
- DataChangedListenerpublic java.util.Vector reorder(java.util.Vector v)
v
- java.util.Vectorpublic void resizeActiveView(int height, int width)
height
- intwidth
- intpublic void resizeActiveView(int height, int width, int xpos, int ypos)
height
- intxpos
- intypos
- intpublic void setActiveView(java.lang.String viewId)
viewId
- String The new value of the property.public void setLevel(int i)
public void setNavigationArea(SpInternalFrame na)
na
- Container The new value of the property.public void setProcess(Processor proc)
proc
- com.ibm.dse.automaton.DSEProcessor
The new value of the property.public void undo(java.lang.String viewId)
viewId
- String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |