Class FileListComponent

java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UINamingContainer
de.xima.fc.gui.component.file_list.FileListComponent
All Implemented Interfaces:
ValidationCallbackMixin, EventListener, javax.faces.component.NamingContainer, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.component.UniqueIdVendor, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder

public class FileListComponent extends javax.faces.component.UINamingContainer implements ValidationCallbackMixin
Component class for the <xfc:fileList /> component.
Since:
8.5.0
  • Field Summary

    Fields inherited from class javax.faces.component.UINamingContainer

    COMPONENT_FAMILY, COMPONENT_TYPE, SEPARATOR_CHAR_PARAM_NAME

    Fields inherited from class javax.faces.component.UIComponent

    ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY

    Fields inherited from interface javax.faces.component.NamingContainer

    SEPARATOR_CHAR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAllowedExtensions(javax.faces.context.FacesContext facesContext)
     
    getAllowedMimeTypes(javax.faces.context.FacesContext facesContext)
     
    getFileListHandler(javax.faces.context.FacesContext facesContext)
    Get the file list handler that was configured for this component.
    int
    getMaxFiles(javax.faces.context.FacesContext facesContext)
    Get the maximum number of files allowed for this component.
    int
    getMinFiles(javax.faces.context.FacesContext facesContext)
    Get the minimum number of files required for this component.
    getValue(javax.faces.context.FacesContext facesContext)
    Gets the value of the file list component, i.e. the list of file objects.
    void
    processValidators(javax.faces.context.FacesContext context)
     
    void
    setValue(javax.faces.context.FacesContext facesContext, List<Object> value)
    Sets the value of the file list component, i.e. the list of file objects.
    boolean
    validateSelf(javax.faces.context.FacesContext facesContext)
    Validates the component (and not its children), returning whether it is valid or not.

    Methods inherited from class javax.faces.component.UINamingContainer

    createUniqueId, getFamily, getSeparatorChar, visitTree

    Methods inherited from class javax.faces.component.UIComponentBase

    addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent

    Methods inherited from class javax.faces.component.UIComponent

    encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.faces.component.StateHolder

    isTransient, restoreState, saveState, setTransient
  • Constructor Details

    • FileListComponent

      public FileListComponent()
  • Method Details

    • getAllowedExtensions

      public Collection<String> getAllowedExtensions(javax.faces.context.FacesContext facesContext)
    • getAllowedMimeTypes

      public Collection<String> getAllowedMimeTypes(javax.faces.context.FacesContext facesContext)
    • getFileListHandler

      public IFileListHandler<?> getFileListHandler(javax.faces.context.FacesContext facesContext)
      Get the file list handler that was configured for this component.
      Parameters:
      facesContext - The current Faces context.
      Returns:
      The file list handler.
    • getMaxFiles

      public int getMaxFiles(javax.faces.context.FacesContext facesContext)
      Get the maximum number of files allowed for this component.
      Parameters:
      facesContext - The current Faces context.
      Returns:
      The maximum number of files.
    • getMinFiles

      public int getMinFiles(javax.faces.context.FacesContext facesContext)
      Get the minimum number of files required for this component.
      Parameters:
      facesContext - The current Faces context.
      Returns:
      The minimum number of files.
    • getValue

      public List<Object> getValue(javax.faces.context.FacesContext facesContext)
      Gets the value of the file list component, i.e. the list of file objects.
      Parameters:
      facesContext - The current Faces context.
      Returns:
      The list of file objects.
    • processValidators

      public void processValidators(javax.faces.context.FacesContext context)
      Specified by:
      processValidators in interface ValidationCallbackMixin
      Overrides:
      processValidators in class javax.faces.component.UIComponentBase
    • setValue

      public void setValue(javax.faces.context.FacesContext facesContext, List<Object> value)
      Sets the value of the file list component, i.e. the list of file objects.
      Parameters:
      facesContext - The current Faces context.
      value - The new list of file objects.
    • validateSelf

      public boolean validateSelf(javax.faces.context.FacesContext facesContext)
      Description copied from interface: ValidationCallbackMixin
      Validates the component (and not its children), returning whether it is valid or not. You can add Faces messages within this method if validation fails.
      Specified by:
      validateSelf in interface ValidationCallbackMixin
      Parameters:
      facesContext - The current Faces context.
      Returns:
      True if this component is valid, false otherwise.