org.alfresco.web.ui.repo.renderer
Class MultiValueSelectorRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.alfresco.web.ui.common.renderer.BaseRenderer
          extended by org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
              extended by org.alfresco.web.ui.repo.renderer.MultiValueSelectorRenderer

public class MultiValueSelectorRenderer
extends BaseMultiValueRenderer

Renders the MultiValueEditor component for use with picker components. This renderer shows a "select items" message and a select button. When the select button is pressed the wrapped component will appear and the add to list button will be enabled.


Field Summary
 
Fields inherited from class org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
highlightedRow, MSG_ADD_TO_LIST_BUTTON, MSG_REMOVE, MSG_SELECT_BUTTON
 
Constructor Summary
MultiValueSelectorRenderer()
           
 
Method Summary
protected  void renderPostWrappedComponent(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter out, UIMultiValueEditor editor)
          Renders the area of the component after the wrapped component but before the list of currently selected values.
protected  void renderPreWrappedComponent(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter out, UIMultiValueEditor editor)
          Renders the area of the component before the wrapped component appears.
 
Methods inherited from class org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
decode, encodeBegin, encodeEnd, generateFormSubmit, getHiddenFieldName, renderExistingItem
 
Methods inherited from class org.alfresco.web.ui.common.renderer.BaseRenderer
assertParmeters, getParameterComponents, outputAttribute
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiValueSelectorRenderer

public MultiValueSelectorRenderer()
Method Detail

renderPreWrappedComponent

protected void renderPreWrappedComponent(javax.faces.context.FacesContext context,
                                         javax.faces.context.ResponseWriter out,
                                         UIMultiValueEditor editor)
                                  throws java.io.IOException
Description copied from class: BaseMultiValueRenderer
Renders the area of the component before the wrapped component appears.

Specified by:
renderPreWrappedComponent in class BaseMultiValueRenderer
Parameters:
context - FacesContext
out - The ResponseWriter to write to
editor - The multi value editor component
Throws:
java.io.IOException

renderPostWrappedComponent

protected void renderPostWrappedComponent(javax.faces.context.FacesContext context,
                                          javax.faces.context.ResponseWriter out,
                                          UIMultiValueEditor editor)
                                   throws java.io.IOException
Description copied from class: BaseMultiValueRenderer
Renders the area of the component after the wrapped component but before the list of currently selected values.

Specified by:
renderPostWrappedComponent in class BaseMultiValueRenderer
Parameters:
context - FacesContext
out - The ResponseWriter to write to
editor - The multi value editor component
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.