|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echoservlet.InstancePeer
public class 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 | |
---|---|
void |
exit(java.lang.String uri)
Exits the application, redirecting an available browser window to the specified URI. |
Id |
generateId()
Generates a unique (to the application) identifier. |
Id |
generateId(Component c)
|
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. |
EchoInstance |
getInstance()
Returns the EchoInstance object this peer supports. |
static InstancePeer |
getInstancePeer()
|
ComponentPeer |
getPeer(Component c)
Returns the ComponentPeer that corresponds to the given Component. |
ComponentPeer |
getPeer(Id id)
Returns the ComponentPeer that corresponds to the given Id. |
StaticText |
getSafeInvokeService()
Returns the service that renders the script containing the safeInvoke() method. |
ServiceRegistry |
getServiceRegistry()
Returns the ServiceRegistry that is used by this instance
to hold all Service objects available to it. |
java.security.Principal |
getUserPrincipal()
Returns the principal (user) of this application. |
boolean |
hasPeer(Component c)
Determines whether the specified component has a peer. |
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 |
redraw(ComponentPeer componentPeer,
Component visibilityChangeOfThisComponentCausedRedraw)
|
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 void exit(java.lang.String uri)
uri
- The URI to redirect the browser window to.public Id generateId()
public Id generateId(Component c)
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 EchoInstance getInstance()
public ComponentPeer getPeer(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 StaticText getSafeInvokeService()
public ServiceRegistry getServiceRegistry()
ServiceRegistry
that is used by this instance
to hold all Service
objects available to it.
ServiceRegistry
.public java.security.Principal getUserPrincipal()
HttpServletRequest.getUserPrincipal()
.
public boolean hasPeer(Component c)
c
- The component to analyze.
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 redraw(ComponentPeer componentPeer, Component visibilityChangeOfThisComponentCausedRedraw)
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)
public static InstancePeer getInstancePeer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |