BO
- The type of the primary BO to be deletedpublic abstract class AbstractDeleteButton<BO extends EntityWithSurrogateKey>
extends org.apache.wicket.markup.html.link.Link<BO>
Modifier and Type | Field and Description |
---|---|
protected Integer |
boId
the id of the BO to be deleted
|
protected DaoForEntityWithSurrogateKey<BO> |
dao
the DAO to do the deletion
|
protected String |
objName
the root of the component name
|
protected FrontendPage |
redirectPage
the page to which to redirect after the deletion
|
Constructor and Description |
---|
AbstractDeleteButton(DaoForEntityWithSurrogateKey<BO> dao,
Integer boId,
String objName,
DeleteConfirmationMessage message,
FrontendPage redirectPage) |
AbstractDeleteButton(DaoForEntityWithSurrogateKey<BO> dao,
Integer boId,
String compName,
String objName,
DeleteConfirmationMessage message,
FrontendPage redirectPage) |
Modifier and Type | Method and Description |
---|---|
protected static String |
createCompName(String objName)
Constructs the name of the component from the given name root.
|
protected abstract void |
delete()
Does the actual deletion operation.
|
void |
onClick() |
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
getWebPage, getWebRequest
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, 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, getFeedbackMessage, 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, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, 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, urlFor, urlFor, visitParents, warn, wrap
protected DaoForEntityWithSurrogateKey<BO extends EntityWithSurrogateKey> dao
protected Integer boId
protected String objName
protected FrontendPage redirectPage
public AbstractDeleteButton(DaoForEntityWithSurrogateKey<BO> dao, Integer boId, String compName, String objName, DeleteConfirmationMessage message, FrontendPage redirectPage)
dao
- boId
- compName
- objName
- message
- redirectPage
- public AbstractDeleteButton(DaoForEntityWithSurrogateKey<BO> dao, Integer boId, String objName, DeleteConfirmationMessage message, FrontendPage redirectPage)
dao
- boId
- objName
- message
- redirectPage
- public void onClick()
onClick
in class org.apache.wicket.markup.html.link.Link<BO extends EntityWithSurrogateKey>
protected static String createCompName(String objName)
objName
- Copyright © 2013. All Rights Reserved.