|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.InstancePeer
A peer object for an user instance of an Echo application. Like EchoInstance, one instance of this class is created for each user.
Method Summary | |
Id |
generateId()
Generates a unique (to the application) identifier. |
ClientProperties |
getClientProperties()
Returns the "client properties" data collected about the client of this InstancePeer . |
PaneUI |
getContainingPane(ComponentPeer componentPeer)
Returns the PaneUI in which the given
ComponentPeer is contained. |
WindowUI |
getContainingWindow(ComponentPeer componentPeer)
Returns the WindowUI in which the given
ComponentPeer is contained. |
Service |
getController()
Returns this instance's Controller |
CookieManager |
getCookieManager()
Returns the CookieManager used by this instance. |
ImageRepository |
getImageRepository()
Returns the image repository. |
nextapp.echo.EchoInstance |
getInstance()
Returns the EchoInstance object this peer supports. |
ComponentPeer |
getPeer(nextapp.echo.Component c)
Returns the ComponentPeer that corresponds to the given Component. |
ComponentPeer |
getPeer(Id id)
Returns the ComponentPeer that corresponds to the given Id. |
Service |
getSafeInvokeService()
Returns the service that renders the script containing the safeInvoke() method. |
java.security.Principal |
getUserPrincipal()
Returns the principal (user) of this application. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Handler for PropertyChangeEvents. |
void |
redraw(ComponentPeer componentPeer)
Causes the service containing the given component to be re-rendered. |
void |
setTitle(WindowUI windowUI)
Causes the specified window's title to be updated on the client. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent e)
Listener implementation of HttpSessionBindingListener . |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
Listener implementation of Mcode>HttpSessionBindingListener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Id generateId()
public ClientProperties getClientProperties()
InstancePeer
. This data contains
information such as the browser name, version, and the clients
screen resolution.
InstancePeer
.public PaneUI getContainingPane(ComponentPeer componentPeer)
PaneUI
in which the given
ComponentPeer
is contained.
componentPeer
- The ComponentPeer
whose containing
PaneUI
is to be returned.
PaneUI
containing the given
ComponentPeer
.public WindowUI getContainingWindow(ComponentPeer componentPeer)
WindowUI
in which the given
ComponentPeer
is contained.
componentPeer
- The ComponentPeer
whose containing
WindowUI
is to be returned.
WindowUI
containing the given
ComponentPeer
.public Service getController()
Controller service.
- Returns:
- This instance's
Controller service.
public CookieManager getCookieManager()
CookieManager
used by this instance.
CookieManager
used by this instance.public ImageRepository getImageRepository()
public nextapp.echo.EchoInstance getInstance()
public ComponentPeer getPeer(nextapp.echo.Component c)
c
- The component whose peer is to be retrieved.
public ComponentPeer getPeer(Id id)
id
- The id of the peer to be retrieved.
public Service getSafeInvokeService()
public java.security.Principal getUserPrincipal()
HttpServletRequest.getUserPrincipal()
.
public void propertyChange(java.beans.PropertyChangeEvent e)
EchoInstance
and its
components such that it can update the client browser to reflect
the application's state.
propertyChange
in interface java.beans.PropertyChangeListener
e
- A property change event describing a property change to
the application represented by this peer or one of its
components.public void redraw(ComponentPeer componentPeer)
componentPeer
- A ComponentPeer
whose represented
Component
has changed and therefore needs to be
updated on the client browser.public void setTitle(WindowUI windowUI)
windowUI
- The peer of the window whose title should be redrawn.public void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
HttpSessionBindingListener
.
Stores reference to session when invoked.
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent)
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |