public abstract class BaseAjaxItemPicker
extends javax.faces.component.UIInput
org.alfresco.web.bean.ajax.PickerBean.
The derived components are only responsible for specifing the ajax service call
to make, plus any defaults for icons etc.| Modifier and Type | Field and Description |
|---|---|
protected static int |
ACTION_CANCEL |
protected static int |
ACTION_DONE |
protected Boolean |
disabled
flag to show whether the component is disabled
|
protected static String |
EMPTY |
protected static String |
FOLDER_IMAGE_PREFIX |
protected String |
height
Height style override for picker selector area
|
protected static String |
ID_ICON |
protected static String |
ID_ID |
protected static String |
ID_NAME |
protected String |
initialSelectionId
id of the initially selected item, if value is not set
|
protected String |
label
label to be displayed before an item is selected
|
protected static String |
MSG_CANCEL |
protected static String |
MSG_GO_UP |
protected static String |
MSG_OK |
protected Boolean |
singleSelect
True for single select mode, false for multi-select mode
|
| Constructor and Description |
|---|
BaseAjaxItemPicker() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(javax.faces.context.FacesContext context) |
void |
encodeBegin(javax.faces.context.FacesContext fc) |
protected abstract String |
getDefaultIcon() |
abstract String |
getFamily() |
String |
getHeight() |
protected String |
getHiddenFieldName()
We use a unique hidden field name based on our client Id.
|
String |
getInitialSelection() |
protected String |
getItemJson(String id,
String name,
String icon)
Returns Json string representing an already-selected item.
|
String |
getLabel() |
protected String |
getRequestAttributes() |
protected abstract String |
getServiceCall() |
Boolean |
getSingleSelect() |
boolean |
isDisabled()
Determines whether the component should be rendered in a disabled state
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setDisabled(boolean disabled)
Determines whether the component should be rendered in a disabled state
|
void |
setHeight(String height) |
void |
setInitialSelection(String initialSelection) |
void |
setLabel(String label) |
void |
setSingleSelect(Boolean singleSelect) |
addValidator, addValueChangeListener, broadcast, compareValues, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValuegetConverter, getLocalValue, setConverteraddFacesListener, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingprotected static final String MSG_GO_UP
protected static final String MSG_OK
protected static final String MSG_CANCEL
protected static final String ID_ID
protected static final String ID_NAME
protected static final String ID_ICON
protected static final String EMPTY
protected static final String FOLDER_IMAGE_PREFIX
protected String label
protected String initialSelectionId
protected Boolean disabled
protected Boolean singleSelect
protected String height
protected static int ACTION_DONE
protected static int ACTION_CANCEL
public abstract String getFamily()
getFamily in class javax.faces.component.UIInputUIComponent.getFamily()public void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)public Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIInputStateHolder.saveState(javax.faces.context.FacesContext)public void decode(javax.faces.context.FacesContext context)
decode in class javax.faces.component.UIInputUIComponentBase.decode(javax.faces.context.FacesContext)public void encodeBegin(javax.faces.context.FacesContext fc)
throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionUIComponentBase.encodeBegin(javax.faces.context.FacesContext)protected abstract String getServiceCall()
protected abstract String getDefaultIcon()
protected String getRequestAttributes()
public String getLabel()
public void setLabel(String label)
label - The label to set.public String getInitialSelection()
public void setInitialSelection(String initialSelection)
initialSelection - The initial selection to set.public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled - true to disable the componentpublic Boolean getSingleSelect()
public void setSingleSelect(Boolean singleSelect)
singleSelect - true for single select mode, false for multi-selectpublic String getHeight()
public void setHeight(String height)
height - The height to set.protected String getHiddenFieldName()
Copyright © 2005–2018 Alfresco Software. All rights reserved.