echopoint.ui
Class ComboBoxUI
java.lang.Object
nextapp.echoservlet.AbstractComponentPeer
nextapp.echoservlet.ui.TextComponentUI
nextapp.echoservlet.ui.TextFieldUI
echopoint.ui.TextFieldUI
echopoint.ui.ComboBoxUI
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ClientActionProducer, ClientInputProducer, ComponentPeer
- Direct Known Subclasses:
- RecallComboBoxUI
public class ComboBoxUI
- extends TextFieldUI
- implements ClientActionProducer, ClientInputProducer
ComboBoxUI is a base backend peer class ComboBox
- See Also:
- Serialized Form
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. |
protected java.lang.String |
generateOnBlurJavaScript(RenderingContext rc)
Called to return the onblur script that saves the state of
the TextField and also performs client side validation. |
protected java.lang.String |
generateOnChangeJavaScript(RenderingContext rc)
Called to return the onchange script that saves the state of
the TextField and also performs client side validation. |
static void |
register()
Registers the Component with its peer bindings |
void |
render(RenderingContext rc,
Element parent)
A method that should be overridden for the ComponentPeer to produce HTML
output. |
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 |
SERVICE_DROP_DOWN_IMAGE
public static final Service SERVICE_DROP_DOWN_IMAGE
SERVICE_COMBO_SCRIPT
public static final StaticText SERVICE_COMBO_SCRIPT
ComboBoxUI
public ComboBoxUI()
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 TextFieldUI
- 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)
generateOnBlurJavaScript
protected java.lang.String generateOnBlurJavaScript(RenderingContext rc)
- Description copied from class:
TextFieldUI
- Called to return the onblur script that saves the state of
the TextField and also performs client side validation. It
returns a script that ends in a semi colon, ready for chaining
with other scripts.
- Overrides:
generateOnBlurJavaScript
in class TextFieldUI
- Parameters:
rc
- - The rendering
- Returns:
- the generated on blur script
- See Also:
TextFieldUI.generateOnBlurJavaScript(nextapp.echoservlet.RenderingContext)
generateOnChangeJavaScript
protected java.lang.String generateOnChangeJavaScript(RenderingContext rc)
- Description copied from class:
TextFieldUI
- Called to return the onchange script that saves the state of
the TextField and also performs client side validation. It
returns a script that ends in a semi colon, ready for chaining
with other scripts.
- Overrides:
generateOnChangeJavaScript
in class TextFieldUI
- Parameters:
rc
- - The rendering
- Returns:
- the generated onchange script
- See Also:
TextFieldUI.generateOnChangeJavaScript(nextapp.echoservlet.RenderingContext)
register
public static void register()
- Registers the Component with its peer bindings
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
- Overrides:
clientAction
in class TextFieldUI
- Parameters:
action
- The action command generated by the client.- See Also:
ClientActionProducer.clientAction(java.lang.String)
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
- Overrides:
clientInput
in class TextComponentUI
- Parameters:
input
- The data in the hidden input field in the controller form
as last known.- See Also:
ClientInputProducer.clientInput(java.lang.String)