NextApp Echo
App Container 1.0.5

nextapp.echoservlet.ui
Class ListBoxUI

java.lang.Object
  extended bynextapp.echoservlet.ComponentPeer
      extended bynextapp.echoservlet.ui.ListBoxUI
All Implemented Interfaces:
ClientInputProducer, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class ListBoxUI
extends ComponentPeer
implements ClientInputProducer, java.beans.PropertyChangeListener

A peer for ListBox components.

See Also:
Serialized Form

Field Summary
protected  boolean renderedActive
          Indicates whether the component was most recently rendered editable and enabled.
private static Service SERVICE_LIST_BOX_SCRIPT
          A service that will provide the JavaScript used to manage a list box's state.
 
Fields inherited from class nextapp.echoservlet.ComponentPeer
 
Constructor Summary
ListBoxUI()
           
 
Method Summary
 void clientInput(java.lang.String input)
          Called when a client sends an input string through an input field.
private  java.lang.String getOnChangeScript()
          Returns the JavaScript method call that will be invoked when the state of the list box is altered by the user.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void registered()
          Called when the component is registered.
 void render(RenderingContext rc, Element parent)
          A method that should be overridden for the ComponentPeer to produce HTML output.
 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, removeAncillaryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echoservlet.ClientInputProducer
getId
 

Field Detail

SERVICE_LIST_BOX_SCRIPT

private static final Service SERVICE_LIST_BOX_SCRIPT
A service that will provide the JavaScript used to manage a list box's state.


renderedActive

protected boolean renderedActive
Indicates whether the component was most recently rendered editable and enabled.

Constructor Detail

ListBoxUI

public ListBoxUI()
Method Detail

clientInput

public void clientInput(java.lang.String input)
Description copied from interface: ClientInputProducer
Called when a client sends an input string through an input field.

Specified by:
clientInput in interface ClientInputProducer
Parameters:
input - The data in the hidden input field in the controller form as last known.
See Also:
ClientInputProducer.clientInput(String)

getOnChangeScript

private java.lang.String getOnChangeScript()
Returns the JavaScript method call that will be invoked when the state of the list box is altered by the user.

Returns:
The JavaScript method call that will be invoked when the state of the list box is altered by the user.

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()

render

public void render(RenderingContext rc,
                   Element parent)
Description copied from class: ComponentPeer
A method that should be overridden for the ComponentPeer to produce HTML output.

Overrides:
render in class ComponentPeer
Parameters:
rc - A rendering context provided by the Connection.
parent - The element that will contain content rendered by this ComponentPeer.
See Also:
ComponentPeer.render(RenderingContext, Element)

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