Examples of ContentPanel


Examples of com.extjs.gxt.ui.client.widget.ContentPanel

    grid.setBorders(true);
    grid.setLoadMask(true);
    grid.getView().setEmptyText("Please hit the load button.");
    grid.setAutoExpandColumn("Sender");

    ContentPanel panel = new ContentPanel();
    panel.setFrame(true);
    panel.setCollapsible(true);
    panel.setAnimCollapse(false);
    panel.setButtonAlign(HorizontalAlignment.CENTER);
    panel.setIcon(Resources.ICONS.table());
    panel.setHeading("JSON Table Demo");
    panel.setLayout(new FitLayout());
    panel.add(grid);
    panel.setSize(575, 350);

    // add buttons
    Button load = new Button("Load JSON", new SelectionListener<ButtonEvent>() {
      public void componentSelected(ButtonEvent ce) {
        loader.load();
      }
    });

    panel.addButton(load);
    grid.getAriaSupport().setLabelledBy(panel.getHeader().getId() + "-label");
    add(panel);

  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ContentPanel

      }

    };
    int i = 1;
    for (HorizontalAlignment align : HorizontalAlignment.values()) {
      ContentPanel cp = new ContentPanel();
      cp.setHeading("ButtonAligning Example: " + align.name().toLowerCase());
      for (int j = 0; j < 3; i++, j++) {
        cp.addButton(new Button("Button " + i, l));
      }
      cp.setButtonAlign(align);
      cp.setFrame(true);
      cp.setSize(500, 150);
      cp.setLayout(new FitLayout());
      LayoutContainer c = new LayoutContainer();
      c.setStyleAttribute("backgroundColor", "white");
      c.setBorders(true);
      cp.add(c);
      add(cp, new FlowData(10));
    }
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ContentPanel

    final ListStore<Plant> store = new ListStore<Plant>();

    ColumnModel cm = new ColumnModel(configs);

    cp = new ContentPanel();
    cp.setHeading("Auto Height Edit Plants");
    cp.setFrame(true);
    cp.setIcon(Resources.ICONS.table());
    cp.setWidth(600);
    cp.setLayout(new FitLayout());
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ContentPanel

    LiveGridView liveView = new LiveGridView();
    liveView.setEmptyText("No rows available on the server.");
    liveView.setRowHeight(32);
    grid.setView(liveView);

    ContentPanel panel = new ContentPanel();
    panel.setFrame(true);
    panel.setCollapsible(true);
    panel.setAnimCollapse(false);
    panel.setIcon(Resources.ICONS.table());
    panel.setHeading("LiveGrid Grid");
    panel.setLayout(new FitLayout());
    panel.add(grid);
    panel.setSize(600, 350);
    grid.getAriaSupport().setLabelledBy(panel.getHeader().getId() + "-label");
   
    ToolBar toolBar = new ToolBar();
    toolBar.add(new FillToolItem());

    LiveToolItem item = new LiveToolItem();
    item.bindGrid(grid);

    toolBar.add(item);
    panel.setBottomComponent(toolBar);

    add(panel);

  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ContentPanel

      cm.addHeaderGroup(1, 0, new HeaderGroupConfig(tbl, 1, 2));
    } else {
      cm.addHeaderGroup(1, 0, new HeaderGroupConfig("Stock Information", 1, 2));
    }

    ContentPanel cp = new ContentPanel();
    cp.setBodyBorder(false);
    cp.setIcon(Resources.ICONS.table());
    cp.setHeading(widget ? "Column Grouping with Widget" : "Column Grouping");
    cp.setButtonAlign(HorizontalAlignment.CENTER);
    cp.setLayout(new FitLayout());
    cp.setSize(600, 300);

    Grid<Stock> grid = new Grid<Stock>(store, cm);
    grid.setStyleAttribute("borderTop", "none");
    grid.getView().setForceFit(true);
    grid.setBorders(true);
    cp.add(grid);

    vp.add(cp);
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.ContentPanel

    grid.setTrackMouseOver(false);
    grid.setLoadMask(true);
    grid.setBorders(true);
    grid.setAutoExpandColumn("forum");
    grid.setView(new BufferView());
    ContentPanel panel = new ContentPanel();
    panel.setFrame(true);
    panel.setCollapsible(true);
    panel.setAnimCollapse(false);
    panel.setIcon(Resources.ICONS.table());
    panel.setHeading("Editable Buffered Grid (1000 rows)");
    panel.setLayout(new FitLayout());
    panel.add(grid);
    panel.setSize(600, 350);

    add(panel);
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.ContentPanel

        map.addLayer(new Bing(new BingOptions("Bing Aerial", bingKey, BingType.AERIAL)));
    }

    public MapView(MapHandler mapHandler) {
        this.mapHandler = mapHandler;
        contentPanel = new ContentPanel();
        contentPanel.setHeadingText("Map");

        MapOptions defaultMapOptions = new MapOptions();

        mapWidget = new MapWidget("100%", "100%", defaultMapOptions);
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.ContentPanel

  }

  protected void handleCollapse(CollapseItemEvent<ContentPanel> event) {
    if (!getObject().isStateful()) return;
    ContentPanel panel = event.getItem();
    Set<String> collapsed = getState().getCollapsed();
    if (collapsed == null) {
      collapsed = new HashSet<String>();
    }
    collapsed.add(panel.getId());

    getState().setCollapsed(collapsed);
    saveState();
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.ContentPanel

    saveState();
  }

  protected void handleExpand(ExpandItemEvent<ContentPanel> event) {
    if (!getObject().isStateful()) return;
    ContentPanel panel = event.getItem();
    Set<String> collapsed = getState().getCollapsed();
    if (collapsed != null) {
      collapsed.remove(panel.getId());
    }

    getState().setCollapsed(collapsed);
    saveState();
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.ContentPanel

  }

  protected void handleCollapse(CollapseItemEvent<ContentPanel> event) {
    if (!getObject().isStateful()) return;
    ContentPanel panel = event.getItem();
    Set<String> collapsed = getState().getCollapsed();
    if (collapsed == null) {
      collapsed = new HashSet<String>();
    }
    collapsed.add(panel.getId());

    getState().setCollapsed(collapsed);
    saveState();
  }
View Full Code Here
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.