public abstract class EditableComponentWrapper extends org.apache.wicket.markup.html.form.FormComponentPanel<Void>
WebComponent
(span, img, etc)Constructor and Description |
---|
EditableComponentWrapper(String id) |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.wicket.Component |
addComponent(String componentId)
Add custom Component to the container.
|
org.apache.wicket.ajax.markup.html.AjaxLink |
getDeleteLink() |
org.apache.wicket.ajax.markup.html.AjaxLink |
getEditLink() |
org.apache.wicket.Component |
getWrappedComponent() |
boolean |
isAllowDelete() |
boolean |
isAllowEdit() |
boolean |
isConfirmDelete() |
protected abstract void |
onDelete(org.apache.wicket.ajax.AjaxRequestTarget target)
Override to define onDelete Action
|
protected abstract void |
onEdit(org.apache.wicket.ajax.AjaxRequestTarget target)
Override to define onEdit Action
|
void |
onInitialize() |
EditableComponentWrapper |
setAllowDelete(boolean allowDelete) |
EditableComponentWrapper |
setAllowEdit(boolean allowEdit) |
void |
setConfirmDelete(boolean confirmDelete) |
checkRequired, newHeaderPartContainer, onComponentTag, onComponentTagBody, renderHead
add, add, clearInput, convertInput, convertValue, error, getConvertedInput, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isPersistent, isRequired, isValid, newValidatable, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setModelValue, setPersistent, setRequired, setType, shouldTrimInput, supportsPersistence, trim, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder
getLabel, setLabelInternal
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, 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, 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, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onConfigure, onEndRequest, 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 EditableComponentWrapper(String id)
public abstract org.apache.wicket.Component addComponent(String componentId)
componentId
- as StringComponent
WebComponent
, can override for extended use also for other types.public void onInitialize()
onInitialize
in class org.apache.wicket.Component
public final org.apache.wicket.ajax.markup.html.AjaxLink getDeleteLink()
public final org.apache.wicket.ajax.markup.html.AjaxLink getEditLink()
public final org.apache.wicket.Component getWrappedComponent()
protected abstract void onDelete(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- protected abstract void onEdit(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- public boolean isAllowDelete()
public EditableComponentWrapper setAllowDelete(boolean allowDelete)
public boolean isAllowEdit()
public EditableComponentWrapper setAllowEdit(boolean allowEdit)
public boolean isConfirmDelete()
public void setConfirmDelete(boolean confirmDelete)
Copyright © 2018. All rights reserved.