public class BorderLayout extends org.apache.wicket.markup.html.WebMarkupContainer implements IBorderLayout
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>
| 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.ajax.AjaxRequestTarget target,
String selector,
String pane)
Collapses the specified pane
Note: Invoking the method will not trigger a collapse event. |
void |
expand(org.apache.wicket.ajax.AjaxRequestTarget target,
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 onCollapse(AjaxRequestTarget, String) event will be triggered. |
boolean |
isExpandEventEnabled()
Indicates whether the 'expand' event is enabled.
If true, the 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() |
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, 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, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, 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 BorderLayout(String id)
id - the markup idpublic boolean isExpandEventEnabled()
onExpand(AjaxRequestTarget, String) event will be triggered.public boolean isCollapseEventEnabled()
onCollapse(AjaxRequestTarget, String) event will be triggered.public 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.ajax.AjaxRequestTarget target,
String selector,
String pane)
target - the AjaxRequestTargetselector - the splitter selector (ie: "#vertical")pane - the pane selector (ie: "#bottom")public void collapse(org.apache.wicket.ajax.AjaxRequestTarget target,
String selector,
String pane)
target - the AjaxRequestTargetselector - the splitter selector (ie: "#vertical")pane - the pane selector (ie: "#bottom")protected void onInitialize()
onInitialize in class org.apache.wicket.Componentpublic void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
String paneId)
target - the AjaxRequestTargetpaneId - the panel id (html-id)public void onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target,
String paneId)
target - 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 © 2014 7thWeb. All Rights Reserved.