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