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

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


public class SubConstructor extends LayoutContainer {

  private static Images images = GWT.create(Images.class);

  public SubConstructor() {
    setLayout(new RowLayout(Orientation.VERTICAL));

    FieldSet fldstNewFieldset = new FieldSet();
    add(fldstNewFieldset);
    fldstNewFieldset.setHeading("New FieldSet");

    FieldSet fldstNewFieldset_1 = new FieldSet();
    fldstNewFieldset_1.setLayout(new RowLayout(Orientation.VERTICAL));
    add(fldstNewFieldset_1);
    fldstNewFieldset_1.setHeading("New FieldSet");
    LayoutContainer c = new LayoutContainer();
    c.setLayout(new HBoxLayout());
View Full Code Here


  HTML newLine = new HTML("<br>", true);
  add(newLine, new BorderLayoutData(LayoutRegion.NORTH, 20.0f));
  leftPanel = new LayoutContainer();
  setPadding(leftPanel);
  mainPanel.add(leftPanel, new BorderLayoutData(LayoutRegion.WEST, 110.0f));
  leftPanel.setLayout(new RowLayout(Orientation.VERTICAL));
  logo = new HTML("<img src='./images/logo.gif'/>");
  leftPanel.add(logo);
  LayoutContainer rightPanel = new LayoutContainer();

  mainPanel.add(rightPanel, new BorderLayoutData(LayoutRegion.EAST, 200));
  rightPanel.setLayout(new VBoxLayout());
  rightPanel.add(nomLabel);
  LayoutContainer linksPanel = new LayoutContainer();
  // linksPanel.setWidth("100%");
  TableLayout tl_linksPanel = new TableLayout(2);
  tl_linksPanel.setWidth("100%");
  // tl_linksPanel.setCellPadding(7);
  tl_linksPanel.setCellHorizontalAlign(HorizontalAlignment.LEFT);
  tl_linksPanel.setTableStyle("padding-left:45px");
  linksPanel.setLayout(tl_linksPanel);

  acceuilLink.addListener(Events.OnClick, new Listener<BaseEvent>() {
      @Override
      public void handleEvent(BaseEvent be) {
    GuiUtil.gotoEcran(new AcceuilEcran());
      }
  });
  linksPanel.add(acceuilLink, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM));

  adminLink.addListener(Events.OnClick, new Listener<BaseEvent>() {
      @Override
      public void handleEvent(BaseEvent be) {
    GuiUtil.gotoEcran(new AdminEcran());
      }
  });
  linksPanel.add(adminLink, new TableData(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM));

  version = new HTML("", false);
  version.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
  version.setWordWrap(false);
  ClientPropertiesServiceAsync.Util.getInstance().getVersionInfo(new AsyncCallbackWithErrorResolution<String>() {
      @Override
      public void onSuccess(String result) {
    version.setHTML("<font size='1'>" + result + "</font>");
      }
  });

  // linksPanel.add(version);
  rightPanel.add(linksPanel);
  LayoutContainer layoutBanner = new LayoutContainer();
  LayoutContainer layoutVersion = new LayoutContainer();
  layoutVersion.setLayout(new RowLayout(Orientation.HORIZONTAL));
  layoutVersion.add(version, new RowData());
  layoutVersion.setHeight(20);
  layoutVersion.setWidth(50);
  layoutVersion.setStyleAttribute("padding-bottom", "25px");
  layoutBanner.setLayout(new TableLayout(2));
View Full Code Here

    super();
    this.bus = b;
    setHeight("40px");
    setLayout(new BorderLayout());
    LayoutContainer westPanel = new LayoutContainer();
    westPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    HTML chantier = new HTML("Chantier: " + c.getNom(), false);
    chantier.setStyleName("actionHTML");
    chantier.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        GuiUtil.gotoEcran(new SyntheseEcran(c, role, user));
      }
    });
    westPanel.add(chantier);
    westPanel.add(new HTML("&nbsp;&nbsp;> Synthèse", false));
    add(westPanel, new BorderLayoutData(LayoutRegion.WEST, 390.0f));
    LayoutContainer eastPanel = new LayoutContainer();
    eastPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    HTML saveAll = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveSynthese(), false);
    saveAll.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    saveAll.setStyleName("actionHTML");
    layoutSave = new LayoutContainer();
    layoutSave.add(saveAll);
    layoutSave.setEnabled(false);
    eastPanel.add(layoutSave);
    saveAll.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new SyntheseEvent());
        layoutSave.setEnabled(false);
        // bus.fireEvent(new IsEditEvent(false));
      }
    });
    ;
    if ((user.getBadmin() != null && user.getBadmin()) || (role.getBcontributeur() != null && role.getBcontributeur())) {
      saveAll.setVisible(true);
    } else {
      saveAll.setVisible(false);
    }
    eastPanel.add(new HTML(LINKS_SPACE));
    HTML printAll = new HTML("<img src='./images/imprimer.png'/> " + messages.printSynthese(), false);
    printAll.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    printAll.setStyleName("actionHTML");
   
    printAll.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new ExportSyntheseEcranEvent());
      }
    });
    eastPanel.add(printAll);
    add(eastPanel, new BorderLayoutData(LayoutRegion.EAST, 355.0f));
   
    LayoutContainer centerPanel = new LayoutContainer();
    centerPanel.setLayout(new RowLayout(Orientation.VERTICAL));
   
    HTML html = new HTML("<br>", true);
    centerPanel.add(html);
    bus.addHandler(IsEditEvent.TYPE, new IsEditHandler() {
     
View Full Code Here

    super.onRender(parent, index);

    ContentPanel cp = new ContentPanel();
    cp.setSize(600, 300);
    cp.setHeading("Grid DND Example");
    cp.setLayout(new RowLayout(Orientation.HORIZONTAL));

    ToolBar toolBar = new ToolBar();
    toolBar.add(new LabelToolItem("Feedback: "));
    final SimpleComboBox<String> type = new SimpleComboBox<String>();
    type.setTriggerAction(TriggerAction.ALL);
View Full Code Here

  inforFieldset.add(layoutContainer_0);
  formDetails = new CustomFormPanel();
  formDetails.add(inforFieldset);
  fsTransfertPp = new FieldSet();
  fsTransfertPp.setHeading("TRANSFERTS PP");
  fsTransfertPp.setLayout(new RowLayout(Orientation.VERTICAL));
  LayoutContainer layoutContainer_10 = new LayoutContainer();
  layoutContainer_10.setLayout(new BorderLayout());
  LayoutContainer buttonPanel = new LayoutContainer();
  buttonPanel.setId("buttonPanel");
  buttonPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
  Label label = new Label();
  label.setWidth("135px");
  buttonPanel.add(label);
  HTML space3 = new HTML(SPACES_3);
  buttonPanel.add(space3);
View Full Code Here

    comment.setId("ACCOMPTESPANEL_COMMENT");
    int height = 110;
    TableLayout tl10 = new TableLayout(1);
    tl10.setWidth("100%");
    setLayout(tl10);
    lc1.setLayout(new RowLayout(Orientation.VERTICAL));
    comment.setHeight(height);
    comment.setFieldLabel(messages.comment());
    layoutContainer.add(comment, new FormData("390%"));
    lc1.add(layoutContainer);
    lc1.add(new HTML("<br>"));
View Full Code Here

    setHeight("40px");
    setLayout(new BorderLayout());
    setMonitorWindowResize(true);
   
    LayoutContainer westPanel = new LayoutContainer();
    westPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    com.extjs.gxt.ui.client.widget.Label chantier = new com.extjs.gxt.ui.client.widget.Label("Adminstration");
    chantier.setStyleName("actionHTML5");
    westPanel.add(chantier);
   
    add(westPanel, new BorderLayoutData(LayoutRegion.WEST, 390.0f));
   
    LayoutContainer eastPanel = new LayoutContainer();
    eastPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    HTML space = new HTML("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", true);
    eastPanel.add(space);
   
    add(eastPanel, new BorderLayoutData(LayoutRegion.EAST, 390.0f));
   
    LayoutContainer centerPanel = new LayoutContainer();
    centerPanel.setLayout(new RowLayout(Orientation.VERTICAL));
   
    HTML html = new HTML("<br>", true);
    centerPanel.add(html);
   
    Label pageTitle = new Label("Administration des rôles");
View Full Code Here

    this.chainter = c;
    setHeight("40px");
    setLayout(new BorderLayout());

    LayoutContainer westPanel = new LayoutContainer();
    westPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    HTML chantier = new HTML("Chantier: " + this.chainter.getNom(), false);
    chantier.setStyleName("actionHTML");
    chantier.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        GuiUtil.gotoEcran(new SyntheseEcran(c, role, user) );
      }
    });
    westPanel.add(chantier);

    path = new HTML("", false);
    setSociete("");
    westPanel.add(path);
   
    add(westPanel, new BorderLayoutData(LayoutRegion.WEST, 450.0f));
    LayoutContainer eastPanel = new LayoutContainer();
    eastPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));

    saveFicheSt = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm(), false);
    saveFicheSt.setStyleName("actionHTML");
    eastPanel.add(saveFicheSt);
    saveFicheSt.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new SaveFicheStEvent());
      }
    });

    eastPanel.add(new HTML(LINKS_SPACE, false));
    HTML printAll = new HTML("<img src='./images/imprimer.png'/> " + messages.printAll(), false);
    printAll.setStyleName("actionHTML");

    eastPanel.add(printAll);
    add(eastPanel, new BorderLayoutData(LayoutRegion.EAST, 355.0f));

    LayoutContainer centerPanel = new LayoutContainer();
    centerPanel.setLayout(new RowLayout(Orientation.VERTICAL));
   
    printAll.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        bus.fireEvent(new ExportFicheStEvent());
View Full Code Here

  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    setScrollMode(Scroll.AUTOY);
    ContentPanel panel = new ContentPanel();
    panel.setHeading("RowLayout: Orientation set to vertical");
    panel.setLayout(new RowLayout(Orientation.VERTICAL));
    panel.setSize(400, 300);
    panel.setFrame(true);
    panel.setCollapsible(true);

    Text label1 = new Text("Test Label 1");
    label1.addStyleName("pad-text");
    label1.setStyleAttribute("backgroundColor", "white");
    label1.setBorders(true);

    Text label2 = new Text("Test Label 2");
    label2.addStyleName("pad-text");
    label2.setStyleAttribute("backgroundColor", "white");
    label2.setBorders(true);

    Text label3 = new Text("Test Label 3");
    label3.addStyleName("pad-text");
    label3.setStyleAttribute("backgroundColor", "white");
    label3.setBorders(true);

    panel.add(label1, new RowData(1, -1, new Margins(4)));
    panel.add(label2, new RowData(1, 1, new Margins(0, 4, 0, 4)));
    panel.add(label3, new RowData(1, -1, new Margins(4)));

    add(panel, new FlowData(10));

    panel = new ContentPanel();
    panel.setHeading("RowLayout: Orientation set to horizontal");
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    panel.setSize(400, 300);
    panel.setFrame(true);
    panel.setCollapsible(true);

    label1 = new Text("Test Label 1");
View Full Code Here

  this.bus = b;
  this.role = roleModel;
  this.user = utilisateurGrpModel;
  FieldSet gestionFieldSet = new CustomFieldSet();
  gestionFieldSet.setCollapsible(true);
  gestionFieldSet.setLayout(new RowLayout(Orientation.VERTICAL));

  LayoutContainer layoutContainer_10 = new LayoutContainer();
  layoutContainer_10.setLayout(new BorderLayout());

  LayoutContainer buttonPanel = new LayoutContainer();
  buttonPanel.setId("buttonPanel");
  buttonPanel.setLayout(new RowLayout(Orientation.HORIZONTAL));

  saveButton = new HTML("<img src='./images/sauvegarder.png'/> " + messages.saveForm(), false);
  saveButton.setStyleName("actionHTML");
  buttonPanel.add(saveButton);
  saveButton.addClickHandler(new ClickHandler() {
View Full Code Here

TOP

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

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.