T - as FacetMetapublic abstract class ScriptableFacetMetaAjaxButton<T extends FacetMeta> extends ScriptableAjaxButton
FacetMetaFacetMeta.getDisplayName() - Display Name of ButtonFacetMeta.getAttributes().DESCRIPTION - Tool Tip that adds a title attribute as description + a class help-text
FacetMeta.getAttributes().pre-action - ChangeListener invoked before anything else is called. The ChangeListener is passed the Object[]{FacetMeta.getAttribute(String).pre-action:event-name, model}FacetMeta.getSubmitTransformer() - The core Action to take on Click of the button. The Component.getDefaultModel() is passed to the TransformerFacetMeta.getDisplayTransformer() - TIf specified and the display Transformer returns null then only it iwll Hide the buttonFacetMeta.getAttributes().after-action - ChangeListener invoked after everything else is called (if no Exception occured). The ChangeListener is passed the Object[]{FacetMeta.getAttribute(String).after-action:event-name, model}
#{T(com.neurosys.content.domain.ContentType).BUTTON}{@code
...
}ATTRIB_ defintiions for the attributyes this Button recognizes in {@link FacetMeta#getAttribute(String)},
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIB_AFTER_ACTION_LISTENER
ChangeListener invoked after everything else is called (if no Exception occured). |
static String |
ATTRIB_DESCRIPTION
Help / Tilte details describing the Button Action to the user
|
static String |
ATTRIB_PRE_ACTION_LISTENER
ChangeListener invoked before anything else is called. |
MARKUP_ATTRIB_ACTION, MARKUP_ATTRIB_PRE_ACTION, proxyActionSuppliedScript, proxyPreActionSuppliedScript| Constructor and Description |
|---|
ScriptableFacetMetaAjaxButton(String id,
org.apache.wicket.model.IModel model,
org.apache.wicket.markup.html.form.Form form,
T facetMeta) |
ScriptableFacetMetaAjaxButton(String id,
org.apache.wicket.model.IModel model,
T facetMeta) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.ajax.IAjaxCallDecorator |
getAjaxCallDecorator() |
T |
getFacetMeta() |
protected abstract void |
onFail(org.apache.wicket.ajax.AjaxRequestTarget target,
Exception e) |
void |
onInitialize() |
protected void |
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form) |
protected abstract void |
onSuccess(Object out,
org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
setFacetMeta(T facetMeta) |
defineAjaxCallDecorator, onComponentTaggetAjaxIndicatorMarkupIdgetDefaultFormProcessing, getOnClickScript, initModel, onSubmit, setDefaultFormProcessing, updateModeladd, add, checkRequired, clearInput, convertInput, convertValue, error, getConvertedInput, 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, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetLabel, setLabelInternalgetMarkupType, getWebPage, getWebRequestadd, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildrenadd, 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, 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, renderHead, 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, wrappublic static final String ATTRIB_DESCRIPTION
public static final String ATTRIB_PRE_ACTION_LISTENER
ChangeListener invoked before anything else is called. The ChangeListener is passed the Object[]{FacetMeta.getAttribute(String).pre-action:event-name, model}public static final String ATTRIB_AFTER_ACTION_LISTENER
ChangeListener invoked after everything else is called (if no Exception occured). The ChangeListener is passed the Object[]{FacetMeta.getAttribute(String).after-action:event-name, model}public ScriptableFacetMetaAjaxButton(String id, org.apache.wicket.model.IModel model, T facetMeta)
public void onInitialize()
onInitialize in class org.apache.wicket.Componentprotected abstract void onSuccess(Object out, org.apache.wicket.ajax.AjaxRequestTarget target)
protected abstract void onFail(org.apache.wicket.ajax.AjaxRequestTarget target,
Exception e)
protected void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
onSubmit in class org.apache.wicket.ajax.markup.html.form.AjaxButtonprotected org.apache.wicket.ajax.IAjaxCallDecorator getAjaxCallDecorator()
getAjaxCallDecorator in class ScriptableAjaxButtonpublic T getFacetMeta()
public void setFacetMeta(T facetMeta)
Copyright © 2018. All rights reserved.