Examples of MaxLengthTextArea


Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

      fs.add(new MaxLengthTextField(InputPanel.WICKET_ID, new PropertyModel<String>(data, "description")));
    }
    {
      // comment
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("comment"));
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "comment")));
    }
    {
      // DropDownChoice status
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("status"));
      final LabelValueChoiceRenderer<KostentraegerStatus> statusChoiceRenderer = new LabelValueChoiceRenderer<KostentraegerStatus>(this,
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

    gridBuilder.newGridPanel();
    {
      // Description
      fs = gridBuilder.newFieldset(TrainingDO.class, "description");
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "description"))).setAutogrow();
    }

    {
      // startDate
      fs = gridBuilder.newFieldset(TrainingDO.class, "startDate");
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

        fieldSet.setEnabled(false);
    }
    {
      // NOTE
      final FieldsetPanel fieldSet = gridBuilder.newFieldset(getString("plugins.teamcal.event.note"));
      final MaxLengthTextArea noteField = new MaxLengthTextArea(fieldSet.getTextAreaId(), new PropertyModel<String>(data, "note"));
      fieldSet.add(noteField).setAutogrow();
      if (access == false)
        fieldSet.setEnabled(false);
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

    gridBuilder.newGridPanel();
    {
      // Text with JIRA support
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("text"));
      final IModel<String> model = new PropertyModel<String>(data, "text");
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, model));
      fs.addJIRAField(model);
    }
    {
      // Filing
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("filing"));
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

    final LicenseManagementRight right = (LicenseManagementRight) UserRights.instance().getRight(LicenseDao.USER_RIGHT_ID);
    {
      // Text key
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("plugins.licensemanagement.key"));
      if (right.isLicenseKeyVisible(getUser(), data) == true) {
        fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "key"))).setAutogrow();
      } else {
        fs.add(new DivTextPanel(fs.newChildId(), getString("plugins.licensemanagement.key.notvisible")));
        fs.addHelpIcon(getString("plugins.licensemanagement.key.notvisible.tooltip"));
      }
    }
    if ((isNew() == true && right.hasInsertAccess(getUser()) == true) //
        || (right.hasUpdateAccess(getUser(), data, null) == true && right.isLicenseKeyVisible(getUser(), data) == true)) {
      gridBuilder.newSplitPanel(GridSize.COL50);
      FieldsetPanel fs = gridBuilder.newFieldset(gridBuilder.getString("plugins.licensemanagement.file1"));
      fileUploadPanel1 = new FileUploadPanel(fs.newChildId(), fs, this, true, new PropertyModel<String>(data, "filename1"),
          new PropertyModel<byte[]>(data, "file1"));
      if (isNew() == false && (data.getFile1() != null || data.getFile2() != null)) {
        // Swap files:
        fs.add(new IconButtonPanel(fs.newChildId(), IconType.SWAP, getString("plugins.licensemanagement.swapFiles")) {
          /**
           * @see org.projectforge.web.wicket.flowlayout.IconButtonPanel#onSubmit()
           */
          @Override
          protected void onSubmit()
          {
            final byte[] swap = data.getFile1();
            final String swapFilename = data.getFilename1();
            data.setFile1(data.getFile2());
            data.setFilename1(data.getFilename2());
            data.setFile2(swap);
            data.setFilename2(swapFilename);
          }
        });
      }
      gridBuilder.newSplitPanel(GridSize.COL50);
      fs = gridBuilder.newFieldset(gridBuilder.getString("plugins.licensemanagement.file2"));
      fileUploadPanel2 = new FileUploadPanel(fs.newChildId(), fs, this, true, new PropertyModel<String>(data, "filename2"),
          new PropertyModel<byte[]>(data, "file2"));
      gridBuilder.newGridPanel();
    } else if (right.isLicenseKeyVisible(getUser(), data) == true) {
    }
    {
      // Text comment
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("comment"));
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "comment"))).setAutogrow();
    }
    addCloneButton();
  }
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

          true);
    }
    {
      // Comment
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("comment"));
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "comment"))).setAutogrow();
    }
  }
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

      });
    }
    {
      // Text description
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("comment"));
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "comment")));
    }
  }
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

      fs.add(inhaltTextField);
    }
    {
      // Comment
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("comment"));
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "bemerkung")), true);
    }
  }
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

      fs.add(new MaxLengthTextField(fs.getTextFieldId(), new PropertyModel<String>(data, "trainingCourses")));
    }
    {
      // Description
      final FieldsetPanel fs = gridBuilder.newFieldset(SkillRatingDO.class, "description");
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "description"))).setAutogrow();
    }
    {
      // Comment
      final FieldsetPanel fs = gridBuilder.newFieldset(SkillRatingDO.class, "comment");
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "comment"))).setAutogrow();
    }
  }
View Full Code Here

Examples of org.projectforge.web.wicket.components.MaxLengthTextArea

    }
    gridBuilder.newGridPanel();
    {
      // Text description
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("description"));
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "description"))).setAutogrow();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.