Package com.gwtext.client.widgets.form

Examples of com.gwtext.client.widgets.form.TextField


      cols[idx].setHeader(var);
      cols[idx].setDataIndex(var);
      cols[idx].setSortable(false);
      cols[idx].setWidth(50);
      cols[idx].setResizable(true);
      cols[idx].setEditor(new GridEditor(new TextField()));
      fds[idx] = new StringFieldDef(var);
      idx++;
    }
    final RecordDef recordDef = new RecordDef(fds);
    ArrayReader reader = new ArrayReader(recordDef);
View Full Code Here


  private String userNameLoggedIn;

  public void show() {
    final FormStylePopup pop = new FormStylePopup("images/login.gif", messages.Login());

    final TextField userName = new TextField("username");
    pop.addAttribute(messages.UserName(), userName);

    final TextField password = new TextField("password" );
    password.setPassword(true);
    pop.addAttribute(messages.Password(), password);

        KeyListener kl = new KeyListener() {
            public void onKey(int key, EventObject e) {
        if (key == KeyboardListener.KEY_ENTER) {
                    doLogin(userName, password, pop);
                }
       
            }
        };

        userName.addKeyListener(KeyboardListener.KEY_ENTER, kl);
        password.addKeyListener(KeyboardListener.KEY_ENTER, kl);

    Button b = new Button(messages.OK());

    b.addClickListener(new ClickListener() {
      public void onClick(Widget arg0) {
View Full Code Here

        MemoryProxy proxy = new MemoryProxy(data);
        store = new Store(proxy, new ArrayReader(recordDef));
        store.load();

        ColumnConfig keyCol = new ColumnConfig("Key?", "key", 100, true, null, "key");    //NON-NLS
        keyCol.setEditor(new GridEditor(new TextField()));
        keyCol.setFixed(false);

        ColumnConfig valueCol = new ColumnConfig("Value?", "value", 100, true, null, "value"); //NON-NLS
        valueCol.setEditor(new GridEditor(new TextField()));
        valueCol.setFixed(false);

        ColumnConfig[] columnConfigs = {keyCol, valueCol};

        ColumnModel columnModel = new ColumnModel(columnConfigs);
View Full Code Here

      cols[idx].setHeader(var);
      cols[idx].setDataIndex(var);
      cols[idx].setSortable(false);
      cols[idx].setWidth(50);
      cols[idx].setResizable(true);
      cols[idx].setEditor(new GridEditor(new TextField()));
      fds[idx] = new StringFieldDef(var);
      idx++;
    }
    final RecordDef recordDef = new RecordDef(fds);
    ArrayReader reader = new ArrayReader(recordDef);
View Full Code Here

  private String userNameLoggedIn;

  public void show() {
    final FormStylePopup pop = new FormStylePopup("images/login.gif", messages.Login());

    final TextField userName = new TextField("username");
    pop.addAttribute(messages.UserName(), userName);

    final TextField password = new TextField("password" );
    password.setPassword(true);
    pop.addAttribute(messages.Password(), password);

        KeyListener kl = new KeyListener() {
            public void onKey(int key, EventObject e) {
        if (key == KeyboardListener.KEY_ENTER) {
                    doLogin(userName, password, pop);
                }
       
            }
        };

        userName.addKeyListener(KeyboardListener.KEY_ENTER, kl);
        password.addKeyListener(KeyboardListener.KEY_ENTER, kl);

    Button b = new Button(messages.OK());

    b.addClickListener(new ClickListener() {
      public void onClick(Widget arg0) {
View Full Code Here

    Checkbox standardCheckbox = new Checkbox(TextProvider.get().identities_panel_label_standard(), "standard");
    standardCheckbox.setDisabled(true);
    this.detailsFormPanel.add(standardCheckbox);

    TextField textfield = null;
    KeyListener keyListener = new KeyListener() {

      public void onKey( int key, EventObject e ) {

        if (key == KeyboardListener.KEY_ENTER) {
          resumeIdentities();
        }
      }
    };

    this.formFields = new ArrayList<Component>();

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_name(),
        "displayName"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(
        textfield = new TextField(TextProvider.get().identities_panel_label_email(), "email"),
        new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_organisation(),
        "organisation"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_reply(),
        "replyTo"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_bcc(), "bcc"),
        new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextArea(TextProvider.get().identities_panel_label_signature(),
        "signature"), new AnchorLayoutData("60%"));
    this.formFields.add(textfield);
View Full Code Here

    JavaScriptObject inputFile = detachInputFile(false);
    ExtElement e = new ExtElement(inputFile);   
    //this is GWT 1.5 specific, lets check with users first before removing support for 1.4
    //e.getDOM().setAttribute("name", name);
    DOM.setElementAttribute(e.getDOM(), "name", name);
    TextField tf = new TextField();
    tf.setInputType("file");
    tf.setEl(e.getDOM());
    return tf;
  }
View Full Code Here

    setBorder( false );
    setLayout( new FitLayout() );
    setVisible( visible );
    setPaddings( 1, 1, 1, 1 );

    this.from = new TextField( TextProvider.get().extended_search_panel_from(), SearchFields.FROM.name(), 150 );
    this.to = new TextField( TextProvider.get().extended_search_panel_to(), SearchFields.TO.name(), 150 );
    this.cc = new TextField( TextProvider.get().extended_search_panel_cc(), SearchFields.CC.name(), 150 );
    this.subject = new TextField( TextProvider.get().extended_search_panel_subject(), SearchFields.SUBJECT.name(),
        150 );
    this.content = new TextField( TextProvider.get().extended_search_panel_body(), SearchFields.CONTENT.name(), 400 );
    this.dateFrom = new DateField( TextProvider.get().extended_search_panel_date_from(),
        SearchFields.DATE_FROM.name(), 100 );
    this.dateFrom.setFormat( TextProvider.get().extended_search_panel_date_format() );
    this.dateTo = new DateField( TextProvider.get().extended_search_panel_date_to(), SearchFields.DATE_TO.name(),
        100 );
View Full Code Here

    this.formPanel.setFrame( true );
    this.formPanel.setBorder( false );
    this.formPanel.setPaddings( 10 );
    this.formPanel.setLabelWidth( 100 );
    this.formPanel.add( new HTMLPanel( TextProvider.get().logindialog_message() ) );
    this.username = new TextField( TextProvider.get().logindialog_label_username(), "username" );
    // this.username.setAllowBlank( false );
    // this.username.setBlankText(
    // TextProvider.get().logindialog_empty_username() );
    this.formPanel.add( this.username );
    this.password = new TextField( TextProvider.get().logindialog_label_password(), "password" );
    // this.password.setAllowBlank( false );
    // this.password.setBlankText(
    // TextProvider.get().logindialog_empty_password() );
    this.password.setPassword( true );
    this.formPanel.add( this.password );
View Full Code Here

    this.bccText = new EmailAddressComboBox( TextProvider.get().window_compose_message_label_bcc() );
    this.formPanel.add( createAddressLine( this.bccText, ContactListWindow.BCC_FIELD ), new AnchorLayoutData(
        "100%" ) );

    this.subjectText = new TextField( TextProvider.get().window_compose_message_label_subject() );
    this.formPanel.add( this.subjectText, new AnchorLayoutData( "100%" ) );

    this.attachmentsPanel = new Panel();
    this.attachmentsPanel.setLayout( new ColumnLayout() );
    this.formPanel.add( this.attachmentsPanel, new AnchorLayoutData( "100%" ) );
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.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.