public class UjoTabbedPanel<T extends UjoTab>
extends org.apache.wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel<T>
List<ITab> tabs = new ArrayList<ITab>();
tabs.add(new UjoTab("Hotels", "hotel", HotelPanel.class));
tabs.add(new UjoTab("Booking", "booking", BookingPanel.class));
tabs.add(new UjoTab("Customer", "customer", CustomerPanel.class));
tabs.add(new UjoTab("About", "about", AboutPanel.class));
panel.add(new UjoTabbedPanel("tabs", tabs));
| Constructor and Description |
|---|
UjoTabbedPanel(String id,
List<T> tabs)
Constructor with a model for all tabs
|
UjoTabbedPanel(String id,
List<T> tabs,
org.apache.wicket.model.IModel<Integer> model) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDefaultSelectedTab()
Get Default selectedTab from Session
|
protected org.apache.wicket.markup.html.WebMarkupContainer |
newLink(String linkId,
int index) |
protected void |
onAjaxUpdate(org.apache.wicket.ajax.AjaxRequestTarget target)
Save selected tab
|
void |
selectedTab(Class<? extends UjoTab> tab,
org.apache.wicket.ajax.AjaxRequestTarget target)
Select new tab.
|
protected void |
setDefaultSelectedTab(Integer index)
Save selected tab to a Session
|
org.apache.wicket.extensions.markup.html.tabs.TabbedPanel<T> |
setSelectedTab(int index)
Assign a selected tab and add a user CSS class.
|
getLastTabCssClass, getSelectedTab, getSelectedTabCssClass, getTabContainerCssClass, getTabs, initModel, newTabContainer, newTabsContainer, newTitle, onBeforeRender, onDetachgetWebPage, 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, clearOriginalDestination, 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, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onComponentTag, onConfigure, 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 UjoTabbedPanel(String id, List<T> tabs)
id - tabs - protected void onAjaxUpdate(org.apache.wicket.ajax.AjaxRequestTarget target)
public final void selectedTab(Class<? extends UjoTab> tab, org.apache.wicket.ajax.AjaxRequestTarget target)
public final org.apache.wicket.extensions.markup.html.tabs.TabbedPanel<T> setSelectedTab(int index)
protected final int getDefaultSelectedTab()
protected void setDefaultSelectedTab(Integer index)
Copyright © 2014. All Rights Reserved.