Package org.eclnt.workplace
Class MultiWorkplaceConnector
java.lang.Object
org.eclnt.workplace.MultiWorkplaceConnector
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkIfAlreadyStarted
(IWorkpageDispatcher currentDispatcher, String newWorkplaceName) Checks if a dependent workplace with a certain name already is available.createStartWorkplaceURL
(IWorkpageDispatcher currentDispatcher, String newWorkplaceName, String startWorkplaceBaseURL) Create URL that starts a new "dependent" workplace with a certain logical name.getConnectedWorkplaces
(IWorkpageDispatcher owningDispatcher) Finds all workplaces that are connected to the workplace passed in the method.getDependentWorkplace
(IWorkpageDispatcher startingDispatcher, String workplaceName) Access the dependent workplace.static MultiWorkplaceConnector
instance()
void
startWorkpage
(IWorkpageDispatcher fromWorkplace, WorkpageStartInfo wpsi, String targetWorkplaceName) Start/switch to a workpage in the dependent workplace.void
startWorkplace
(IWorkpageDispatcher currentDispatcher, String newWorkplaceName, String startWorkplaceBaseURL, String windowFeatures) Starts a second instance of a workplace in an browser instance - using the components that are implicitly created within the ROWWORKPLACE component.
-
Field Details
-
QUERYPARAM_FROMID
- See Also:
-
QUERYPARAM_TONAME
- See Also:
-
CCSTARTER
- See Also:
-
-
Method Details
-
instance
-
startWorkplace
public void startWorkplace(IWorkpageDispatcher currentDispatcher, String newWorkplaceName, String startWorkplaceBaseURL, String windowFeatures) throws MultiWorkplaceConnector.WorkplaceWithNameAlreadyExistsException Starts a second instance of a workplace in an browser instance - using the components that are implicitly created within the ROWWORKPLACE component.- Parameters:
currentDispatcher
- Worpage container of starting workplace.newWorkplaceName
- Locical name of the new workplace.startWorkplaceBaseURL
- The URL to start the workplace, e.g. "/startWorkplace.risc". This is the URL that is used to start the dependent workplace- Throws:
MultiWorkplaceConnector.WorkplaceWithNameAlreadyExistsException
-
createStartWorkplaceURL
public String createStartWorkplaceURL(IWorkpageDispatcher currentDispatcher, String newWorkplaceName, String startWorkplaceBaseURL) throws MultiWorkplaceConnector.WorkplaceWithNameAlreadyExistsException Create URL that starts a new "dependent" workplace with a certain logical name. The URL that is passed back as result is the original URL, extended by some additional parameters, that are required to bind the second workplace to the processing of the first one.- Parameters:
currentDispatcher
- Worpage container of starting workplace.newWorkplaceName
- Locical name of the new workplace.startWorkplaceBaseURL
- The URL to start the workplace, e.g. "/startWorkplace.risc". This is the URL that is used to start the dependent workplace- Returns:
- URL to really start the workplace.
- Throws:
MultiWorkplaceConnector.WorkplaceWithNameAlreadyExistsException
-
getDependentWorkplace
public IWorkpageDispatcher getDependentWorkplace(IWorkpageDispatcher startingDispatcher, String workplaceName) Access the dependent workplace.- Parameters:
startingDispatcher
- The dispatcher of the workplace from which the dependent workplace was started.
-
startWorkpage
public void startWorkpage(IWorkpageDispatcher fromWorkplace, WorkpageStartInfo wpsi, String targetWorkplaceName) Start/switch to a workpage in the dependent workplace.- Parameters:
fromWorkplace
-wpsi
-targetWorkplaceName
-
-
checkIfAlreadyStarted
public boolean checkIfAlreadyStarted(IWorkpageDispatcher currentDispatcher, String newWorkplaceName) Checks if a dependent workplace with a certain name already is available.- Parameters:
currentDispatcher
-newWorkplaceName
-- Returns:
-
getConnectedWorkplaces
Finds all workplaces that are connected to the workplace passed in the method.
-