public abstract class BaseMultiValueRenderer extends BaseRenderer
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
highlightedRow |
protected static java.lang.String |
MSG_ADD_TO_LIST_BUTTON |
protected static java.lang.String |
MSG_REMOVE
I18N message strings
|
protected static java.lang.String |
MSG_SELECT_BUTTON |
| Constructor and Description |
|---|
BaseMultiValueRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected java.lang.String |
generateFormSubmit(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String action)
Generate FORM submit JavaScript for the specified action
|
protected java.lang.String |
getHiddenFieldName(javax.faces.component.UIComponent component)
We use a hidden field per picker instance on the page.
|
protected void |
renderExistingItem(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService,
int index,
java.lang.Object value)
Renders an existing item with a remove button
|
protected abstract 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 abstract 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.
|
assertParmeters, getParameterComponents, outputAttributeprotected static final java.lang.String MSG_REMOVE
protected static final java.lang.String MSG_SELECT_BUTTON
protected static final java.lang.String MSG_ADD_TO_LIST_BUTTON
protected boolean highlightedRow
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.RendererRenderer.decode(javax.faces.context.FacesContext, javax.faces.component.UIComponent)public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeBegin in class javax.faces.render.Rendererjava.io.IOExceptionRenderer.encodeBegin(javax.faces.context.FacesContext, javax.faces.component.UIComponent)public void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeEnd in class javax.faces.render.Rendererjava.io.IOExceptionRenderer.encodeEnd(javax.faces.context.FacesContext, javax.faces.component.UIComponent)protected abstract void renderPreWrappedComponent(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
UIMultiValueEditor editor)
throws java.io.IOException
context - FacesContextout - The ResponseWriter to write toeditor - The multi value editor componentjava.io.IOExceptionprotected abstract void renderPostWrappedComponent(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
UIMultiValueEditor editor)
throws java.io.IOException
context - FacesContextout - The ResponseWriter to write toeditor - The multi value editor componentjava.io.IOExceptionprotected void renderExistingItem(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService,
int index,
java.lang.Object value)
throws java.io.IOException
context - FacesContextcomponent - The UIComponentout - Writer to write output tonodeService - The NodeServiceindex - The index of the itemvalue - The item's valuejava.io.IOExceptionprotected java.lang.String getHiddenFieldName(javax.faces.component.UIComponent component)
protected java.lang.String generateFormSubmit(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String action)
context - FacesContextcomponent - The UIComponentaction - Action stringCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.