public class UIOutputFile extends UIOutput implements NamingContainer
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.
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
SEPARATOR_CHAR
Constructor and Description |
---|
UIOutputFile() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(FacesContext context) |
void |
encodeFileIcon(FacesContext context,
Blob blob) |
MethodExpression |
getConvertAction() |
String |
getDownloadLabel() |
MethodExpression |
getEditOnlineAction() |
Boolean |
getEditOnlineActionRendered() |
String |
getFilename() |
Boolean |
getIconRendered() |
Boolean |
getQueryParent() |
String |
getRendererType() |
String |
getSeparator() |
Object |
getValue() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setConvertAction(MethodExpression convertToPdfAction) |
void |
setDownloadLabel(String downloadLabel) |
void |
setEditOnlineAction(MethodExpression editOnlineAction) |
void |
setEditOnlineActionRendered(Boolean editOnlineActionRendered) |
void |
setFilename(String filename) |
void |
setIconRendered(Boolean iconRendered) |
void |
setQueryParent(Boolean queryParent) |
void |
setSeparator(String actionsSeparator) |
getConverter, getFamily, getLocalValue, setConverter, setValue
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
encodeAll, getContainerClientId, getValueExpression, setValueExpression
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getRendererType()
getRendererType
in class UIComponentBase
public Object getValue()
getValue
in interface ValueHolder
getValue
in class UIOutput
public String getFilename()
public void setFilename(String filename)
public MethodExpression getConvertAction()
public void setConvertAction(MethodExpression convertToPdfAction)
public MethodExpression getEditOnlineAction()
public void setEditOnlineAction(MethodExpression editOnlineAction)
public Boolean getEditOnlineActionRendered()
public void setEditOnlineActionRendered(Boolean editOnlineActionRendered)
public String getSeparator()
public Boolean getQueryParent()
public void setQueryParent(Boolean queryParent)
public void setSeparator(String actionsSeparator)
public String getDownloadLabel()
public void setDownloadLabel(String downloadLabel)
public Boolean getIconRendered()
public void setIconRendered(Boolean iconRendered)
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
public void encodeFileIcon(FacesContext context, Blob blob) throws IOException
IOException
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIOutput
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIOutput
Copyright © 2011 Nuxeo SA. All Rights Reserved.