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:
- javax.faces.component.NamingContainer, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
public class UIOutputFile
- extends javax.faces.component.UIOutput
- implements javax.faces.component.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
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
Methods inherited from class javax.faces.component.UIOutput |
getConverter, getFamily, getLocalValue, setConverter, setValue |
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 |
Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
- See Also:
- Constant Field Values
UIOutputFile
public UIOutputFile()
getRendererType
public java.lang.String getRendererType()
- Overrides:
getRendererType
in class javax.faces.component.UIComponentBase
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface javax.faces.component.ValueHolder
- Overrides:
getValue
in class javax.faces.component.UIOutput
getFilename
public java.lang.String getFilename()
setFilename
public void setFilename(java.lang.String filename)
getConvertAction
public javax.el.MethodExpression getConvertAction()
setConvertAction
public void setConvertAction(javax.el.MethodExpression convertToPdfAction)
getEditOnlineAction
public javax.el.MethodExpression getEditOnlineAction()
setEditOnlineAction
public void setEditOnlineAction(javax.el.MethodExpression editOnlineAction)
getEditOnlineActionRendered
public java.lang.Boolean getEditOnlineActionRendered()
setEditOnlineActionRendered
public void setEditOnlineActionRendered(java.lang.Boolean editOnlineActionRendered)
getSeparator
public java.lang.String getSeparator()
getQueryParent
public java.lang.Boolean getQueryParent()
setQueryParent
public void setQueryParent(java.lang.Boolean queryParent)
setSeparator
public void setSeparator(java.lang.String actionsSeparator)
getDownloadLabel
public java.lang.String getDownloadLabel()
setDownloadLabel
public void setDownloadLabel(java.lang.String downloadLabel)
getIconRendered
public java.lang.Boolean getIconRendered()
setIconRendered
public void setIconRendered(java.lang.Boolean iconRendered)
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.component.UIComponentBase
- Throws:
java.io.IOException
encodeFileIcon
public void encodeFileIcon(javax.faces.context.FacesContext context,
Blob blob)
throws java.io.IOException
- Throws:
java.io.IOException
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class javax.faces.component.UIOutput
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class javax.faces.component.UIOutput
Copyright © 2010 Nuxeo SAS. All Rights Reserved.