public class DownloadLink
extends org.apache.wicket.markup.html.link.DownloadLink
implements com.googlecode.wicket.jquery.core.IJQueryWidget
DownloadLink
Constructor and Description |
---|
DownloadLink(String id,
org.apache.wicket.model.IModel<File> model)
Constructor
|
DownloadLink(String id,
org.apache.wicket.model.IModel<File> model,
org.apache.wicket.model.IModel<String> filename)
Constructor
|
DownloadLink(String id,
org.apache.wicket.model.IModel<File> model,
org.apache.wicket.model.IModel<String> filename,
String icon)
Constructor
|
DownloadLink(String id,
org.apache.wicket.model.IModel<File> model,
String icon)
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
detachModels, onClick, setCacheDuration, setDeleteAfterDownload
appendAnchor, getAnchor, getAutoEnable, getModel, getModelObject, getOnClickScript, getPopupSettings, getStatelessHint, getURL, isEnabled, linksTo, onComponentTag, onLinkClicked, setAnchor, setAutoEnable, setModel, setModelObject, setPopupSettings
disableLink, getAfterDisabledLink, getBeforeDisabledLink, getBody, isLinkEnabled, onBeforeRender, onComponentTagBody, onDetach, setAfterDisabledLink, setBeforeDisabledLink, setBody
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, 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, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DownloadLink(String id, org.apache.wicket.model.IModel<File> model)
id
- the markup idmodel
- model that contains the file objectpublic DownloadLink(String id, org.apache.wicket.model.IModel<File> model, String icon)
id
- the markup idmodel
- model that contains the file objecticon
- either a JQueryIcon
constant or a 'ui-icon-xxx' css classpublic DownloadLink(String id, org.apache.wicket.model.IModel<File> model, org.apache.wicket.model.IModel<String> filename)
id
- the markup idmodel
- model that contains the file objectfilename
- model that provides the file name to use in the response headerspublic DownloadLink(String id, org.apache.wicket.model.IModel<File> model, org.apache.wicket.model.IModel<String> filename, String icon)
id
- the markup idmodel
- model that contains the file objectfilename
- model that provides the file name to use in the response headersicon
- either a JQueryIcon
constant or a 'ui-icon-xxx' css classprotected void onInitialize()
onInitialize
in class org.apache.wicket.Component
public void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
public void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
public com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
Copyright © 2016 7thWeb. All rights reserved.