Package com.extjs.gxt.ui.client.widget.layout

Examples of com.extjs.gxt.ui.client.widget.layout.FitLayout


  protected LayoutContainer rootPanel;
  protected TabPanel tabPanel;
  protected NavigationService navigation = NavigationFactory.getNavigation();
  protected AbstractEcran() {
    setWidth(GuiUtil.getScreenWidth()-30);
    setLayout(new FitLayout());
//    viewPort.setLayout(new FitLayout());
//    add(viewPort);
  }
View Full Code Here


  private final NavigationService navigation = NavigationFactory.getNavigation();
  UtilisateurGrpModel       user;
 
  public AdminEcran() {
    setWidth(GuiUtil.getScreenWidth() - 20);
    setLayout(new FitLayout());
    setScrollMode(Scroll.AUTO);
    Window.enableScrolling(true);
    Window.addResizeHandler(new ResizeHandler() {
      @Override
      public void onResize(ResizeEvent arg0) {
        if (RootPanel.get().getOffsetWidth() < 1300) {
          setScrollMode(Scroll.AUTO);
          // setWidth(1250);
        } else {
          // setWidth(1950);
        }
      }
    });
    setMonitorWindowResize(true);
    headerPanel = new HeaderPanel();
    headerPanel.setHeight(45);
    headerAdmin = new HeaderAdmin();
    adminPanel = new AdminPanel();
    LayoutContainer mainContainer = new LayoutContainer();
    mainContainer.setLayout(new FitLayout());
    mainContainer.add(headerPanel);
    mainContainer.add(headerAdmin);
    mainContainer.add(adminPanel);
    add(mainContainer);
  }
View Full Code Here

    headerPanel.setHeight(45);
    final SyntheseBreadcrumbPanel breadcrumbPanel = new SyntheseBreadcrumbPanel(bus, chantier, role, user);
    setPadding(breadcrumbPanel);
    final SyntheseMainPanel centerPanel = new SyntheseMainPanel(bus, chantier, role, user);
    LayoutContainer mainContent = new LayoutContainer();
    mainContent.setLayout(new FitLayout());
    mainContent.add(headerPanel);
    mainContent.add(breadcrumbPanel);
    mainContent.add(centerPanel);
    // TabItem item=new TabItem();
    // // item.setTabIndex(0);
View Full Code Here

    private final ClientRoleServiceAsync serviceRole = GWT.create(ClientRoleService.class);

    public ErrorEcran() {
  loadPanel();
  setMonitorWindowResize(true);
  setLayout(new FitLayout());

  LayoutContainer mainContent = new LayoutContainer();
  headerPanel.setEnabled(false);
  LayoutContainer errorlPanel = new LayoutContainer();
  errorlPanel.setHeight("40px");
  Html error = new Html("Accès refuse. Vous n’avez pas les droits suffisants pour l’opération demandée");
  error.setStyleAttribute("color", "red");
  errorlPanel.add(error);
  GuiUtil.setPadding(errorlPanel);

  mainContent.setLayout(new FitLayout());
  mainContent.add(headerPanel);
  mainContent.add(errorlPanel);
  add(mainContent);
    }
View Full Code Here

    public AcceuilEcran() {
  // setHeight(768);
  setWidth(GuiUtil.getScreenWidth() - 30);
  setMonitorWindowResize(true);
  setLayout(new FitLayout());
  setScrollMode(Scroll.AUTO);
  Window.enableScrolling(true);
  // Window.addResizeHandler(new ResizeHandler() {
  // @Override
  // public void onResize(ResizeEvent arg0) {
  // if (arg0.getWidth() < 1300) {
  // setScrollMode(Scroll.AUTO);
  // } else {
  // }
  // }
  // });
  headerPanel = new HeaderPanel();
  headerPanel.setHeight(45);
  headerPanel.setStyleAttribute("padding-right", "20px");
  HeaderAcceuil breadcrumbPanel = new HeaderAcceuil();
  acceuilPanel = new AcceuilPanel();
  LayoutContainer mainContent = new LayoutContainer();
  mainContent.setLayout(new FitLayout());
  mainContent.add(headerPanel);
  mainContent.add(breadcrumbPanel);
  mainContent.add(acceuilPanel);
  add(mainContent);
View Full Code Here

    this.ficheStId = fId;
    this.role = roleModel;
    this.user = utilisateurGrpModel;
    setScrolling();
    LayoutContainer mainContent = new LayoutContainer();
    mainContent.setLayout(new FitLayout());
    headerPanel = new HeaderPanel();
    headerPanel.setHeight(45);
    breadcrumbPanel = new BreadcrumbPanel(bus, chantier, role, user);
    setPadding(breadcrumbPanel);
    centerPanel = new FicheSTCenterPanel(bus, chantier, this.ficheStId, role, user);
View Full Code Here

    lc.add(controls);

    FieldSet gallery = new FieldSet();
    gallery.setHeading("Gallery");
    gallery.setLayout(new FitLayout());

    ListStore<GalleryChartModel> store = new ListStore<GalleryChartModel>();
    store.add(new GalleryChartModel("Area", "area.gif", new AreaChartExample()));
    store.add(new GalleryChartModel("Pie", "pie.gif", new PieChartExample()));
    store.add(new GalleryChartModel("Filled Bar", "filled.gif", new FilledBarChartExample()));
View Full Code Here

  }

  private LayoutContainer getChart() {
    FieldSet fs = new FieldSet();
    fs.setHeading("Chart");
    fs.setLayout(new FitLayout());

    String url = !Examples.isExplorer() ? "../../" : "";
    url += "gxt/chart/open-flash-chart.swf";

    final Chart chart = new Chart(url);
View Full Code Here

    lc.setLayout(rl);
    lc.setSize(800, 600);

    RowData data;
    data = new RowData(1, 300, new Margins(10));
    ContentPanel cp = new ContentPanel(new FitLayout());
    cp.setHeading("Chart");
    cp.add(chart);
    lc.add(cp, data);

    data = new RowData(1, 1, new Margins(10));
    cp = new ContentPanel(new FitLayout());
    cp.setHeading("Teams Sales");
    cp.add(teamSalesGrid);
    lc.add(cp, data);

    data = new RowData(1, 60, new Margins(10));
View Full Code Here

    super.onRender(parent, index);
    ContentPanel cp = new ContentPanel();
    cp.setHeading("Pie chart");
    cp.setFrame(true);
    cp.setSize(400, 400);
    cp.setLayout(new FitLayout());
   
    String url = !Examples.isExplorer() ? "../../" : ""
    url += "gxt/chart/open-flash-chart.swf";
   
    final Chart chart = new Chart(url);
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.layout.FitLayout

Copyright © 2018 www.massapicom. 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.