public abstract class BootstrapAjaxButton extends org.apache.wicket.ajax.markup.html.form.AjaxButton implements IBootstrapButton<BootstrapAjaxButton>
AjaxButton which is styled by twitter bootstrap| Constructor and Description |
|---|
BootstrapAjaxButton(String componentId,
Buttons.Type type)
Construct.
|
BootstrapAjaxButton(String id,
org.apache.wicket.markup.html.form.Form<?> form,
Buttons.Type type)
Construct.
|
BootstrapAjaxButton(String componentId,
org.apache.wicket.model.IModel<String> model,
Buttons.Type type)
Construct.
|
BootstrapAjaxButton(String id,
org.apache.wicket.model.IModel<String> model,
org.apache.wicket.markup.html.form.Form<?> form,
Buttons.Type type)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected Icon |
newIcon(String markupId)
creates a new icon component
|
protected org.apache.wicket.Component |
newLabel(String markupId,
org.apache.wicket.model.IModel<String> model)
creates a new label component
|
protected org.apache.wicket.markup.html.panel.IMarkupSourcingStrategy |
newMarkupSourcingStrategy() |
protected org.apache.wicket.Component |
newSplitter(String markupId)
creates a new splitter component.
|
protected void |
onConfigure() |
BootstrapAjaxButton |
setIconType(IconType iconType)
sets the button's icon which will be rendered in front of the label.
|
BootstrapAjaxButton |
setInverted(boolean inverted)
inverts the icon color
|
BootstrapAjaxButton |
setLabel(org.apache.wicket.model.IModel<String> label)
sets the label of the button.
|
BootstrapAjaxButton |
setSize(Buttons.Size size)
sets the size of the button
|
BootstrapAjaxButton |
setType(Buttons.Type type)
Sets the type of the button
|
getChannel, getForm, newAjaxFormSubmitBehavior, onAfterSubmit, onError, onInitialize, onSubmit, updateAjaxAttributesgetDefaultFormProcessing, getOnClickScript, initModel, onAfterSubmit, onComponentTag, onError, onSubmit, setDefaultFormProcessing, updateModeladd, add, checkRequired, clearInput, convertInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isRequired, isValid, newValidatable, newValidationError, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateCollectionModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebPage, 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, 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, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onEvent, 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, visitParents, visitParents, warn, wrappublic BootstrapAjaxButton(String componentId, Buttons.Type type)
componentId - The component idtype - The type of the buttonpublic BootstrapAjaxButton(String componentId, org.apache.wicket.model.IModel<String> model, Buttons.Type type)
componentId - The component idmodel - The labeltype - The type of buttonpublic BootstrapAjaxButton(String id, org.apache.wicket.markup.html.form.Form<?> form, Buttons.Type type)
id - The component idform - The assigned formtype - The type of buttonpublic BootstrapAjaxButton(String id, org.apache.wicket.model.IModel<String> model, org.apache.wicket.markup.html.form.Form<?> form, Buttons.Type type)
id - The component idmodel - The labelform - The assigned formtype - The type of buttonprotected Icon newIcon(String markupId)
markupId - the component id of the iconprotected org.apache.wicket.Component newLabel(String markupId, org.apache.wicket.model.IModel<String> model)
markupId - the component id of the labelprotected org.apache.wicket.Component newSplitter(String markupId)
markupId - the component id of the splitterprotected final org.apache.wicket.markup.html.panel.IMarkupSourcingStrategy newMarkupSourcingStrategy()
newMarkupSourcingStrategy in class org.apache.wicket.Componentprotected void onConfigure()
onConfigure in class org.apache.wicket.Componentpublic BootstrapAjaxButton setLabel(org.apache.wicket.model.IModel<String> label)
setLabel in class org.apache.wicket.markup.html.form.FormComponent<String>label - the new button labelpublic BootstrapAjaxButton setIconType(IconType iconType)
iconType - the new button icon typepublic BootstrapAjaxButton setSize(Buttons.Size size)
setSize in interface IBootstrapButton<BootstrapAjaxButton>size - The button sizede.agilecoders.wicket.markup.html.bootstrap.button.Buttons.Size}public BootstrapAjaxButton setType(Buttons.Type type)
setType in interface IBootstrapButton<BootstrapAjaxButton>type - The type of the buttonde.agilecoders.wicket.markup.html.bootstrap.button.Buttons.Type}public BootstrapAjaxButton setInverted(boolean inverted)
setInverted in interface Invertible<BootstrapAjaxButton>inverted - true, if inverted version should be usedCopyright © 2013 agilecoders.de. All Rights Reserved.