com.googlecode.wicket.kendo.ui.widget.splitter.IBorderLayout Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.googlecode.wicket.kendo.ui.widget.splitter;
import org.apache.wicket.MarkupContainer;
/**
* Helping interface which specifies that a Kendo UI border-layout will be applied on the underlying {@link MarkupContainer}.
* For instance:
*
* public class BorderLayoutPage extends WebPage implements IBorderLayout
* {
* public BorderLayoutPage(PageParameters parameters)
* {
* super(parameters);
* this.addBorderLayout(this);
* }
*
* public void addBorderLayout(MarkupContainer container)
* {
* container.add(new SplitterBehavior("#vertical").setOption("panes", this.getVerticalPanes()).setOption("orientation", "'vertical'"));
* container.add(new SplitterBehavior("#horizontal").setOption("panes", this.getHorizontalPanes()));
* }
*
* ...
* }
*
*
* @author Sebastien Briquet - sebfz1
*
*/
public 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()));
*
*
* @param container either a Page or a Panel.
*/
void addBorderLayout(MarkupContainer container);
/**
* Gets the vertical panes in a JSON array
* @return a String that represent the JSON array
*/
String getVerticalPanes();
/**
* Gets the horizontal panes in a JSON array
* @return a String that represent the JSON array
*/
String getHorizontalPanes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy