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