Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.component.file
Class UIOutputFile

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by 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

Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
UIOutputFile()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
           
 void encodeFileIcon(javax.faces.context.FacesContext context, Blob blob)
           
 javax.el.MethodExpression getConvertAction()
           
 java.lang.String getDownloadLabel()
           
 javax.el.MethodExpression getEditOnlineAction()
           
 java.lang.Boolean getEditOnlineActionRendered()
           
 java.lang.String getFilename()
           
 java.lang.Boolean getIconRendered()
           
 java.lang.Boolean getQueryParent()
           
 java.lang.String getRendererType()
           
 java.lang.String getSeparator()
           
 java.lang.Object getValue()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setConvertAction(javax.el.MethodExpression convertToPdfAction)
           
 void setDownloadLabel(java.lang.String downloadLabel)
           
 void setEditOnlineAction(javax.el.MethodExpression editOnlineAction)
           
 void setEditOnlineActionRendered(java.lang.Boolean editOnlineActionRendered)
           
 void setFilename(java.lang.String filename)
           
 void setIconRendered(java.lang.Boolean iconRendered)
           
 void setQueryParent(java.lang.Boolean queryParent)
           
 void setSeparator(java.lang.String actionsSeparator)
           
 
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
 

Field Detail

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
Constructor Detail

UIOutputFile

public UIOutputFile()
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.