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

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


    LabelField labelL = new LabelField(title + ":");
    labelL.setPixelSize(130, -1);
    textfield.setPixelSize(220, -1);
    hp.add(labelL);
    hp.add(textfield);
    TableData ldata = new TableData();
    ldata.setColspan(2);

    container.add(hp, ldata);
    return textfield;   
  }
View Full Code Here


//    labelL.setPixelSize(120, -1);   
   
    titleField.setPixelSize(220, -1);
//    hp.add(labelL);
    hp.add(titleField);
    TableData ldata = new TableData();
    ldata.setColspan(1);

    container.add(hp, ldata);
  }
View Full Code Here

    labelL.setPixelSize(150, -1);
    languageBox.setPixelSize(220, -1);
    hp.add(labelL);
    hp.add(languageBox);
       
    TableData ldata = new TableData();
    ldata.setColspan(2);
    rights.add(hp, ldata);
   
    HorizontalPanel hp2 = new HorizontalPanel();
    hp.setVerticalAlign(VerticalAlignment.TOP);
    themeBox.setHideLabel(true);
    LabelField labelL2 = new LabelField(constants.theme() + ":");
    labelL2.setPixelSize(150, -1);
    themeBox.setPixelSize(220, -1);
    hp2.add(labelL2);
    hp2.add(themeBox);
       
    TableData ldata2 = new TableData();
    ldata2.setColspan(2);
    rights.add(hp2, ldata2);

    hideNavigator = new CheckBox();
    hideNavigator.setBoxLabel(constants.hideNavigator());   
    hideViewTabs = new CheckBox();
View Full Code Here

    FieldSet panel = new FieldSet();
    panel.setHeading(constants.olap());
   
    panel.setLayout(new TableLayout(2));
   
    TableData d1 = new TableData();
    d1.setColspan(2);

    panel.add(new LabelField(constants.editPropertiesDescription()), d1);
   
    connectionCombo = new EnhancedComboBox<XObjectWrapper>();
    connectionCombo.setWidth(260);
View Full Code Here

    rights.add(makeEditableView);
   
    makePublicView.setValue(false);
    makeEditableView.setValue(false);
   
    TableData d = new TableData();
    d.setColspan(2);
    panel.add(rights, d);
   
    LabelField label2 = new LabelField();
    label2.setHeight("20px");
    TableData d3 = new TableData();
    d3.setColspan(2);
    panel.add(label2, d3);

    TableData d1 = new TableData();
    d1.setColspan(2);

    panel.add(new LabelField(constants.visibilityHint()), d1);
   
    return panel;
  }
View Full Code Here

    }

    for (int i = 0, len = fields.size(); i < len; i++) {
      Field<?> f = fields.get(i);
      boolean last = i == (fields.size() - 1);
      TableData data = (TableData) ComponentHelper.getLayoutData(f);
      if (data == null) {
        data = new TableData();
      }
      String style = "position: static;";

      if (vertical && !last && spacing > 0) {
        style += "paddingBottom:" + spacing + "px;";
      } else if (!vertical && !last && spacing > 0) {
        style += "paddingRight:" + spacing + "px;";
      }
      data.setStyle(style);

      lc.add(f, data);
    }

    lc.render(target, index);
View Full Code Here

    if (GXT.isIE) lc.setStyleAttribute("position", "relative");

    for (int i = 0, len = fields.size(); i < len; i++) {
      Field f = fields.get(i);
      boolean last = i == (fields.size() - 1);
      TableData data = (TableData) ComponentHelper.getLayoutData(f);
      if (data == null) {
        data = new TableData();
      }
      String style = "position: static;";

      if (vertical && !last && spacing > 0) {
        style += "paddingBottom:" + spacing + ";";
      } else if (!vertical && spacing > 0) {
        style += "paddingRight:" + spacing + ";";
      }
      data.setStyle(style);

      lc.add(f, data);
    }

    lc.render(target, index);
View Full Code Here

   */
  public boolean insert(ToolItem item, int index) {
    boolean added = super.insert(item, index);
    if (added) {
      item.toolBar = this;
      TableData data = new TableData();
      data.setVerticalAlign(VerticalAlignment.MIDDLE);
      ComponentHelper.setLayoutData(item, data);
      if (item instanceof FillToolItem) {
        data.setWidth("100%");
      }
    }
    return added;
  }
View Full Code Here

    }
    if (GXT.isIE) lc.setStyleAttribute("position", "relative");

    for (int i = 0, len = fields.size(); i < len; i++) {
      Field f = fields.get(i);
      TableData data = (TableData) ComponentHelper.getLayoutData(f);
      if (data == null) {
        data = new TableData();
      }
      String style = "position: static;";
      style += "paddingRight:" + spacing + ";";
      data.setStyle(style);
      lc.add(f, data);
    }

    lc.render(target, index);
    setElement(lc.getElement());
View Full Code Here

   * @param index the insert location
   * @return true if the button was added
   */
  @Override
  public boolean insert(Button button, int index) {
    TableData data = new TableData();
    data.setStyle("paddingRight: 4px;");
    if (button instanceof FillButton) {
      data.setWidth("100%");
    }
    ComponentHelper.setLayoutData(button, data);

    if (!(button instanceof ButtonAdapter)) {
      button.setMinWidth(buttonWidth);
View Full Code Here

TOP

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

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.