Package com.vaadin.ui

Examples of com.vaadin.ui.TextArea


    musteriIlce = new ComboBox("İlçe");
    musteriIl = new ComboBox("İl");
    final ComboBox musteriUlke = new ComboBox("Ülke");
    final TextField musteriMail = new TextField("Mail Adresi");
    final TextField musteriWeb = new TextField("Firma Web Sayfasi");
    final TextArea musteriNot = new TextArea("Not");
    telefonEkleButton = new Button("+",this);

    final TextField musteriTelefon = new TextField("Telefon");
    final TextField musteriTelefonTuru = new TextField("Telefon Türü");
    kaydetButton = new Button("Kaydet",this);

    Form musteriTemelBilgilerForm = new Form();
    Form musteriAdresBilgilerForm = new Form();
    Form musteriIletisimBilgilerForm = new Form();

    musteriTemelBilgilerForm.setImmediate(true);
    musteriAdresBilgilerForm.setImmediate(true);
    musteriIletisimBilgilerForm.setImmediate(true);

    musteriTemelBilgilerLayout.setWidth("100%");
    musteriTemelBilgilerLayout.setHeight("460px");
    musteriAdresBilgilerLayout.setWidth("100%");
    musteriAdresBilgilerLayout.setHeight("460px");
    musteriIletisimBilgilerLayout.setWidth("100%");
    musteriIletisimBilgilerLayout.setHeight("360px");

    musteriVdn.setWidth("200px");
    musteriVd.setWidth("200px");
    musteriAdi.setWidth("200px");
    musteriTuru.setWidth("200px");
    musteriTipi.setWidth("200px");
    musteriSektor.setWidth("200px");
    musteriAdres.setWidth("200px");
    musteriSemt.setWidth("200px");
    musteriIlce.setWidth("200px");
    musteriIl.setWidth("200px");
    musteriUlke.setWidth("200px");
    musteriMail.setWidth("200px");
    musteriWeb.setWidth("200px");
    musteriNot.setWidth("200px");
    // musteriTelefon.setWidth("200px");
    musteriTelefonTuru.setWidth("200px");

    // temelbilgiler
    musteriTemelBilgilerLayout.addComponent(musteriVdn, "left : 30px ; top : 50px");
View Full Code Here


   * @return Produced field.
   */
  public static TextArea createTextArea(String inputPrompt, String caption, int rows, int columns) {
    ResourceBundle bundle = Beans.getReference(ResourceBundle.class);

    TextArea field = new TextArea();
    field.setNullRepresentation("");
    field.setRows(rows);
    field.setColumns(columns);
    setBasicProperties(field, caption);

    if (Strings.isResourceBundleKeyFormat(inputPrompt)) {
      field.setInputPrompt(bundle.getString(Strings.removeBraces(inputPrompt)));
    } else {
      field.setInputPrompt(inputPrompt);
    }

    return field;
  }
View Full Code Here

            setWidth("100%");

            m_id = id;
            m_object = object;

            m_editor = new TextArea(null, initialText);
            m_editor.setRows(15);
            m_editor.addListener(this);
            m_editor.setImmediate(true);
            m_editor.setWidth("100%");
            m_editor.setHeight("70%");
View Full Code Here

     * @return a {@link TextArea} instance, never <code>null</code>.
     */
    final TextArea getProperties(Event event) {
        Map<String, String> props = event.getProperties();

        TextArea area = new TextArea("", dumpProperties(props));
        area.setWidth(FILL_AREA);
        area.setRows(props.size());
        area.setWordwrap(false);
        area.setReadOnly(true);
        area.setImmediate(true);
        return area;
    }
View Full Code Here

    nameTextField.setRequired(true);
    nameTextField.setValue(modelData.getName());
    form.getLayout().addComponent(nameTextField);
    nameTextField.focus();
   
    descriptionTextArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
    descriptionTextArea.setRows(8);
    descriptionTextArea.setWidth(20, Sizeable.UNITS_EM);
    form.getLayout().addComponent(descriptionTextArea);
   
    addComponent(form);
View Full Code Here

    nameTextField.setWidth(20, Sizeable.UNITS_EM);
    nameTextField.setRequired(true);
    form.getLayout().addComponent(nameTextField);
    nameTextField.focus();
   
    descriptionTextArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
    descriptionTextArea.setRows(8);
    descriptionTextArea.setWidth(20, Sizeable.UNITS_EM);
    form.getLayout().addComponent(descriptionTextArea);
   
    addComponent(form);
View Full Code Here

  protected void initLayoutClickListener() {
    addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
          // textarea
          final TextArea descriptionTextArea = new TextArea();
          descriptionTextArea.setWidth(100, UNITS_PERCENTAGE);
          descriptionTextArea.setValue(task.getDescription());
          editLayout.addComponent(descriptionTextArea);
         
          // ok button
          Button okButton = new Button(i18nManager.getMessage(Messages.BUTTON_OK));
          editLayout.addComponent(okButton);
          editLayout.setComponentAlignment(okButton, Alignment.BOTTOM_RIGHT);
         
          // replace
          replaceComponent(descriptionLabel, editLayout);
         
          // When OK is clicked -> update task data + ui
          okButton.addListener(new ClickListener() {
            public void buttonClick(ClickEvent event) {
              // Update data
              task.setDescription(descriptionTextArea.getValue().toString());
              taskService.saveTask(task);
             
              // Update UI
              descriptionLabel.setValue(task.getDescription());
              replaceComponent(editLayout, descriptionLabel);
View Full Code Here

    nameTextField.setRequired(true);
    nameTextField.setValue(modelData.getName());
    form.getLayout().addComponent(nameTextField);
    nameTextField.focus();
   
    descriptionTextArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
    descriptionTextArea.setRows(8);
    descriptionTextArea.setWidth(20, Sizeable.UNITS_EM);
    form.getLayout().addComponent(descriptionTextArea);
   
    addComponent(form);
View Full Code Here

    nameTextField.setWidth(25, Sizeable.UNITS_EM);
    nameTextField.focus();
    formLayout.addComponent(nameTextField);
   
    formLayout.addComponent(new Label(i18nManager.getMessage(Messages.TASK_DESCRIPTION)));
    descriptionTextArea = new TextArea();
    descriptionTextArea.setRows(8);
    descriptionTextArea.setWidth(25, Sizeable.UNITS_EM);
    descriptionTextArea.addStyleName(ExplorerLayout.STYLE_TEXTAREA_NO_RESIZE);
    formLayout.addComponent(descriptionTextArea);
   
View Full Code Here

          // layout for textarea + ok button
          final VerticalLayout editLayout = new VerticalLayout();
          editLayout.setSpacing(true);
         
          // textarea
          final TextArea descriptionTextArea = new TextArea();
          descriptionTextArea.setNullRepresentation("");
          descriptionTextArea.setWidth(100, UNITS_PERCENTAGE);
          descriptionTextArea.setValue(task.getDescription());
          editLayout.addComponent(descriptionTextArea);
         
          // ok button
          Button okButton = new Button(i18nManager.getMessage(Messages.BUTTON_OK));
          editLayout.addComponent(okButton);
          editLayout.setComponentAlignment(okButton, Alignment.BOTTOM_RIGHT);
         
          // replace
          descriptionLayout.replaceComponent(descriptionLabel, editLayout);
         
          // When OK is clicked -> update task data + ui
          okButton.addListener(new ClickListener() {
            public void buttonClick(ClickEvent event) {
              // Update data
              task.setDescription(descriptionTextArea.getValue().toString());
              taskService.saveTask(task);
             
              // Update UI
              descriptionLabel.setValue(task.getDescription());
              descriptionLayout.replaceComponent(editLayout, descriptionLabel);
View Full Code Here

TOP

Related Classes of com.vaadin.ui.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.