public abstract class UploadFilePanel extends org.apache.wicket.markup.html.panel.GenericPanel<UploadFileModel>
| Constructor and Description |
|---|
UploadFilePanel(String id,
org.apache.wicket.model.IModel<UploadFileModel> model)
Instantiates a new upload file panel.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.wicket.markup.html.basic.Label |
getButtonLabel()
Gets the button label.
|
org.apache.wicket.markup.html.basic.Label |
getFileInputLabel()
Gets the file input label.
|
org.apache.wicket.markup.html.form.upload.FileUploadField |
getFileUploadField()
Gets the file upload field.
|
org.apache.wicket.markup.html.form.Form<?> |
getForm()
Gets the form.
|
org.apache.wicket.util.lang.Bytes |
getMaxSize()
Gets the max size.
|
org.apache.wicket.markup.html.form.Button |
getSubmitButton()
Gets the submit button.
|
protected org.apache.wicket.markup.html.form.Button |
newButton(String id,
org.apache.wicket.markup.html.form.Form<?> form)
Factory method for creating the Button.
|
protected org.apache.wicket.markup.html.basic.Label |
newButtonLabel(String id,
String resourceKey,
String defaultValue,
org.apache.wicket.Component component)
Factory method for creating the button Label.
|
protected org.apache.wicket.markup.html.basic.Label |
newFileInputLabel(String id,
String resourceKey,
String defaultValue,
org.apache.wicket.Component component)
Factory method for creating the fileInput Label.
|
protected org.apache.wicket.markup.html.form.upload.FileUploadField |
newFileUploadField(String id)
Factory method for creating the FileUploadField.
|
protected org.apache.wicket.markup.html.form.Form<?> |
newForm(String id,
org.apache.wicket.model.IModel<?> model)
Factory method for creating the Form.
|
protected org.apache.wicket.util.lang.Bytes |
newMaxSize()
Factory method for that sets the maximum size of the uploaded file.
|
protected org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar |
newUploadProgressBar(String id,
org.apache.wicket.markup.html.form.Form<?> form,
org.apache.wicket.markup.html.form.upload.FileUploadField uploadField)
Factory method for creating the UploadProgressBar.
|
protected abstract void |
onUpload(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form,
boolean error)
Template method that must be implemented from all derived classes.
|
getModel, getModelObject, setModel, setModelObjectgetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic UploadFilePanel(String id, org.apache.wicket.model.IModel<UploadFileModel> model)
id - the idmodel - the modelprotected org.apache.wicket.markup.html.basic.Label newFileInputLabel(String id, String resourceKey, String defaultValue, org.apache.wicket.Component component)
id - the idresourceKey - the resource keydefaultValue - the default valuecomponent - the componentprotected org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar newUploadProgressBar(String id, org.apache.wicket.markup.html.form.Form<?> form, org.apache.wicket.markup.html.form.upload.FileUploadField uploadField)
id - the idform - the formuploadField - the upload fieldprotected org.apache.wicket.markup.html.basic.Label newButtonLabel(String id, String resourceKey, String defaultValue, org.apache.wicket.Component component)
id - the idresourceKey - the resource keydefaultValue - the default valuecomponent - the componentpublic org.apache.wicket.markup.html.basic.Label getFileInputLabel()
public org.apache.wicket.markup.html.form.upload.FileUploadField getFileUploadField()
public org.apache.wicket.markup.html.basic.Label getButtonLabel()
public org.apache.wicket.markup.html.form.Form<?> getForm()
public org.apache.wicket.markup.html.form.Button getSubmitButton()
public org.apache.wicket.util.lang.Bytes getMaxSize()
protected org.apache.wicket.markup.html.form.Button newButton(String id, org.apache.wicket.markup.html.form.Form<?> form)
id - the idform - the formprotected org.apache.wicket.markup.html.form.upload.FileUploadField newFileUploadField(String id)
id - the idprotected org.apache.wicket.markup.html.form.Form<?> newForm(String id, org.apache.wicket.model.IModel<?> model)
id - the idmodel - the modelprotected org.apache.wicket.util.lang.Bytes newMaxSize()
protected abstract void onUpload(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form,
boolean error)
target - the targetform - the formerror - flag that indicates that an error occured.Copyright © 2015. All rights reserved.