public class FileUploadWidget
extends org.apache.wicket.markup.html.panel.Panel
FileUploadWidgetSettings
.Constructor and Description |
---|
FileUploadWidget(String id,
FileUploadWidgetSettings settings) |
FileUploadWidget(String id,
FileUploadWidgetSettings settings,
FileUploadValidationService validator) |
Modifier and Type | Method and Description |
---|---|
protected String |
getAjaxIndicatorId()
Traverse up the component tree in search for an IAjaxIndicatorAware component is used to indicate a busy state
while uploading.
|
String |
getAjaxIndicatorStopScript() |
String |
getStartAjaxUploadScript()
Components that embed a FileUploadWidget might have their own actions for triggering the upload, this method
returns the javascript call to initiate it.
|
String |
hasFileSelectedScript() |
boolean |
isFlashUpload()
Detect if flash is installed and if the correct version of the flash plugin is found.
|
protected void |
onBeforeRender()
Check if the client supports flash by looking up the WebAppBehavior in the page which test the client for flash
on the first load and saves the version.
|
protected void |
onFileUpload(org.apache.wicket.markup.html.form.upload.FileUpload fileUpload)
Hook method for subclasses to handle an upload once it has passed validation.
|
protected void |
onFinishAjaxUpload(org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
onFinishHtmlUpload()
The HTML4 upload will collect the new files in the MultiFileUploadComponent, after the form
has been completly submitted, onFinishHtmlUpload is called which will process
|
protected void |
onFinishUpload() |
protected void |
renderFlashUpload() |
protected void |
renderJavascriptUpload() |
onComponentTag, onComponentTagBody, renderHead
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
public FileUploadWidget(String id, FileUploadWidgetSettings settings)
public FileUploadWidget(String id, FileUploadWidgetSettings settings, FileUploadValidationService validator)
protected void onBeforeRender()
onBeforeRender
in class org.apache.wicket.Component
protected String getAjaxIndicatorId()
protected void renderFlashUpload()
public boolean isFlashUpload()
true
if flash and the correct version is detected, false
otherwisepublic String getStartAjaxUploadScript()
protected void renderJavascriptUpload()
protected void onFinishAjaxUpload(org.apache.wicket.ajax.AjaxRequestTarget target)
public void onFinishHtmlUpload()
protected final void onFinishUpload()
protected void onFileUpload(org.apache.wicket.markup.html.form.upload.FileUpload fileUpload)
fileUpload
- The uploaded filepublic String getAjaxIndicatorStopScript()
public String hasFileSelectedScript()
Copyright © 2007-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.