public class TabsPlugin extends RenderPlugin
IRenderService
s using a tabbing interface.
Configuration:
IconSize
sizes. By default, 'm' will be used.
Modifier and Type | Class and Description |
---|---|
protected class |
TabsPlugin.Tab |
RenderService.ExtensionPoint
Modifier and Type | Field and Description |
---|---|
static String |
MAX_TAB_TITLE_LENGTH |
static String |
TAB_ICON_SIZE |
static String |
TAB_ID |
BEHAVIOR, children, CSS_ID, DEFAULT_LOCALE, EXTENSIONS_ID, FEEDBACK, MODEL_ID, SKIN_ID, VARIANT_ID, VISIBLE, WICKET_ID
Constructor and Description |
---|
TabsPlugin(IPluginContext context,
IPluginConfig properties) |
Modifier and Type | Method and Description |
---|---|
void |
blurTabs() |
void |
disableTabRefocus() |
void |
focus(IRenderService child)
Set focus on the specified child.
|
void |
focusRecentTab() |
void |
focusRecentTabUnlessHidden() |
protected TabbedPanel |
getTabbedPanel() |
String |
getVariation() |
boolean |
hasOpenTabs() |
void |
hide() |
protected TabbedPanel |
newTabbedPanel(String id,
List<TabsPlugin.Tab> tabs,
org.apache.wicket.MarkupContainer tabsContainer) |
void |
onDetach() |
protected void |
onSelectTab(int index)
Template method for subclasses.
|
protected void |
onTabActivated(TabsPlugin.Tab tab) |
protected void |
onTabDeactivated(TabsPlugin.Tab tab) |
void |
render(PluginRequestTarget target)
Called after user events and JCR events have been handled, but before
the rendering has started.
|
void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
void |
show()
Deprecated.
use
focusRecentTab() or focusRecentTabUnlessHidden() instead. |
newPlugin, newPlugin, onStart, onStop, start, stop
createExtensionPoint
addExtensionPoint, bind, getBundleName, getComponent, getDialogService, getId, getMarkupId, getModel, getModelObject, getObservable, getParentService, getPluginConfig, getPluginContext, getResourceBundleModel, getSession, isActive, onAfterRender, onBeforeRender, onComponentTag, onComponentTagBody, onEvent, redraw, removeExtensionPoint, setDefaultModel, setModel, setModelObject, unbind, updateModel
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, 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, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String TAB_ID
public static final String MAX_TAB_TITLE_LENGTH
public static final String TAB_ICON_SIZE
public TabsPlugin(IPluginContext context, IPluginConfig properties)
protected TabbedPanel newTabbedPanel(String id, List<TabsPlugin.Tab> tabs, org.apache.wicket.MarkupContainer tabsContainer)
public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.Component
public void render(PluginRequestTarget target)
AbstractRenderService
Component
s with
the request target to enlist in the rendering phase.
Implementations that use extensions must call the same method on those.
render
in interface IRenderService
render
in class RenderPlugin
public void focus(IRenderService child)
AbstractRenderService
focus
in interface IRenderService
focus
in class AbstractRenderService
child
- The extension that requests focus. This parameter can be
null, in which case the Component should set focus to itself.public void onDetach()
onDetach
in class org.apache.wicket.Component
public String getVariation()
getVariation
in class AbstractRenderService
public boolean hasOpenTabs()
protected void onSelectTab(int index)
index
- Index of the tabpublic void hide()
public void blurTabs()
public void disableTabRefocus()
@Deprecated public void show()
focusRecentTab()
or focusRecentTabUnlessHidden()
instead.public void focusRecentTabUnlessHidden()
public void focusRecentTab()
protected final TabbedPanel getTabbedPanel()
protected void onTabActivated(TabsPlugin.Tab tab)
protected void onTabDeactivated(TabsPlugin.Tab tab)
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.