Module wicket.bootstrap.core
Class NavbarDropDownButton
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.link.AbstractLink
de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown.DropDownButton
de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarDropDownButton
- All Implemented Interfaces:
Activatable,Serializable,Iterable<Component>,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IMetadataContext<Serializable,,Component> IHeaderContributor,IRequestableComponent,IHierarchical<Component>,IClusterable
Special
DropDownButton for a Navbar.- Author:
- miha
- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS -
Constructor Summary
ConstructorsConstructorDescriptionNavbarDropDownButton(IModel<String> model) Construct.NavbarDropDownButton(IModel<String> model, IModel<IconType> iconTypeModel) Construct. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddButtonBehavior(ButtonBehavior buttonBehavior) adds the button behavior to the base button of this dropdown componentprotected WebMarkupContainercreates a new button instanceprotected voidprotected voidMethods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.button.dropdown.DropDownButton
addIconToBaseButton, addToButton, appendToggleMenuScript, createCssClassName, getIcon, getModel, isActive, newButtonIcon, newButtonLabel, newButtonList, newInitializerScript, newMarkupSourcingStrategy, newSubMenuButtons, onComponentTag, renderHead, setAlignment, setIconType, setSize, setType, setVariationMethods inherited from class org.apache.wicket.markup.html.link.AbstractLink
disableLink, getBody, onComponentTagBody, onDetach, setBodyMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenMethods inherited from class org.apache.wicket.Component
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, 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, getMarkupTag, 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, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NavbarDropDownButton
Construct.- Parameters:
model- the label of this dropdown button
-
NavbarDropDownButton
Construct.- Parameters:
model- the label of this dropdown buttoniconTypeModel- the type of the icon
-
-
Method Details
-
onInitialize
protected void onInitialize()- Overrides:
onInitializein classDropDownButton
-
onConfigure
protected void onConfigure()- Overrides:
onConfigurein classComponent
-
addButtonBehavior
Description copied from class:DropDownButtonadds the button behavior to the base button of this dropdown component- Overrides:
addButtonBehaviorin classDropDownButton- Parameters:
buttonBehavior- - behavior to add
-
newButton
protected WebMarkupContainer newButton(String markupId, IModel<String> labelModel, IModel<IconType> iconTypeModel) Description copied from class:DropDownButtoncreates a new button instance- Overrides:
newButtonin classDropDownButton- Parameters:
markupId- The component's idlabelModel- The label text as modeliconTypeModel- The icon type as model- Returns:
- a new button component
-