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_NAMEFields 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_KEYFields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllowedExtensions(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.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.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) voidSets 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, visitTreeMethods 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, unsubscribeFromEventMethods 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, setValueExpressionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.faces.component.StateHolder
isTransient, restoreState, saveState, setTransient
-
Constructor Details
-
FileListComponent
public FileListComponent()
-
-
Method Details
-
getAllowedExtensions
-
getAllowedMimeTypes
-
getFileListHandler
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
-
processValidators
public void processValidators(javax.faces.context.FacesContext context) - Specified by:
processValidatorsin interfaceValidationCallbackMixin- Overrides:
processValidatorsin classjavax.faces.component.UIComponentBase
-
setValue
-
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.
-