com.googlecode.wicket.jquery.ui.kendo.splitter
Class BorderLayout

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.markup.html.WebMarkupContainer
              extended by com.googlecode.wicket.jquery.ui.kendo.splitter.BorderLayout
All Implemented Interfaces:
IBorderLayout, Serializable, Iterable<org.apache.wicket.Component>, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.IClusterable, org.apache.wicket.IConverterLocator, org.apache.wicket.markup.html.IHeaderContributor, org.apache.wicket.request.component.IRequestableComponent, org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>

public class BorderLayout
extends org.apache.wicket.markup.html.WebMarkupContainer
implements IBorderLayout

Provides a Border Layout WebMarkupContainer based on vertical and horizontal SplitterBehavior

s

getVerticalPanes() and getHorizontalPanes() may be overridden to change the default layout

Note: the BorderLayout IS a WebMarkupContainer. If you wish to apply a BorderLayout on an existing Page or an existing Panel, you can implement the IBorderLayout interface.

Alternatively, the HTML markup look like:
<div wicket:id="layout">
        <div id="vertical">
                <div>
                        - top -
                </div>            
                <div id="horizontal">     
                        <div>
                                - left -
                        </div>
                        <div>
                                - center -
                        </div>
                        <div>
                                - right -
                        </div>
                </div>
                <div>
                        - bottom -
                </div>
        </div>
</div>
 

Author:
Sebastien Briquet - sebfz1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
 
Constructor Summary
BorderLayout(String id)
          Constructor
 
Method Summary
 void addBorderLayout(org.apache.wicket.MarkupContainer container)
          Method that is designed to create the BorderLayout.
A typical implementation is:
 String getHorizontalPanes()
          Gets horizontal panes in a JSON array
 String getVerticalPanes()
          Gets vertical panes in a JSON array
protected  void onInitialize()
           
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebPage, getWebRequest
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, 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, getFeedbackMessage, 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, locateMarkupStream, 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, urlFor, urlFor, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BorderLayout

public BorderLayout(String id)
Constructor

Parameters:
id - the markup id
Method Detail

onInitialize

protected void onInitialize()
Overrides:
onInitialize in class org.apache.wicket.Component

addBorderLayout

public void addBorderLayout(org.apache.wicket.MarkupContainer container)
Description copied from interface: IBorderLayout
Method that is designed to create the BorderLayout.
A typical implementation is:
 container.add(new SplitterBehavior("#vertical").setOption("panes", this.getVerticalPanes()).setOption("orientation", "'vertical'"));
 container.add(new SplitterBehavior("#horizontal").setOption("panes", this.getHorizontalPanes()));
 

Specified by:
addBorderLayout in interface IBorderLayout
Parameters:
container - either a Page or a Panel.

getVerticalPanes

public String getVerticalPanes()
Gets vertical panes in a JSON array

Specified by:
getVerticalPanes in interface IBorderLayout
Returns:
by default: 15% - middle - 15%

getHorizontalPanes

public String getHorizontalPanes()
Gets horizontal panes in a JSON array

Specified by:
getHorizontalPanes in interface IBorderLayout
Returns:
by default: 15% - center - 15%


Copyright © 2013 7thWeb. All Rights Reserved.