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

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


    name.addKeyListener(keyListener);
    name.setStyleAttribute("marginTop", "5");
    name.setStyleAttribute("marginBottom", "5");
    panel.add(name);

    description = new TextArea();
    description.setPreventScrollbars(true);
    description.setFieldLabel(constants.description());
    description.addKeyListener(keyListener);
    description.setStyleAttribute("marginTop", "5");
    description.setStyleAttribute("marginBottom", "5");
View Full Code Here


    name.addKeyListener(keyListener);
    name.setStyleAttribute("marginTop", "5");
    name.setStyleAttribute("marginBottom", "5");
    panel.add(name);

    description = new TextArea()
    description.setPreventScrollbars(true)
    description.setFieldLabel(constants.description());
    description.addKeyListener(keyListener);
    description.setStyleAttribute("marginTop", "5");
    description.setStyleAttribute("marginBottom", "5");
View Full Code Here

   
    LabelField label = new LabelField();
    label.setHeight("20px");
    panel.add(label);
       
    directLink = new TextArea();
    directLink.setReadOnly(true);
    directLink.setSize(375, 100);
    panel.add(directLink);
   
    LabelField label2 = new LabelField();
View Full Code Here

    name.addKeyListener(keyListener);
    name.setStyleAttribute("marginTop", "5");
    name.setStyleAttribute("marginBottom", "5");
    panel.add(name);

    description = new TextArea();
    description.setPreventScrollbars(true);
    description.setFieldLabel(constants.description());
    description.addKeyListener(keyListener);
    description.setStyleAttribute("marginTop", "5");
    description.setStyleAttribute("marginBottom", "5");
View Full Code Here

        tagsComboBox.setDisplayField(Constants.NAME);

        LabelField lblfldNotes = new LabelField(textMessages.notes_());
        add(lblfldNotes, new AbsoluteData(6, 146));
       
        notesTextArea = new TextArea();
        notesTextArea.setReadOnly(isPasswordReadOnly);
        add(notesTextArea, new AbsoluteData(82, 146));
        notesTextArea.setSize("331px", "75px");
       
        LabelField lblfldMaxHistory = new LabelField(textMessages.maxHistory_());
View Full Code Here

    window.setResizable(true);
    window.setScrollMode(Scroll.AUTO);
    window.setModal(true);
   
       // prepare form
       final TextArea description = new TextArea()
       description.setWidth(400);
       description.setValue(note.getText());
      
       window.add(description);

      // prepare bottom component
      ButtonBar buttons = new ButtonBar()
      buttons.setAlignment(HorizontalAlignment.RIGHT);
        buttons.add(new Button("Cancel", new SelectionListener<ButtonEvent>() { 
       public void componentSelected(ButtonEvent ce) { 
         window.hide();
         window = null;
        
     }))
       
        // if the note already existed allow for removal
        if(null != note.getId()){
          buttons.add(new Button("Remove", new SelectionListener<ButtonEvent>() { 
             public void componentSelected(ButtonEvent ce) { 
               note.setText(description.getValue());
              
               Commands.getInstance().removeNote(note, new CommandCallback<Boolean>(){
 
             public void cc_callback(Boolean value) {
               callback.callback(note, NOTE_REMOVED);
             }
                
               });
               window.hide();
               window = null;
            
          }))
        }
      
       buttons.add(new Button("OK", new SelectionListener<ButtonEvent>() { 
          public void componentSelected(ButtonEvent ce) { 
            note.setText(description.getValue());
           
            Commands.getInstance().storeNote(note, new CommandCallback<TCNote>(){

          public void cc_callback(TCNote resultingNote) {
            callback.callback(resultingNote, NOTE_ADDED);
View Full Code Here

            textBox.setData("aria-next", fbar.getId());
            fbar.setData("aria-previous", textBox.getId());
            fbar.setData("aria-next", textBox.getId());
            icon = null;
          } else if (type == MessageBoxType.MULTIPROMPT) {
            textArea = new TextArea();
            textArea.getAriaSupport().setLabelledBy(getId() + "-content");
            textArea.setHeight(defaultTextHeight);
            dialog.setFocusWidget(textArea);
            textArea.render(contentEl, 2);
            textArea.setData("aria-next", fbar.getId());
View Full Code Here

            textBox.el().setWidth(GXT.isIE ? "100%" : "90%");
            icon = null;
          }

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

            textBox.el().setWidth(GXT.isIE ? "100%" : "90%");
            icon = null;
          }

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

            textBox.getFocusSupport().setNextId(fbar.getId());
            fbar.getFocusSupport().setPreviousId(textBox.getId());
            fbar.getFocusSupport().setNextId(textBox.getId());
            icon = null;
          } else if (type == MessageBoxType.MULTIPROMPT) {
            textArea = new TextArea();
            textArea.getAriaSupport().setLabelledBy(getId() + "-content");
            textArea.setHeight(defaultTextHeight);
            dialog.setFocusWidget(textArea);
            textArea.render(contentEl, 2);
            textArea.getFocusSupport().setNextId(fbar.getId());
View Full Code Here

TOP

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

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.