public class UIChildAssociationEditor extends BaseAssociationEditor
BaseAssociationEditor.AssocEditorEvent
added, associationName, availableOptions, availableOptionsSize, changingAssociation, disabled, highlightedRow, noSelectedItemsMsg, originalAssocs, removed, searchTerm, selectedItemsMsg, selectItemMsg, selectItemsMsg, showAvailable
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
Constructor and Description |
---|
UIChildAssociationEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTarget(Node node,
String[] toAdd)
Updates the component and node state to reflect an association being added
|
String |
getFamily() |
protected void |
populateAssocationMaps(Node node,
org.alfresco.service.cmr.repository.NodeService nodeService)
Populates all the internal Maps with the appropriate association reference objects
|
protected void |
removeTarget(Node node,
String childRef)
Updates the component and node state to reflect an association being removed
|
protected void |
renderExistingAssociations(FacesContext context,
ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService,
boolean allowMany)
Renders the existing associations in an editable form
|
protected void |
renderReadOnlyAssociations(FacesContext context,
ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService)
Renders the existing associations in a read-only form
|
broadcast, decode, encodeBegin, generateFormSubmit, getAssociationDefinition, getAssociationName, getAvailableOptions, getAvailableOptionsSize, getHiddenFieldName, getNoSelectedItemsMsg, getSelectedItemsMsg, getSelectItemMsg, getSelectItemsMsg, isDisabled, renderAvailableOptions, renderExistingAssociation, renderNone, renderSearchField, restoreState, saveState, setAssociationName, setAvailableOptionsSize, setDisabled, setNoSelectedItemsMsg, setSelectedItemsMsg, setSelectItemMsg, setSelectItemsMsg
addValidator, addValueChangeListener, 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
public String getFamily()
getFamily
in class UIInput
UIComponent.getFamily()
protected void populateAssocationMaps(Node node, org.alfresco.service.cmr.repository.NodeService nodeService)
BaseAssociationEditor
populateAssocationMaps
in class BaseAssociationEditor
node
- The Node we are dealing withnodeService
- The NodeServiceBaseAssociationEditor.populateAssocationMaps(org.alfresco.web.bean.repository.Node, org.alfresco.service.cmr.repository.NodeService)
protected void renderExistingAssociations(FacesContext context, ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService, boolean allowMany) throws IOException
BaseAssociationEditor
renderExistingAssociations
in class BaseAssociationEditor
context
- FacesContextout
- ResponseWriternodeService
- The NodeServiceallowMany
- Whether multiple associations are allowedIOException
BaseAssociationEditor.renderExistingAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService, boolean)
protected void renderReadOnlyAssociations(FacesContext context, ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService) throws IOException
BaseAssociationEditor
renderReadOnlyAssociations
in class BaseAssociationEditor
context
- FacesContextout
- ResponseWriternodeService
- The NodeServiceIOException
BaseAssociationEditor.renderReadOnlyAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService)
protected void removeTarget(Node node, String childRef)
BaseAssociationEditor
removeTarget
in class BaseAssociationEditor
node
- The node we are dealing withchildRef
- The noderef of the child to removeBaseAssociationEditor.removeTarget(org.alfresco.web.bean.repository.Node, java.lang.String)
protected void addTarget(Node node, String[] toAdd)
BaseAssociationEditor
addTarget
in class BaseAssociationEditor
node
- The node we are dealing withtoAdd
- The noderefs of the children to addBaseAssociationEditor.addTarget(org.alfresco.web.bean.repository.Node, java.lang.String[])
Copyright © 2005–2017 Alfresco Software. All rights reserved.