|
|||||||||
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.property.BaseAssociationEditor
org.alfresco.web.ui.repo.component.property.UIChildAssociationEditor
public class UIChildAssociationEditor
Component that allows child associations to be edited i.e. new associations to be added, existing ones to be removed whilst following the rules in the data dictionary
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.alfresco.web.ui.repo.component.property.BaseAssociationEditor |
---|
BaseAssociationEditor.AssocEditorEvent |
Field Summary |
---|
Fields inherited from class org.alfresco.web.ui.repo.component.property.BaseAssociationEditor |
---|
added, associationName, availableOptions, availableOptionsSize, changingAssociation, disabled, highlightedRow, noSelectedItemsMsg, originalAssocs, removed, searchTerm, selectedItemsMsg, selectItemMsg, selectItemsMsg, showAvailable |
Fields inherited from class javax.faces.component.UIInput |
---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Constructor Summary | |
---|---|
UIChildAssociationEditor()
|
Method Summary | |
---|---|
protected void |
addTarget(Node node,
java.lang.String[] toAdd)
Updates the component and node state to reflect an association being added |
java.lang.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,
java.lang.String childRef)
Updates the component and node state to reflect an association being removed |
protected void |
renderExistingAssociations(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService,
boolean allowMany)
Renders the existing associations in an editable form |
protected void |
renderReadOnlyAssociations(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService)
Renders the existing associations in a read-only form |
Methods inherited from class org.alfresco.web.ui.repo.component.property.BaseAssociationEditor |
---|
broadcast, decode, encodeBegin, getAssociationDefinition, getAssociationName, getAvailableOptions, getAvailableOptionsSize, getNoSelectedItemsMsg, getSelectedItemsMsg, getSelectItemMsg, getSelectItemsMsg, isDisabled, renderAvailableOptions, renderExistingAssociation, renderNone, renderSearchField, restoreState, saveState, setAssociationName, setAvailableOptionsSize, setDisabled, setNoSelectedItemsMsg, setSelectedItemsMsg, setSelectItemMsg, setSelectItemsMsg |
Methods inherited from class javax.faces.component.UIInput |
---|
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 |
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 |
Constructor Detail |
---|
public UIChildAssociationEditor()
Method Detail |
---|
public java.lang.String getFamily()
getFamily
in class javax.faces.component.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(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService, boolean allowMany) throws java.io.IOException
BaseAssociationEditor
renderExistingAssociations
in class BaseAssociationEditor
context
- FacesContextout
- ResponseWriternodeService
- The NodeServiceallowMany
- Whether multiple associations are allowed
java.io.IOException
BaseAssociationEditor.renderExistingAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService, boolean)
protected void renderReadOnlyAssociations(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService) throws java.io.IOException
BaseAssociationEditor
renderReadOnlyAssociations
in class BaseAssociationEditor
context
- FacesContextout
- ResponseWriternodeService
- The NodeService
java.io.IOException
BaseAssociationEditor.renderReadOnlyAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService)
protected void removeTarget(Node node, java.lang.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, java.lang.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[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |