|
RichFaces UI Components UI 4.2.2.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.richfaces.component.AbstractFileUpload
public abstract class AbstractFileUpload
The <rich:fileUpload> component allows the user to upload files to a server. It features multiple uploads, progress bars, restrictions on file types, and restrictions on sizes of the files to be uploaded.
Field Summary | |
---|---|
static String |
COMPONENT_FAMILY
|
static String |
COMPONENT_TYPE
|
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 |
Constructor Summary | |
---|---|
AbstractFileUpload()
|
Method Summary | |
---|---|
void |
addFileUploadListener(org.richfaces.event.FileUploadListener listener)
Add a new FileUploadListener to the set of listeners interested in being notified when
org.richfaces.FileUploadEvent s occur. |
abstract String |
getAcceptedTypes()
Defines comma separated list of file extensions accepted by component. |
abstract String |
getAddLabel()
The label for the Add button. |
abstract String |
getClearAllLabel()
The label for the Clear button. |
abstract String |
getClearLabel()
The label displayed for the Clear link |
abstract String |
getDeleteLabel()
The label displayed for the Delete link |
abstract String |
getDoneLabel()
The label displayed when a file is successfully uploaded. |
org.richfaces.event.FileUploadListener[] |
getFileUploadListeners()
Return the set of registered FileUploadListener s for this AbstractFileUpload instance. |
abstract String |
getListHeight()
Defines height of file list. |
abstract String |
getMaxFilesQuantity()
Defines maximum number of files allowed to be uploaded. |
abstract String |
getOnclear()
Javascript code executed when a file is cleared |
abstract String |
getOnfilesubmit()
Javascript code executed when a file is submitted |
abstract String |
getOntyperejected()
Javascript code executed when a file does not meet the conditions stated by acceptedTypes parameter. |
abstract String |
getOnuploadcomplete()
Javascript code executed when a file upload is complete |
abstract String |
getServerErrorLabel()
The label displayed when a file upload fails due to a server error. |
abstract String |
getSizeExceededLabel()
The label displayed when a file exceeds the size limit. |
abstract String |
getUploadLabel()
The label for the Add button. |
abstract boolean |
isDisabled()
If "true", this component is disabled |
abstract boolean |
isNoDuplicate()
If "true" duplicate file uploads are prevented |
void |
processEvent(javax.faces.event.ComponentSystemEvent event)
|
void |
removeFileUploadListener(org.richfaces.event.FileUploadListener listener)
Remove an existing FileUploadListener (if any) from the set of listeners interested in being notified when
FileUploadListener s occur. |
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, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, 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, getFamily, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
Constructor Detail |
---|
public AbstractFileUpload()
Method Detail |
---|
public abstract String getAcceptedTypes()
public abstract String getMaxFilesQuantity()
public abstract boolean isDisabled()
public abstract boolean isNoDuplicate()
If "true" duplicate file uploads are prevented
Default is "false"
public abstract String getOnfilesubmit()
public abstract String getOntyperejected()
public abstract String getOnuploadcomplete()
public abstract String getOnclear()
public abstract String getAddLabel()
public abstract String getUploadLabel()
public abstract String getClearAllLabel()
public abstract String getDoneLabel()
public abstract String getSizeExceededLabel()
public abstract String getServerErrorLabel()
public abstract String getClearLabel()
public abstract String getDeleteLabel()
public abstract String getListHeight()
Defines height of file list.
Default value is "210px".
public void processEvent(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.ComponentSystemEventListener
processEvent
in class javax.faces.component.UIComponent
javax.faces.event.AbortProcessingException
public void addFileUploadListener(org.richfaces.event.FileUploadListener listener)
Add a new FileUploadListener
to the set of listeners interested in being notified when
org.richfaces.FileUploadEvent
s occur.
listener
- The FileUploadListener
to be added
NullPointerException
- if listener
is null
public org.richfaces.event.FileUploadListener[] getFileUploadListeners()
Return the set of registered FileUploadListener
s for this AbstractFileUpload
instance. If there are no
registered listeners, a zero-length array is returned.
public void removeFileUploadListener(org.richfaces.event.FileUploadListener listener)
Remove an existing FileUploadListener
(if any) from the set of listeners interested in being notified when
FileUploadListener
s occur.
listener
- The FileUploadListener
to be removed
NullPointerException
- if listener
is null
|
RichFaces UI Components UI 4.2.2.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |