|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
org.alfresco.web.ui.common.renderer.BaseRenderer
org.alfresco.web.ui.repo.renderer.BaseMultiValueRenderer
public abstract class BaseMultiValueRenderer
Base class for renderers of the MultiValueEditor component. The current items are displayed as a list of options that can be removed using a Remove button.
Field Summary | |
---|---|
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 Summary | |
---|---|
BaseMultiValueRenderer()
|
Method Summary | |
---|---|
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. |
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 |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public BaseMultiValueRenderer()
Method Detail |
---|
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
Renderer.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.Renderer
java.io.IOException
Renderer.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.Renderer
java.io.IOException
Renderer.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 component
java.io.IOException
protected 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 component
java.io.IOException
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) throws java.io.IOException
context
- FacesContextcomponent
- The UIComponentout
- Writer to write output tonodeService
- The NodeServiceindex
- The index of the itemvalue
- The item's value
java.io.IOException
protected 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 string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |