wheel.components
Class Select

java.lang.Object
  extended by wheel.components.Component
      extended by wheel.components.RenderableComponent
          extended by wheel.components.FormElement
              extended by wheel.components.SelectModelFormElement
                  extended by wheel.components.Select
All Implemented Interfaces:
IBuildableComponent, IContainer

public class Select
extends SelectModelFormElement

A form element that makes it possible to choose a single object or multiple objects (using multiselect mode) from a collection of objects using the <select> element. This component can be build either using an ISelectModel, DynamicSelectModel (by providing el-expressions for the collection, label and value) or a custom IEnhancingSelectModel that lets you customize how the options are rendered.

Author:
Henri Frilund

Field Summary
 
Fields inherited from class wheel.components.SelectModelFormElement
model
 
Fields inherited from class wheel.components.FormElement
genericFieldErrorMessage, value
 
Method Summary
 void _setSubmitValue(java.lang.String[] formValues)
          Sets the value retrieved from a form submit for this element.
 void buildComponent()
          Builds the component preparing it for rendering.
protected  java.lang.String defaultDomEvent()
           
 java.lang.String defaultTagName()
          Subclasses must implement this.
 
Methods inherited from class wheel.components.SelectModelFormElement
_isBuilt, _setBuilt, enhance, postBuild, preBuild
 
Methods inherited from class wheel.components.FormElement
_clear, _getSubmitValue, _getSubmitValues, _render, addValidationError, fieldBinding, getBinding, getErrors, getFormElementName, initialFieldValue, initialFieldValue, isEmpty, isInt, isValid, label, required, setBinding, setFormElementName, validate, validationRule, validationRule, value
 
Methods inherited from class wheel.components.RenderableComponent
_classReferenceFromHints, _getRenderAfterMe, _getRenderBeforeMe, _renderActions, _renderClassReferenceFromHints, _renderTagStart, _renderXhtmlAttributes, addRenderAfter, addRenderBefore, config, getTagName, renderComponent, toString
 
Methods inherited from class wheel.components.Component
_applyFormat, _getAction, _getActions, _getChildren, _getForm, _getRenderableChildren, _getRenderHints, _getTopLevelComponent, _getVisibleForm, _getXhtmlAttributes, _isGeneratedId, _setComponentId, _setGeneratedId, _wrapComponentId, a, a, abbr, abbr, acronym, acronym, action, actionBinding, actionBinding, add, addFirst, address, address, afterAdd, area, attribute, attributes, b, b, base, bdo, big, big, blockquote, br, button, caption, checkbox, checkboxGroup, cite, cite, clasS, col, colgroup, create, dateInput, dd, dd, del, del, dfn, dfn, div, dl, dt, dt, el, em, em, encode, entity, equals, eval, fieldset, fileInput, fileInput, find, findAll, form, form, frame, frameset, get, getComponentId, getComponentName, getComponents, getEngine, getPage, getParent, h1, h1, h2, h2, h3, h3, h4, h4, h5, h5, h6, h6, hashCode, head, hidden, hr, htmlText, i, i, id, iframe, img, ins, ins, kbd, kdb, label, label, legend, legend, li, li, link, link, map, message, message, meta, multiSelect, nbsp, noframes, noscript, numberInput, numberInput, object, ol, p, p, param, placeholder, pre, pre, q, q, radio, radioGroup, rawText, remove, remove, renderHint, requestFocus, s, s, samp, samp, script, select, selectModel, small, small, span, span, strike, strike, strong, strong, style, sub, sub, submit, sup, sup, table, tbody, td, text, textarea, textInput, tfoot, th, thead, title, tr, u, u, ul, up, up, var, var, wBlock, wrapSelf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

defaultTagName

public final java.lang.String defaultTagName()
Description copied from class: RenderableComponent
Subclasses must implement this. If no xhtml tagname can be resolved from rendering hints, will default to value returned by this method.

Specified by:
defaultTagName in class RenderableComponent
Returns:

_setSubmitValue

public void _setSubmitValue(java.lang.String[] formValues)
Description copied from class: FormElement
Sets the value retrieved from a form submit for this element. Calling this method also triggers a call to validate();

Overrides:
_setSubmitValue in class FormElement

buildComponent

public void buildComponent()
Description copied from interface: IBuildableComponent
Builds the component preparing it for rendering.


defaultDomEvent

protected java.lang.String defaultDomEvent()
Overrides:
defaultDomEvent in class FormElement


Copyright © 2007-2008. All Rights Reserved.