public class BootstrapBookmarkablePageLink<T> extends org.apache.wicket.markup.html.link.BookmarkablePageLink<T> implements IBootstrapButton<BootstrapBookmarkablePageLink<T>>, Activatable
// creates a big red bookmarkable page link that looks like a button
new BootstrapBookmarkablePageLink("componentId", Page.class, Type.Danger).setSize(Size.Large);
| Constructor and Description |
|---|
BootstrapBookmarkablePageLink(String componentId,
Class<T> pageClass,
Buttons.Type type)
Constructor.
|
BootstrapBookmarkablePageLink(String componentId,
Class<T> pageClass,
org.apache.wicket.request.mapper.parameter.PageParameters parameters,
Buttons.Type type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive(org.apache.wicket.Component button)
Decides whether the current instance (
this) is the active item. |
protected Icon |
newIcon(String markupId)
creates a new icon component
|
protected org.apache.wicket.Component |
newLabel(String markupId)
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() |
BootstrapBookmarkablePageLink<T> |
setIconType(IconType iconType)
sets the button's icon which will be rendered in front of the label.
|
BootstrapBookmarkablePageLink<T> |
setInverted(boolean inverted)
inverts the ui state of a component.
|
BootstrapBookmarkablePageLink<T> |
setLabel(org.apache.wicket.model.IModel<?> label)
sets the label of the button.
|
BootstrapBookmarkablePageLink<T> |
setSize(Buttons.Size size)
sets the size of the button according to the given
Buttons.Size. |
BootstrapBookmarkablePageLink<T> |
setType(Buttons.Type type)
sets the type of a button
|
getPageClass, getPageParameters, getStatelessHint, getURL, linksTo, onClickappendAnchor, getAnchor, getAutoEnable, getModel, getModelObject, getOnClickScript, getPopupSettings, isEnabled, onComponentTag, onLinkClicked, setAnchor, setAutoEnable, setModel, setModelObject, setPopupSettingsdisableLink, getAfterDisabledLink, getBeforeDisabledLink, getBody, isLinkEnabled, onBeforeRender, onComponentTagBody, onDetach, setAfterDisabledLink, setBeforeDisabledLink, setBodygetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, 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, 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, markRendering, modelChanged, modelChanging, onAfterRender, 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 BootstrapBookmarkablePageLink(String componentId, Class<T> pageClass, Buttons.Type type)
T - type of the page classcomponentId - The non-null id of this componentpageClass - The class of page to link totype - The type of the button, e.g. Success, Warn, Default, Menu...public BootstrapBookmarkablePageLink(String componentId, Class<T> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters parameters, Buttons.Type type)
T - type of the page classcomponentId - The non-null id of this componentpageClass - The class of page to link toparameters - The parameters to pass to the new page when the link is clickedtype - The type of the button, e.g. Success, Warn, Default, Menu...protected Icon newIcon(String markupId)
markupId - the component id of the iconprotected org.apache.wicket.Component newLabel(String markupId)
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.Componentpublic BootstrapBookmarkablePageLink<T> setSize(Buttons.Size size)
Buttons.Size.setSize in interface IBootstrapButton<BootstrapBookmarkablePageLink<T>>size - the size of the buttonde.agilecoders.wicket.markup.html.bootstrap.button.Buttons.Size}public BootstrapBookmarkablePageLink<T> setType(Buttons.Type type)
IBootstrapButtonsetType in interface IBootstrapButton<BootstrapBookmarkablePageLink<T>>type - The button type to usede.agilecoders.wicket.markup.html.bootstrap.button.Buttons.Type}public BootstrapBookmarkablePageLink<T> setLabel(org.apache.wicket.model.IModel<?> label)
label - the new button labelpublic BootstrapBookmarkablePageLink<T> setIconType(IconType iconType)
iconType - the new button iconpublic BootstrapBookmarkablePageLink<T> setInverted(boolean inverted)
InvertiblesetInverted in interface Invertible<BootstrapBookmarkablePageLink<T>>inverted - true, if inverted version should be usedprotected void onConfigure()
onConfigure in class org.apache.wicket.Componentpublic boolean isActive(org.apache.wicket.Component button)
Activatablethis) is the active item.isActive in interface Activatablebutton - the current instance as a Componenttrue if the item is the current active oneCopyright © 2013 agilecoders.de. All Rights Reserved.