public class BorderLayout extends org.apache.wicket.markup.html.WebMarkupContainer implements IBorderLayout, ISplitterListener
WebMarkupContainer based on vertical and horizontal SplitterBehaviorsgetVerticalPanes() and getHorizontalPanes() may be overridden to change the default layoutBorderLayout IS a WebMarkupContainer. If you wish to apply a BorderLayout on an existing Page or an existing Panel, consider implementing the IBorderLayout interface.
<div wicket:id="layout">
<div id="vertical">
<div id="top">
<br/>
</div>
<div id="horizontal">
<div id="left">
<br/>
</div>
<div id="center">
<br/>
</div>
<div id="right">
<br/>
</div>
</div>
<div id="bottom">
<br/>
</div>
</div>
</div>
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
BorderLayout(String id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBorderLayout(org.apache.wicket.MarkupContainer container)
Method that is designed to create the BorderLayout.
A typical implementation is: |
void |
collapse(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String selector,
String pane)
Collapses the specified pane
Note: Invoking the method will not trigger a collapse event. |
void |
expand(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String selector,
String pane)
Expands the specified pane
Note: Invoking the method will not trigger an expand event. |
String |
getHorizontalPanes()
Gets horizontal panes in a JSON array
|
String |
getVerticalPanes()
Gets vertical panes in a JSON array
|
boolean |
isCollapseEventEnabled()
Indicates whether the 'collapse' event is enabled.
If true, the ISplitterListener.onCollapse(AjaxRequestTarget, String) event will be triggered. |
boolean |
isExpandEventEnabled()
Indicates whether the 'expand' event is enabled.
If true, the ISplitterListener.onExpand(AjaxRequestTarget, String) event will be triggered. |
protected SplitterBehavior |
newHorizontalSplitterBehavior(String selector,
String panes)
Gets a new horizontal
SplitterBehavior |
protected SplitterBehavior |
newVerticalSplitterBehavior(String selector,
String panes)
Gets a new vertical
SplitterBehavior |
void |
onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target,
String paneId)
Triggered when a panel collapses
|
void |
onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
String paneId)
Triggered when a panel expands
|
protected void |
onInitialize() |
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, 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, 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, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, 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, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic BorderLayout(String id)
id - the markup idpublic boolean isExpandEventEnabled()
ISplitterListenerISplitterListener.onExpand(AjaxRequestTarget, String) event will be triggered.isExpandEventEnabled in interface ISplitterListenerpublic boolean isCollapseEventEnabled()
ISplitterListenerISplitterListener.onCollapse(AjaxRequestTarget, String) event will be triggered.isCollapseEventEnabled in interface ISplitterListenerpublic void addBorderLayout(org.apache.wicket.MarkupContainer container)
IBorderLayout
container.add(new SplitterBehavior("#vertical").setOption("panes", this.getVerticalPanes()).setOption("orientation", "'vertical'"));
container.add(new SplitterBehavior("#horizontal").setOption("panes", this.getHorizontalPanes()));
addBorderLayout in interface IBorderLayoutcontainer - either a Page or a Panel.public void expand(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String selector,
String pane)
handler - the IPartialPageRequestHandlerselector - the splitter selector (ie: "#vertical")pane - the pane selector (ie: "#bottom")public void collapse(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String selector,
String pane)
handler - the IPartialPageRequestHandlerselector - the splitter selector (ie: "#vertical")pane - the pane selector (ie: "#bottom")protected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
String paneId)
ISplitterListeneronExpand in interface ISplitterListenertarget - the AjaxRequestTargetpaneId - the panel id (html-id)public void onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target,
String paneId)
ISplitterListeneronCollapse in interface ISplitterListenertarget - the AjaxRequestTargetpaneId - the panel id (html-id)public String getVerticalPanes()
getVerticalPanes in interface IBorderLayoutpublic String getHorizontalPanes()
getHorizontalPanes in interface IBorderLayoutprotected SplitterBehavior newVerticalSplitterBehavior(String selector, String panes)
SplitterBehaviorselector - the splitter's html selector (ie: "#myId")panes - the vertical panes in a JSON arraySplitterBehaviorprotected SplitterBehavior newHorizontalSplitterBehavior(String selector, String panes)
SplitterBehaviorselector - the splitter's html selector (ie: "#myId")panes - the horizontal panes in a JSON arraySplitterBehaviorCopyright © 2021 7thWeb. All rights reserved.