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
-
-
Constructor Summary
Constructors Constructor Description FileListComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getAllowedExtensions(javax.faces.context.FacesContext facesContext)Collection<String>getAllowedMimeTypes(javax.faces.context.FacesContext facesContext)IFileListHandler<?>getFileListHandler(javax.faces.context.FacesContext facesContext)Get the file list handler that was configured for this component.intgetMaxFiles(javax.faces.context.FacesContext facesContext)Get the maximum number of files allowed for this component.intgetMinFiles(javax.faces.context.FacesContext facesContext)Get the minimum number of files required for this component.List<Object>getValue(javax.faces.context.FacesContext facesContext)Gets the value of the file list component, i.e. the list of file objects.voidprocessValidators(javax.faces.context.FacesContext context)voidsetValue(javax.faces.context.FacesContext facesContext, List<Object> value)Sets the value of the file list component, i.e. the list of file objects.booleanvalidateSelf(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
-
-
-
-
Method Detail
-
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:
processValidatorsin interfaceValidationCallbackMixin- Overrides:
processValidatorsin classjavax.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:ValidationCallbackMixinValidates 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:
validateSelfin interfaceValidationCallbackMixin- Parameters:
facesContext- The current Faces context.- Returns:
- True if this component is valid, false otherwise.
-
-