Package net.helipilot50.stocktrade.client

Source Code of net.helipilot50.stocktrade.client.CustomerDetailsPanel

package net.helipilot50.stocktrade.client;

import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.NumberField;

public class CustomerDetailsPanel extends FormPanel {

  private ModelData customer;
  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");
  }

}
TOP

Related Classes of net.helipilot50.stocktrade.client.CustomerDetailsPanel

TOP
Copyright © 2018 www.massapi.com. 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.