public interface WindowContext extends Serializable
We support the general notion of multiple 'windows' That might be different parallel edit pages in a desktop application (think about different open documents in an editor) or multiple browser tabs in a web application.
For web applications each browser tab or window will be
represented by an own WindowContext
slice. All those
WindowContext
slices will be held in the users servlet
session as @SessionScoped bean.
Every WindowContext is uniquely identified via a
'windowId' inside the current Session.
Each Thread is associated with at most
one single windowId at a time. The WindowContext
is the interface which allows resolving the current windowId
associated with this very Thread.
Modifier and Type | Method and Description |
---|---|
void |
activateWindow(String windowId)
Set the current windowId as the currently active for the very Thread.
|
boolean |
closeWindow(String windowId)
close the WindowContext with the given windowId.
|
String |
getCurrentWindowId() |
String getCurrentWindowId()
null
.void activateWindow(String windowId)
windowId
- boolean closeWindow(String windowId)
true
if any did exist, false
otherwiseCopyright © 2015 The Apache Software Foundation. All rights reserved.