Package org.geomajas.example.gwt.client.samples.base

Source Code of org.geomajas.example.gwt.client.samples.base.EditingManual

/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2011 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contributors License Agreement. For full licensing
* details, see LICENSE.txt in the project root.
*/

package org.geomajas.example.gwt.client.samples.base;

import com.smartgwt.client.widgets.HTMLPane;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;

/**
* Simple editing manual to assist users in the editing showcases.
*
* @author Pieter De Graef
*/
public class EditingManual extends TabSet {

  private static final String CREATE_FEATURE_PAGE = "[ISOMORPHIC]/geomajas/example/pages/edit/create_feature.html";

  private static final String EDIT_FEATURE_PAGE = "[ISOMORPHIC]/geomajas/example/pages/edit/edit_feature.html";

  private static final String DELETE_FEATURE_PAGE = "[ISOMORPHIC]/geomajas/example/pages/edit/delete_feature.html";

  private static final String DONUT_PAGE = "[ISOMORPHIC]/geomajas/example/pages/edit/donut_polygon.html";

  public EditingManual() {
    Tab tab1 = new Tab();
    tab1.setTitle("Create a new feature");
    HTMLPane pane1 = new HTMLPane();
    pane1.setContentsURL(CREATE_FEATURE_PAGE);
    tab1.setPane(pane1);
    tab1.setCanClose(false);
    addTab(tab1);

    Tab tab2 = new Tab();
    tab2.setTitle("Edit a feature");
    HTMLPane pane2 = new HTMLPane();
    pane2.setContentsURL(EDIT_FEATURE_PAGE);
    tab2.setPane(pane2);
    tab2.setCanClose(false);
    addTab(tab2);

    Tab tab3 = new Tab();
    tab3.setTitle("Delete a feature");
    HTMLPane pane3 = new HTMLPane();
    pane3.setContentsURL(DELETE_FEATURE_PAGE);
    tab3.setPane(pane3);
    tab3.setCanClose(false);
    addTab(tab3);

    Tab tab4 = new Tab();
    tab4.setTitle("Create donut polygon");
    HTMLPane pane4 = new HTMLPane();
    pane4.setContentsURL(DONUT_PAGE);
    tab4.setPane(pane4);
    tab4.setCanClose(false);
    addTab(tab4);
  }
}
TOP

Related Classes of org.geomajas.example.gwt.client.samples.base.EditingManual

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.