public class BootstrapButton extends org.apache.wicket.markup.html.form.Button implements IBootstrapButton<BootstrapButton>
Button| Constructor and Description |
|---|
BootstrapButton(String componentId,
Buttons.Type type)
Construct.
|
BootstrapButton(String componentId,
org.apache.wicket.model.IModel<String> model,
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() |
BootstrapButton |
setIconType(IconType iconType)
sets the button's icon which will be rendered in front of the label.
|
BootstrapButton |
setInverted(boolean inverted)
inverts the ui state of a component.
|
BootstrapButton |
setLabel(org.apache.wicket.model.IModel<String> label)
sets the label of the button.
|
BootstrapButton |
setSize(Buttons.Size size)
sets the size of a button
|
BootstrapButton |
setType(Buttons.Type type)
sets the type of a button
|
getDefaultFormProcessing, getForm, 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, 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, visitParents, visitParents, warn, wrappublic BootstrapButton(String componentId, Buttons.Type type)
componentId - The component idtype - The type of the buttonpublic BootstrapButton(String componentId, org.apache.wicket.model.IModel<String> model, Buttons.Type type)
componentId - The component idmodel - The label modeltype - The type of the 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 void onConfigure()
onConfigure in class org.apache.wicket.Componentprotected org.apache.wicket.markup.html.panel.IMarkupSourcingStrategy newMarkupSourcingStrategy()
newMarkupSourcingStrategy in class org.apache.wicket.Componentpublic BootstrapButton setLabel(org.apache.wicket.model.IModel<String> label)
setLabel in class org.apache.wicket.markup.html.form.FormComponent<String>label - the new button labelpublic BootstrapButton setIconType(IconType iconType)
iconType - the new button iconpublic BootstrapButton setSize(Buttons.Size size)
IBootstrapButtonsetSize in interface IBootstrapButton<BootstrapButton>size - The button size to usede.agilecoders.wicket.markup.html.bootstrap.button.Buttons.Size}public BootstrapButton setType(Buttons.Type type)
IBootstrapButtonsetType in interface IBootstrapButton<BootstrapButton>type - The button type to usede.agilecoders.wicket.markup.html.bootstrap.button.Buttons.Type}public BootstrapButton setInverted(boolean inverted)
InvertiblesetInverted in interface Invertible<BootstrapButton>inverted - true, if inverted version should be usedCopyright © 2013 agilecoders.de. All Rights Reserved.