⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 complexsample.java

📁 extjs + mysql + java
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/*
 * GWT-Ext Widget Library
 * Copyright 2007 - 2008, GWT-Ext LLC., and individual contributors as indicated
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
 
package com.gwtext.sample.showcase2.client.layout;

import com.google.gwt.user.client.ui.HTML;
import com.gwtext.client.core.Margins;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.BoxComponent;
import com.gwtext.client.widgets.HTMLPanel;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.TabPanel;
import com.gwtext.client.widgets.grid.PropertyGridPanel;
import com.gwtext.client.widgets.layout.AccordionLayout;
import com.gwtext.client.widgets.layout.BorderLayout;
import com.gwtext.client.widgets.layout.BorderLayoutData;
import com.gwtext.client.widgets.layout.FitLayout;
import com.gwtext.sample.showcase2.client.ShowcasePanel;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class ComplexSample extends ShowcasePanel {

    public String getSourceUrl() {
        return "source/layout/ComplexSample.java.html";
    }

    public Panel getViewPanel() {
        if (panel == null) {

            panel = new Panel();
            panel.setLayout(new FitLayout());

            Panel borderPanel = new Panel();
            borderPanel.setLayout(new BorderLayout());

            //add north panel
            //raw html
            BoxComponent northPanel = new BoxComponent();
            northPanel.setEl(new HTML("<p>north - generally for menus, toolbars and/or advertisements</p>").getElement());
            northPanel.setHeight(32);
            borderPanel.add(northPanel, new BorderLayoutData(RegionPosition.NORTH));

            //add south panel
            Panel southPanel = new HTMLPanel("<p>south - generally for informational stuff, also could be for status bar</p>");
            southPanel.setHeight(100);
            southPanel.setCollapsible(true);
            southPanel.setTitle("South");

            BorderLayoutData southData = new BorderLayoutData(RegionPosition.SOUTH);
            southData.setMinSize(100);
            southData.setMaxSize(200);
            southData.setMargins(new Margins(0, 0, 0, 0));
            southData.setSplit(true);
            borderPanel.add(southPanel, southData);

            //add east panel
            Panel eastPanel = new Panel();
            eastPanel.setTitle("East Side");
            eastPanel.setCollapsible(true);
            eastPanel.setWidth(225);
            eastPanel.setLayout(new FitLayout());

            BorderLayoutData eastData = new BorderLayoutData(RegionPosition.EAST);
            eastData.setSplit(true);
            eastData.setMinSize(175);
            eastData.setMaxSize(400);
            eastData.setMargins(new Margins(0, 0, 5, 0));

            borderPanel.add(eastPanel, eastData);

            TabPanel tabPanel = new TabPanel();
            tabPanel.setBorder(false);
            tabPanel.setActiveTab(1);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -