echopoint.ui
Class DropDownBoxUI

java.lang.Object
  extended by nextapp.echoservlet.AbstractComponentPeer
      extended by nextapp.echoservlet.ui.PanelUI
          extended by echopoint.ui.ScrollableBoxUI
              extended by echopoint.ui.DropDownBoxUI
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ChangeListener, Alignment, ClientInputProducer, ComponentPeer

public class DropDownBoxUI
extends ScrollableBoxUI
implements ClientInputProducer, ChangeListener

AbstractDateFieldUI is a abstract base backend peer class for the components DateField and TimeField. It does most of the rendering calls out the implementation to provide key information.

See Also:
Serialized Form

Field Summary
static Service DROPDOWN_SERVICE_SCRIPT
           
protected  boolean renderedActive
           
static Service SERVICE_DROP_DOWN_IMAGE
           
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
DropDownBoxUI()
           
 
Method Summary
 void clientInput(java.lang.String input)
          Called when a client sends an input string through an input field.
protected  java.lang.String createScriptAction(java.lang.String function)
          Returns a script action with the given commandStr
 ComponentPeer getPeer(Component c)
          This version of getPeer returns a ComponentPeer for the given Component c or null if one cannot be found.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
static void register()
          Registers the Component with its peer bindings
 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 stateChanged(ChangeEvent e)
          Invoked when a state change occurs.
 void unregistered()
          Called when the component is unregistered.
 
Methods inherited from class echopoint.ui.ScrollableBoxUI
getHorizontalAlignment, getVerticalAlignment
 
Methods inherited from class nextapp.echoservlet.AbstractComponentPeer
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getChildren, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, 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

DROPDOWN_SERVICE_SCRIPT

public static final Service DROPDOWN_SERVICE_SCRIPT

SERVICE_DROP_DOWN_IMAGE

public static final Service SERVICE_DROP_DOWN_IMAGE

renderedActive

protected boolean renderedActive
See Also:
ButtonUI
Constructor Detail

DropDownBoxUI

public DropDownBoxUI()
Method Detail

register

public static void register()
Registers the Component with its peer bindings


clientInput

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

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

createScriptAction

protected java.lang.String createScriptAction(java.lang.String function)
Returns a script action with the given commandStr


getPeer

public ComponentPeer getPeer(Component c)
This version of getPeer returns a ComponentPeer for the given Component c or null if one cannot be found. This class overrrides the default behaviour and catches any EchoServletExceptions runtime errors that might be thrown.

Specified by:
getPeer in interface ComponentPeer
Overrides:
getPeer in class AbstractComponentPeer
Parameters:
c - The component whose peer is to be returned.
Returns:
The peer of the specified component.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class ScrollableBoxUI
See Also:
PropertyChangeListener.propertyChange(java.beans.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 ScrollableBoxUI
See Also:
EchoPointComponentPeer.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 ScrollableBoxUI
Parameters:
rc - A rendering context provided by the Connection.
parent - The element that will contain content rendered by this ComponentPeer.
See Also:
ComponentPeer.render(nextapp.echoservlet.RenderingContext, nextapp.echoservlet.html.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 PanelUI
See Also:
ComponentPeer.unregistered()

stateChanged

public void stateChanged(ChangeEvent e)
Description copied from interface: ChangeListener
Invoked when a state change occurs.

Specified by:
stateChanged in interface ChangeListener
Parameters:
e - The event describing the state change.
See Also:
ChangeListener.stateChanged(nextapp.echo.event.ChangeEvent)