NextApp Echo
App Container 1.0.5

nextapp.echoservlet
Class ContentPaneUI

java.lang.Object
  extended bynextapp.echoservlet.ComponentPeer
      extended bynextapp.echoservlet.ContentPaneUI
All Implemented Interfaces:
java.util.EventListener, PaneUI, java.beans.PropertyChangeListener, java.io.Serializable, Service

public class ContentPaneUI
extends ComponentPeer
implements PaneUI, java.beans.PropertyChangeListener, Service

A peer object for ContentPanes. This class is responsible for rendering HTML documents that contain rendered components.

See Also:
Serialized Form

Field Summary
private static java.lang.String BACKGROUND_IMAGE
           
private  ImageManager imageManager
          An image manager that will handle the background image of the content pane if one is used.
static Service SERVICE_CONTENT_PANE_SCRIPT
          A JavaScript include that contains functionality required for content panes, such as functions that input and action components will use to notify the server of updated state.
 
Fields inherited from class nextapp.echoservlet.ComponentPeer
 
Fields inherited from interface nextapp.echoservlet.PaneUI
SCROLLING_ALWAYS, SCROLLING_AUTO, SCROLLING_NEVER
 
Constructor Summary
ContentPaneUI()
          Creates a new ContentPaneUI.
 
Method Summary
static java.lang.String getScriptSetAction(java.lang.String id, java.lang.String command)
          Returns the JavaScript method call necessary to send an action command.
static java.lang.String getScriptSetParameter(java.lang.String id, java.lang.String value)
          Returns the JavaScript method call necessary to store a parameter in the Controller frame's hidden form.
 java.lang.String getScrolling()
          Returns the scrolling property of the pane.
 java.lang.String getUri(Connection conn)
          Returns the URI from which the pane's service may be rendered.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void registered()
          Called when the component is registered.
 void service(Connection conn)
          Services an HTTP request.
 void unregistered()
          Called when the component is unregistered.
 
Methods inherited from class nextapp.echoservlet.ComponentPeer
addAncillaryService, generateId, getBackground, getChildCount, getChildren, getComponent, getFont, getForeground, getId, getInstancePeer, getParent, getPeer, redraw, registerAncillaryServices, removeAncillaryService, render, setComponent, setId, setInstancePeer, unregisterAncillaryServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echoservlet.PaneUI
getId
 
Methods inherited from interface nextapp.echoservlet.Service
getId
 

Field Detail

BACKGROUND_IMAGE

private static final java.lang.String BACKGROUND_IMAGE
See Also:
Constant Field Values

SERVICE_CONTENT_PANE_SCRIPT

public static final Service SERVICE_CONTENT_PANE_SCRIPT
A JavaScript include that contains functionality required for content panes, such as functions that input and action components will use to notify the server of updated state. This script will be referenced in every content pane.


imageManager

private ImageManager imageManager
An image manager that will handle the background image of the content pane if one is used.

Constructor Detail

ContentPaneUI

public ContentPaneUI()
Creates a new ContentPaneUI.

Method Detail

getScriptSetAction

public static java.lang.String getScriptSetAction(java.lang.String id,
                                                  java.lang.String command)
Returns the JavaScript method call necessary to send an action command. This method is called by components to generate script that will cause server interaction. For instance, a button that generates a link might make its element's "href" attribute: "javascript:E_setAction('4f', 'press')", such that the server would be notified that component '4f' triggered an action with the command 'press'. On the server, the ComponentPeer with Id '4f' would have its clientActionPerformed() method called with the parameter 'press'.

Parameters:
id - The Id of the component setting the action.
command - The action command that is to be sent.

getScriptSetParameter

public static java.lang.String getScriptSetParameter(java.lang.String id,
                                                     java.lang.String value)
Returns the JavaScript method call necessary to store a parameter in the Controller frame's hidden form. During the next server interaction, the data held in this hidden parameter will be provided to the ComponentPeer with the corresponding Id. The value will be sent as the parameter of a clientInput() method call.

Parameters:
id - The Id of the component setting the parameter.
value - The new value of the parameter.

getScrolling

public java.lang.String getScrolling()
Description copied from interface: PaneUI
Returns the scrolling property of the pane.

Specified by:
getScrolling in interface PaneUI
Returns:
The scrolling property of the pane, one of the following values:
  • SCROLLING_AUTO
  • SCROLLING_ALWAYS
  • SCROLLING_NEVER
See Also:
PaneUI.getScrolling()

getUri

public java.lang.String getUri(Connection conn)
Description copied from interface: PaneUI
Returns the URI from which the pane's service may be rendered.

Specified by:
getUri in interface PaneUI
Parameters:
conn - The connection from which to derive the URI.
Returns:
The URI from which the pane's service may be rendered.
See Also:
PaneUI.getUri(Connection)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
See Also:
PropertyChangeListener.propertyChange(PropertyChangeEvent)

registered

public void registered()
Description copied from class: ComponentPeer
Called when the component is registered. This method should be overridden if necessary.

Overrides:
registered in class ComponentPeer
See Also:
ComponentPeer.registered()

service

public void service(Connection conn)
Description copied from interface: Service
Services an HTTP request. Information about the HTTP request as well as methods for issuing a response are available from the provided Connection object.

Specified by:
service in interface Service
Parameters:
conn - A Connection object which wraps HttpServletRequest and HttpServletResponse objects and provides access to the facilities of the Echo application container.
See Also:
Service.service(Connection)

unregistered

public void unregistered()
Description copied from class: ComponentPeer
Called when the component is unregistered. This method should be overridden if necessary.

Overrides:
unregistered in class ComponentPeer
See Also:
ComponentPeer.unregistered()

NextApp Echo
App Container 1.0.5