public class Navbar extends org.apache.wicket.markup.html.panel.Panel implements Invertible<Navbar>
| Modifier and Type | Class and Description |
|---|---|
static class |
Navbar.ComponentPosition
indicates the position of a button inside the navigation bar.
|
static class |
Navbar.Position
indicates the position of the navigation bar itself
|
| Constructor and Description |
|---|
Navbar(String componentId)
Construct.
|
Navbar(String componentId,
org.apache.wicket.model.IModel<?> model)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
Navbar |
addComponents(INavbarComponent... components)
adds a component to the given position inside the navbar
|
Navbar |
addComponents(List<INavbarComponent> components)
adds a component to the given position inside the navbar
|
Navbar |
brandName(org.apache.wicket.model.IModel<String> brandName)
sets the label of the brand name button
|
Navbar |
fluid()
marks the navigation to be rendered inside a fluid page layout.
|
protected Class<? extends org.apache.wicket.Page> |
getHomePage() |
Navbar.Position |
getPosition() |
boolean |
isFluid() |
protected org.apache.wicket.markup.html.image.Image |
newBrandImage(String markupId) |
protected org.apache.wicket.markup.html.basic.Label |
newBrandLabel(String markupId) |
protected org.apache.wicket.markup.html.link.BookmarkablePageLink<org.apache.wicket.Page> |
newBrandNameLink(String componentId)
creates a new brand name button.
|
protected org.apache.wicket.Component |
newNavigation(String componentId,
org.apache.wicket.model.IModel<List<org.apache.wicket.Component>> listModel)
creates a new navigation list
|
protected void |
onConfigure() |
Navbar |
setBrandImage(org.apache.wicket.request.resource.ResourceReference imageResourceReference,
org.apache.wicket.model.IModel<String> imageAltAttrModel)
sets an image in the brand button
|
Navbar |
setInverted(boolean invert)
inverts the navbar backgorund color
|
Navbar |
setPosition(Navbar.Position position)
Sets the prefered position of the navigation bar on the screen.
|
getWebPage, 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, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onDetach, 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 Navbar(String componentId)
componentId - The non-null id of this componentpublic Navbar(String componentId, org.apache.wicket.model.IModel<?> model)
componentId - The non-null id of this componentmodel - The component's modelprotected org.apache.wicket.Component newNavigation(String componentId, org.apache.wicket.model.IModel<List<org.apache.wicket.Component>> listModel)
componentId - The non-null id of a new navigation componentlistModel - The component's modelprotected org.apache.wicket.markup.html.link.BookmarkablePageLink<org.apache.wicket.Page> newBrandNameLink(String componentId)
componentId - The non-null id of a new navigation componentprotected org.apache.wicket.markup.html.basic.Label newBrandLabel(String markupId)
markupId - The components markup idprotected org.apache.wicket.markup.html.image.Image newBrandImage(String markupId)
markupId - The components markup idImageprotected Class<? extends org.apache.wicket.Page> getHomePage()
protected void onConfigure()
onConfigure in class org.apache.wicket.Componentpublic Navbar.Position getPosition()
public boolean isFluid()
public final Navbar addComponents(INavbarComponent... components)
components - the components to addpublic final Navbar addComponents(List<INavbarComponent> components)
components - the components to addpublic Navbar brandName(org.apache.wicket.model.IModel<String> brandName)
brandName - the brand name labelpublic Navbar setBrandImage(org.apache.wicket.request.resource.ResourceReference imageResourceReference, org.apache.wicket.model.IModel<String> imageAltAttrModel)
imageResourceReference - requiredimageAltAttrModel - optional, but should be providedpublic Navbar setInverted(boolean invert)
setInverted in interface Invertible<Navbar>invert - whether to invert the color or notpublic Navbar fluid()
public Navbar setPosition(Navbar.Position position)
Copyright © 2013 agilecoders.de. All Rights Reserved.