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

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


            } else if (value instanceof Date) {
                textField.setValue(org.jahia.ajax.gwt.client.util.Formatter.getFormattedDate((Date) value, SECONDS_PRECISION_DATETIME_FORMAT));
            } else {
                textField.setValue(value.toString());
            }
            detailsPanel.add(textField, new FormData("98%"));
        }
    }
View Full Code Here


  public CustomerDetailsPanel() {
    setHeading("Customer");
   
    TextField txtfldCustomerName = new TextField();
    txtfldCustomerName.setName("CustomerName");
    add(txtfldCustomerName, new FormData("100%"));
    txtfldCustomerName.setFieldLabel("Name");
   
    TextArea txtrAddress = new TextArea();
    add(txtrAddress, new FormData("100%"));
    txtrAddress.setFieldLabel("Address");
   
    NumberField nmbrfldPhoneNumber = new NumberField();
    add(nmbrfldPhoneNumber, new FormData("100%"));
    nmbrfldPhoneNumber.setFieldLabel("Phone");
   
    NumberField nmbrfldCashBalance = new NumberField();
    add(nmbrfldCashBalance, new FormData("100%"));
    nmbrfldCashBalance.setFieldLabel("Cash Balance");
  }
View Full Code Here

   
    ColumnConfig clmncnfgPrice = new ColumnConfig("price", "Price", 150);
    configs.add(clmncnfgPrice);

    Grid grid = new Grid(holdings, new ColumnModel(configs));
    add(grid, new FormData("100%"));
    grid.setBorders(true);
   
  }
View Full Code Here

  public FeedForm() {
    setHeaderVisible(false);
   
    txtfldTitle = new TextField<String>();
    txtfldTitle.setAllowBlank(false);
    FormData fd_txtfldTitle = new FormData("100%");
    fd_txtfldTitle.setMargins(new Margins(2, 20, 2, 2));
    add(txtfldTitle, fd_txtfldTitle);
    txtfldTitle.setFieldLabel("Title");
    txtfldTitle.getMessages().setBlankText("Title is required");
   
    txtrDescription = new TextArea();
    txtrDescription.setAllowBlank(false);
    FormData fd_txtrDescription = new FormData("100% -150");
    fd_txtrDescription.setMargins(new Margins(2, 20, 2, 2));
    add(txtrDescription, fd_txtrDescription);
    txtrDescription.setFieldLabel("Description");
    txtrDescription.getMessages().setBlankText("Description is required");
   
    txtfldLink = new TextField<String>();
    txtfldLink.setRegex("^http\\://[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(/\\S*)?$");
    txtfldLink.setAllowBlank(false);
    FormData fd_txtfldLink = new FormData("100%");
    fd_txtfldLink.setMargins(new Margins(2, 20, 2, 2));
    add(txtfldLink, fd_txtfldLink);
    txtfldLink.setFieldLabel("Link");
    txtfldLink.getMessages().setBlankText("Link is required");
    txtfldLink.getMessages().setRegexText("The link field must be a URL e.g. http://www.example.com/rss.xml");
   
View Full Code Here

    this.txtfldHost.addListener(Events.Change, new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent e) {
        hostName = txtfldHost.getValue();
      }
    });
    add(this.txtfldHost, new FormData("100%"));
    this.txtfldHost.setFieldLabel("Host");
   
    this.nmbrfldPort = new NumberField();
    this.nmbrfldPort.addListener(Events.Change, new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent e) {
        port = (Integer) nmbrfldPort.getValue();
      }
    });
    add(this.nmbrfldPort, new FormData("100%"));
    this.nmbrfldPort.setFieldLabel("Port");
   
  }
View Full Code Here

    add(txtflUserID);
    txtflUserID.setFieldLabel("Customer Name");

    HorizontalPanel horizontalPanel = new HorizontalPanel();
    horizontalPanel.setHorizontalAlign(HorizontalAlignment.CENTER);
    add(horizontalPanel, new FormData("100%"));

    Button btnAsCustomer = new Button("Customer");
    horizontalPanel.add(btnAsCustomer);

    Button btnAsTrader = new Button("Trader");
View Full Code Here

  public CustomerDetailsPanel() {
    setHeading("Customer");
   
    txtfldCustomerName = new TextField();
    txtfldCustomerName.setName("CustomerName");
    add(txtfldCustomerName, new FormData("100%"));
    txtfldCustomerName.setFieldLabel("Name");
   
    txtrAddress = new TextArea();
    add(txtrAddress, new FormData("100%"));
    txtrAddress.setFieldLabel("Address");
   
    this.txtfldPhoneTextfield = new TextField();
    add(this.txtfldPhoneTextfield, new FormData("100%"));
    this.txtfldPhoneTextfield.setFieldLabel("Phone");
   
    nmbrfldCashBalance = new NumberField();
    add(nmbrfldCashBalance, new FormData("100%"));
    nmbrfldCashBalance.setFieldLabel("Cash Balance");
    if (this.customer != null)
      initDataBindings();
  }
View Full Code Here

    configs.add(clmncnfgPrice);

    ColumnModel cm = new ColumnModel(configs);
   
    grid = new Grid<Holding>(holdings, cm);
    add(grid, new FormData("-5 -10"));
    grid.setSize("", "");
    grid.setBorders(true);
   
  }
View Full Code Here

   
    this.smplcmbxStock = new SimpleComboBox<String>();
    this.smplcmbxStock.setForceSelection(true);
    this.smplcmbxStock.setEditable(false);
    this.smplcmbxStock.setAllowBlank(false);
    this.frmpnlNewFormpanel.add(this.smplcmbxStock, new FormData("100%"));
    this.smplcmbxStock.setFieldLabel("Stock");
    this.smplcmbxStock.setEmptyText("Select stock");
    this.smplcmbxStock.setTriggerAction(TriggerAction.ALL);
    populateStocks();
   
   
   
    this.nmbrfldQuantity = new NumberField();
    this.frmpnlNewFormpanel.add(this.nmbrfldQuantity, new FormData("100%"));
    this.nmbrfldQuantity.setFieldLabel("Quantity");
   
    this.nmbrfldPrice = new NumberField();
    this.frmpnlNewFormpanel.add(this.nmbrfldPrice, new FormData("100%"));
    this.nmbrfldPrice.setFieldLabel("Price");
    add(this.frmpnlNewFormpanel);
   
    this.buttonGroup = new ButtonGroup(1);
    TableLayout tableLayout = (TableLayout) this.buttonGroup.getLayout();
View Full Code Here

    this.frmpnlNewFormpanel.add(this.customerNameField);
    this.customerNameField.setFieldLabel("Name");
   
    this.addressField = new TextArea();
    this.addressField.setEnabled(false);
    this.frmpnlNewFormpanel.add(this.addressField, new FormData("100%"));
    this.addressField.setFieldLabel("Address");
   
    this.phoneField = new TextField();
    this.phoneField.setEnabled(false);
    this.frmpnlNewFormpanel.add(this.phoneField, new FormData("100%"));
    this.phoneField.setFieldLabel("Phone");
   
    this.cashBalanceField = new NumberField();
    this.cashBalanceField.setEnabled(false);
    this.frmpnlNewFormpanel.add(this.cashBalanceField, new FormData("100%"));
    this.cashBalanceField.setFieldLabel("Cash Balance");
   
    this.holdingListField = new CellTable<Holding>();
    this.holdingListField.setPageSize(5);
    this.verticalPanel.add(this.holdingListField);
View Full Code Here

TOP

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

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.