public abstract class BaseAjaxItemPicker extends 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
|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
Constructor and Description |
---|
BaseAjaxItemPicker() |
Modifier and Type | Method and Description |
---|---|
void |
decode(FacesContext context) |
void |
encodeBegin(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(FacesContext context,
Object state) |
Object |
saveState(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, validateValue
getConverter, getLocalValue, setConverter
addFacesListener, 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, setValueBinding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getLocalValue, setConverter
protected 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 UIInput
UIComponent.getFamily()
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIInput
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIInput
StateHolder.saveState(javax.faces.context.FacesContext)
public void decode(FacesContext context)
decode
in class UIInput
UIComponentBase.decode(javax.faces.context.FacesContext)
public void encodeBegin(FacesContext fc) throws IOException
encodeBegin
in class UIComponentBase
IOException
UIComponentBase.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–2017 Alfresco Software. All rights reserved.