|
|||||||||
| 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.UIAssociationEditor
public class UIAssociationEditor
Component that allows 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 | |
|---|---|
static java.lang.String |
MSG_WARN_CANNOT_VIEW_TARGET_DETAILS
|
static java.lang.String |
MSG_WARN_USER_WAS_DELETED
|
| 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 | |
|---|---|
UIAssociationEditor()
|
|
| 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 targetRef)
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 allowManyChildren)
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, 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, getValue, 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, getValue, setConverter |
| Field Detail |
|---|
public static final java.lang.String MSG_WARN_CANNOT_VIEW_TARGET_DETAILS
public static final java.lang.String MSG_WARN_USER_WAS_DELETED
| Constructor Detail |
|---|
public UIAssociationEditor()
| Method Detail |
|---|
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIInputUIComponent.getFamily()
protected void populateAssocationMaps(Node node,
org.alfresco.service.cmr.repository.NodeService nodeService)
BaseAssociationEditor
populateAssocationMaps in class BaseAssociationEditornode - 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 allowManyChildren)
throws java.io.IOException
BaseAssociationEditor
renderExistingAssociations in class BaseAssociationEditorcontext - FacesContextout - ResponseWriternodeService - The NodeServiceallowManyChildren - Whether multiple associations are allowed
java.io.IOExceptionBaseAssociationEditor.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 BaseAssociationEditorcontext - FacesContextout - ResponseWriternodeService - The NodeService
java.io.IOExceptionBaseAssociationEditor.renderReadOnlyAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService)
protected void removeTarget(Node node,
java.lang.String targetRef)
removeTarget in class BaseAssociationEditornode - The node we are dealing withtargetRef - The noderef of the child to remove
protected void addTarget(Node node,
java.lang.String[] toAdd)
addTarget in class BaseAssociationEditornode - The node we are dealing withtoAdd - The noderefs of the children to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||