nextapp.echoservlet.ui
Class ListBoxUI

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

public class ListBoxUI
extends AbstractComponentPeer
implements ClientActionProducer, 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.
static long serialVersionUID
           
static StaticText SERVICE_LIST_BOX_SCRIPT
          A service that will provide the JavaScript used to manage a list box's state.
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
ListBoxUI()
           
 
Method Summary
 void clientAction(java.lang.String action)
          Called when the user causes an action from the client.
 void clientInput(java.lang.String input)
          Called when a client sends an input string through an input field.
static java.lang.String getInitializeScript(Connection connection, InstancePeer instancePeer, java.util.List keyActionCommands, java.util.List peers)
           
 boolean isRedrawEnabled()
           
 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 setRedrawEnabled(boolean redrawEnabled)
           
 void unregistered()
          Called when the component is unregistered.
 
Methods inherited from class nextapp.echoservlet.AbstractComponentPeer
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getChildren, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, getPeer, redraw, registerAncillaryServices, removeAncillaryService, 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.ClientInputProducer
getId
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

SERVICE_LIST_BOX_SCRIPT

public static final StaticText 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)

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: AbstractComponentPeer
Called when the component is registered. This method should be overridden if necessary.

Specified by:
registered in interface ComponentPeer
Overrides:
registered in class AbstractComponentPeer
See Also:
ComponentPeer.registered()

render

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

Specified by:
render in interface ComponentPeer
Overrides:
render in class AbstractComponentPeer
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: AbstractComponentPeer
Called when the component is unregistered. This method should be overridden if necessary.

Specified by:
unregistered in interface ComponentPeer
Overrides:
unregistered in class AbstractComponentPeer
See Also:
ComponentPeer.unregistered()

clientAction

public void clientAction(java.lang.String action)
Description copied from interface: ClientActionProducer
Called when the user causes an action from the client.

Specified by:
clientAction in interface ClientActionProducer
Parameters:
action - The action command generated by the client.

isRedrawEnabled

public boolean isRedrawEnabled()

setRedrawEnabled

public void setRedrawEnabled(boolean redrawEnabled)

getInitializeScript

public static java.lang.String getInitializeScript(Connection connection,
                                                   InstancePeer instancePeer,
                                                   java.util.List keyActionCommands,
                                                   java.util.List peers)