org.nuxeo.ecm.platform.ui.web.component.file
Class UIOutputFile
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.nuxeo.ecm.platform.ui.web.component.file.UIOutputFile
- All Implemented Interfaces:
- NamingContainer, StateHolder, ValueHolder
public class UIOutputFile
- extends UIOutput
- implements NamingContainer
UIOutput file.
Attribute named value is the file to be displayed. Its submitted value as
well as filename are handled by sub components in facets. Rendering is
handled here.
If convertAction and editOnlineAction method bindings are set, corresponding
links are rendered. The editOnlineActionRendered is used to filter action
visibility.
- Author:
- Anahide Tchertchian
Methods inherited from class javax.faces.component.UIComponentBase |
broadcast, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
COMPONENT_TYPE
public static final String COMPONENT_TYPE
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
- See Also:
- Constant Field Values
UIOutputFile
public UIOutputFile()
getRendererType
public String getRendererType()
- Overrides:
getRendererType
in class UIComponentBase
getValue
public Object getValue()
- Specified by:
getValue
in interface ValueHolder
- Overrides:
getValue
in class UIOutput
getFilename
public String getFilename()
setFilename
public void setFilename(String filename)
getConvertAction
public MethodExpression getConvertAction()
setConvertAction
public void setConvertAction(MethodExpression convertToPdfAction)
getEditOnlineAction
public MethodExpression getEditOnlineAction()
setEditOnlineAction
public void setEditOnlineAction(MethodExpression editOnlineAction)
getEditOnlineActionRendered
public Boolean getEditOnlineActionRendered()
setEditOnlineActionRendered
public void setEditOnlineActionRendered(Boolean editOnlineActionRendered)
getSeparator
public String getSeparator()
getQueryParent
public Boolean getQueryParent()
setQueryParent
public void setQueryParent(Boolean queryParent)
setSeparator
public void setSeparator(String actionsSeparator)
getDownloadLabel
public String getDownloadLabel()
setDownloadLabel
public void setDownloadLabel(String downloadLabel)
getIconRendered
public Boolean getIconRendered()
setIconRendered
public void setIconRendered(Boolean iconRendered)
encodeBegin
public void encodeBegin(FacesContext context)
throws IOException
- Overrides:
encodeBegin
in class UIComponentBase
- Throws:
IOException
encodeFileIcon
public void encodeFileIcon(FacesContext context,
Blob blob)
throws IOException
- Throws:
IOException
saveState
public Object saveState(FacesContext context)
- Specified by:
saveState
in interface StateHolder
- Overrides:
saveState
in class UIOutput
restoreState
public void restoreState(FacesContext context,
Object state)
- Specified by:
restoreState
in interface StateHolder
- Overrides:
restoreState
in class UIOutput
Copyright © 2011 Nuxeo SAS. All Rights Reserved.