Package com.extjs.gxt.ui.client.util

Examples of com.extjs.gxt.ui.client.util.Margins


   * Creates a new layout data.
   *
   * @param margin the margin
   */
  public MarginData(int margin) {
    this.margins = new Margins(margin);
  }
View Full Code Here


   * @param right the right margin
   * @param bottom the bottom margin
   * @param left the left margin
   */
  public MarginData(int top, int right, int bottom, int left) {
    this.margins = new Margins(top, right, bottom, left);
  }
View Full Code Here

   * Creates a new layout data.
   *
   * @param margin the margin
   */
  public MarginData(int margin) {
    this.margins = new Margins(margin);
  }
View Full Code Here

   * @param right the right margin
   * @param bottom the bottom margin
   * @param left the left margin
   */
  public MarginData(int top, int right, int bottom, int left) {
    this.margins = new Margins(top, right, bottom, left);
  }
View Full Code Here

        ((TriggerField<? extends Object>) f).setMonitorTab(true);
      }
      f.setWidth(cm.getColumnWidth(i));
      HBoxLayoutData ld = new HBoxLayoutData();
      if (i == 0) {
        ld.setMargins(new Margins(0, 1, 2, 1));
      } else if (i == len - 1) {
        ld.setMargins(new Margins(0, 0, 2, 1));
      } else {
        ld.setMargins(new Margins(0, 1, 2, 2));
      }

      f.setMessageTarget("tooltip");
      f.addStyleName("x-row-editor-field");
      // needed because we remove it from the celleditor
View Full Code Here

  }

  private final void initDimensionPanel() {
    //  - a panel for all cube dimensions, at west position
    dimRepoLayoutData = new BorderLayoutData(LayoutRegion.WEST);
    dimRepoLayoutData.setMargins(new Margins(0,5,0,0));
    dimRepoLayoutData.setSplit(true);
    dimRepoLayoutData.setCollapsible(true);
    dimRepoLayoutData.setFloatable(false); //true);
    dimRepoLayoutData.setSize(160);
    dimRepoLayoutData.setMinSize(40);
View Full Code Here

    //source tree:
    panel.add(createSourcePanel());
   
    //buttons:
    RowData btnPanelData = new RowData();
    btnPanelData.setMargins(new Margins(0, 0, 0, 5));
    panel.add(createButtonsPanel(), btnPanelData);
   
    //target tree:
    RowData data = new RowData();
    data.setMargins(new Margins(0, 0, 0, 10));
    LayoutContainer targetTree = createTargetPanel();
    panel.add(targetTree, data);
   
    return panel;
  }
View Full Code Here

  private final LayoutContainer createHeaderButtons() {
    LayoutContainer panel = new LayoutContainer();   
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    panel.setSize(300, 22); //have to hard code to make it visible in FF...
    RowData layoutData = new RowData();
    layoutData.setMargins(new Margins(0, 5, 0, 0));
    addIconButton(BTN_EXPAND, panel, layoutData, constants.expandLevel());
    RowData spaceData = new RowData();
    spaceData.setMargins(new Margins(0, 2, 0, 0));
    panel.add(new LabelField(), spaceData);
    addIconButton(BTN_COLLAPSE, panel, layoutData, constants.collapseLevel());
    panel.add(new LabelField(), spaceData);
    panel.add(new LabelField(), spaceData);
    panel.add(new LabelField(), spaceData);
View Full Code Here

  private final LayoutContainer createSelectionButtons() {
    LayoutContainer panel = new LayoutContainer();   
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    panel.setSize(300, 22); //have to hard code to make it visible in FF...
    RowData layoutData = new RowData();
    layoutData.setMargins(new Margins(0, 5, 0, 0));
    addButton(BTN_ONE, BTN_ONE, panel, layoutData, false, constants.showSelectLevel1());
    addButton(BTN_TWO, BTN_TWO, panel, layoutData, false, constants.showSelectLevel2());
    addButton(BTN_THREE, BTN_THREE, panel, layoutData, false, constants.showSelectLevel3());
    addButton(BTN_FOUR, BTN_FOUR, panel, layoutData, false, constants.showSelectLevel4());
    addButton(BTN_FIVE, BTN_FIVE, panel, layoutData, false, constants.showSelectLevel5());
    RowData spaceData = new RowData();
    spaceData.setMargins(new Margins(0, 2, 0, 0));
    panel.add(new LabelField(), spaceData);
    addButton(BTN_LEAVES, constants.shortHandForBaseElements(), panel, layoutData, false, constants.showSelectBase());
    RowData spaceData2 = new RowData();
    spaceData2.setMargins(new Margins(0, 5, 0, 0));
    panel.add(new LabelField(), spaceData2);
    addButton(BTN_ALL, constants.shortHandForAllElements(), panel, layoutData, false, constants.showSelectAll());
    return panel;
  }
View Full Code Here

  private final LayoutContainer createExtendedButtons() {
    LayoutContainer panel = new LayoutContainer();   
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    panel.setSize(300, 22); //have to hard code to make it visible in FF...
    RowData layoutData = new RowData();
    layoutData.setMargins(new Margins(0, 5, 0, 0));
//    addButton(BTN_ALL, constants.shortHandForAllElements(), panel, layoutData, false, constants.showSelectAll());
//    RowData spaceData = new RowData();
//    spaceData.setMargins(new Margins(0, 2, 0, 0));
//    panel.add(new LabelField(), spaceData);
    addButton(BTN_SELECT_BRANCH, constants.shortHandForSelectBranch(), panel, layoutData, false, constants.showSelectBranch());
    RowData spaceData2 = new RowData();
    spaceData2.setMargins(new Margins(0, 2, 0, 0));
    panel.add(new LabelField(), spaceData2);
    addButton(BTN_INVERT, constants.shortHandForInvertSelection(), panel, layoutData, false, constants.invertSelection());
    return panel;
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.util.Margins

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.