|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.alfresco.web.ui.repo.component.UIContentSelector
public class UIContentSelector
Component for selecting content from the repository
Field Summary | |
---|---|
protected java.util.List |
availableOptions
List containing the currently available options |
protected java.lang.String |
availableOptionsSize
|
protected java.lang.Boolean |
disabled
|
Fields inherited from class javax.faces.component.UIInput |
---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Constructor Summary | |
---|---|
UIContentSelector()
Default constructor |
Method Summary | |
---|---|
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)
|
Methods inherited from class javax.faces.component.UIInput |
---|
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 |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getConverter, getLocalValue, setConverter |
Field Detail |
---|
protected java.lang.String availableOptionsSize
protected java.lang.Boolean disabled
protected java.util.List availableOptions
Constructor Detail |
---|
public UIContentSelector()
Method Detail |
---|
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIInput
UIComponent.getFamily()
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIInput
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIInput
StateHolder.saveState(javax.faces.context.FacesContext)
public void decode(javax.faces.context.FacesContext context)
decode
in class javax.faces.component.UIInput
UIComponent.decode(javax.faces.context.FacesContext)
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class javax.faces.component.UIComponentBase
java.io.IOException
UIComponent.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 NodeService
java.io.IOException
protected void getAvailableOptions(javax.faces.context.FacesContext context, java.lang.String contains)
context
- Faces Contextcontains
- The contains part of the query
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |