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

Examples of com.extjs.gxt.ui.client.widget.form.TextField


    verticalPanel_2.setWidth(VERTICAL_PANEL_WIDTH);
    horizontalPanelPassword.add(verticalPanel_2);
   
    VerticalPanel verticalPanel_3 = new VerticalPanel();
   
    textPassword = new TextField();
//    textPassword.addKeyListener(new KeyListener() {
//      public void componentKeyPress(ComponentEvent event) {
//        presionoEnter(event);
//      }
//    });
View Full Code Here


  LabelField lblfldNouveauxAdministrateur = new LabelField(messages.newAdmin());

  layoutContainer.add(lblfldNouveauxAdministrateur);
  layoutContainer.add(new Html("&nbsp"));
  txtAdmin = new TextField();

  txtAdmin.addKeyListener(new KeyListener() {

      @Override
      public void componentKeyUp(ComponentEvent event) {
View Full Code Here

  layoutContainer.setBorders(false);
  layoutContainer.setAutoWidth(true);
  LabelField lblfldNouveauxAdministrateur = new LabelField("Nouveaux:");
  layoutContainer.add(lblfldNouveauxAdministrateur);
  layoutContainer.add(new Html("&nbsp"));
  txtChantier = new TextField();
  com.extjs.gxt.ui.client.widget.layout.ColumnData cd_txtChantier = new com.extjs.gxt.ui.client.widget.layout.ColumnData();
  cd_txtChantier.setWidth(0.85);
  layoutContainer.add(txtChantier, cd_txtChantier);
  txtChantier.setFieldLabel("New TextField");
  txtChantier.setWidth("80%");
View Full Code Here

        return message;
    }

    public void addDetail(String labelKey, String labelDefaultValue, Object value) {
        if (value != null) {
            TextField textField = new TextField();
            textField.setFieldLabel(Messages.get(labelKey, labelDefaultValue));
            textField.setReadOnly(true);
            if (value instanceof String) {
                textField.setValue(value);
            } 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

    setLayout(new AbsoluteLayout());
   
    Image image = new Image("images/LogonWindow.qq_PictureGraphic29.png");
    add(image);
   
    final TextField txtflUserID = new TextField();
    add(txtflUserID, new AbsoluteData(160, 66));
    txtflUserID.setFieldLabel("User ID");
   
    TextField txtfldPassword = new TextField();
    txtfldPassword.setPassword(true);
    add(txtfldPassword, new AbsoluteData(160, 117));
    txtfldPassword.setFieldLabel("Password");
   
    Button btnAsCustomer = new Button("As Customer");
    btnAsCustomer.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        CustomerWindow customerWindow = new CustomerWindow((String)txtflUserID.getValue());
View Full Code Here

  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");
   
View Full Code Here

  private NumberField nmbrfldCashBalance;
  private TextField txtfldPhoneTextfield;
  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%"));
View Full Code Here

    this.frmpnlNewFormpanel.setHeaderVisible(false);
    this.frmpnlNewFormpanel.setHeading("");
    this.frmpnlNewFormpanel.setCollapsible(true);
    this.verticalPanel.add(this.frmpnlNewFormpanel);
   
    this.customerNameField = new TextField();
    this.customerNameField.setEnabled(false);
    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();
View Full Code Here

          Element contentEl = body.dom.getChildNodes().getItem(1).cast();
          msgEl = contentEl.getFirstChild().cast();
          msgEl.setInnerHTML(message);

          if (type == MessageBoxType.PROMPT) {
            textBox = new TextField();
            dialog.setFocusWidget(textBox);
            textBox.render(contentEl, 2);
            textBox.el().setWidth(GXT.isIE ? "100%" : "90%");
            icon = null;
          }
View Full Code Here

          Element contentEl = body.dom.getChildNodes().getItem(1).cast();
          msgEl = contentEl.getFirstChild().cast();
          msgEl.setInnerHTML(message);

          if (type == MessageBoxType.PROMPT) {
            textBox = new TextField();
            dialog.setFocusWidget(textBox);
            textBox.render(contentEl, 2);
            textBox.el().setWidth(GXT.isIE ? "100%" : "90%");
            icon = null;
          }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.form.TextField

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.