public class UIContentSelector extends UIInput
Modifier and Type | Field and Description |
---|---|
protected List<org.alfresco.service.cmr.repository.NodeRef> |
availableOptions
List containing the currently available options
|
protected String |
availableOptionsSize |
protected Boolean |
disabled |
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
Constructor and Description |
---|
UIContentSelector()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
decode(FacesContext context) |
void |
encodeBegin(FacesContext context) |
protected void |
getAvailableOptions(FacesContext context,
String contains)
Retrieves the available options for the current association
|
String |
getAvailableOptionsSize()
Returns the size of the select control when multiple items
can be selected
|
String |
getFamily() |
boolean |
getMultiSelect() |
boolean |
isDisabled()
Determines whether the component should be rendered in a disabled state
|
protected void |
renderAvailableOptions(FacesContext context,
ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService)
Renders the list of available options
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setAvailableOptionsSize(String availableOptionsSize)
Sets the size of the select control used when multiple items can
be selected
|
void |
setDisabled(boolean disabled)
Determines whether the component should be rendered in a disabled state
|
void |
setMultiSelect(boolean multiSelect) |
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 String availableOptionsSize
protected Boolean disabled
protected List<org.alfresco.service.cmr.repository.NodeRef> availableOptions
public 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
UIComponent.decode(javax.faces.context.FacesContext)
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
UIComponent.encodeBegin(javax.faces.context.FacesContext)
public boolean isDisabled()
public void setDisabled(boolean disabled)
disabled
- true to disable the componentpublic String getAvailableOptionsSize()
public void setAvailableOptionsSize(String availableOptionsSize)
availableOptionsSize
- The sizepublic boolean getMultiSelect()
public void setMultiSelect(boolean multiSelect)
multiSelect
- Flag to determine whether multi select is enabledprotected void renderAvailableOptions(FacesContext context, ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService) throws IOException
context
- FacesContextout
- Writer to write output tonodeService
- The NodeServiceIOException
protected void getAvailableOptions(FacesContext context, String contains)
context
- Faces Contextcontains
- The contains part of the queryCopyright © 2005–2017 Alfresco Software. All rights reserved.