Package org.projectforge.web.wicket.components

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


      final FieldsetPanel fs = gridBuilder.newFieldset(getString("feedback.sender")).suppressLabelForWarning();
      fs.add(new DivTextPanel(fs.newChildId(), data.getSender()));
    }
    {
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("description"));
      final MaxLengthTextArea description = new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "description"), 4000);
      WicketUtils.setFocus(description);
      fs.add(description, true);
    }
    {
      addCancelButton(new Button(SingleButtonPanel.WICKET_ID, new Model<String>("cancel")) {
View Full Code Here


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

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

        } else if (param.isMultiline() == true) {
          int maxLength = param.getMaxLength();
          if (maxLength <= 0 || UserPrefEntryDO.MAX_STRING_VALUE_LENGTH < maxLength) {
            maxLength = UserPrefEntryDO.MAX_STRING_VALUE_LENGTH;
          }
          fs.add(new TextAreaPanel(fs.newChildId(), new MaxLengthTextArea(TextAreaPanel.WICKET_ID,
              new PropertyModel<String>(param, "value"), maxLength)));
        } else if (I18nEnum.class.isAssignableFrom(param.getType()) == true) {
          final LabelValueChoiceRenderer<I18nEnum> choiceRenderer = new LabelValueChoiceRenderer<I18nEnum>(this, (I18nEnum[]) param
              .getType().getEnumConstants());
          final DropDownChoice<I18nEnum> choice = new DropDownChoice<I18nEnum>(fs.getDropDownChoiceId(),
View Full Code Here

    // GRID 50% - BLOCK
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // Bemerkung
      final FieldsetPanel fs = gridBuilder.newFieldset(AbstractRechnungDO.class, "bemerkung");
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "bemerkung")), true);
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // Besonderheiten
      final FieldsetPanel fs = gridBuilder.newFieldset(AbstractRechnungDO.class, "besonderheiten");
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "besonderheiten")), true);
    }
    gridBuilder.newGridPanel();
    positionsRepeater = gridBuilder.newRepeatingView();
    if (costConfigured == true) {
      addCostEditModalDialog();
View Full Code Here

          posGridBuilder.newSplitPanel(GridSize.COL50);
        } else {
          posGridBuilder.newGridPanel();
        }
        final FieldsetPanel fieldset = posGridBuilder.newFieldset(getString("fibu.rechnung.text"));
        fieldset.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(position, "text")), true);
      }
      if (costConfigured == true) {
        {
          // Cost assignments
          posGridBuilder.newSplitPanel(GridSize.COL50, true);
View Full Code Here

      }, getString("access.templates.administrator"), SingleButtonPanel.DANGER));
    }
    {
      // Description
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("description"));
      fs.add(new MaxLengthTextArea(fs.getTextAreaId(), new PropertyModel<String>(data, "description")), true);
    }
  }
View Full Code Here

          });
        }
        fs.add(textField);
        valueField = textField;
      } else if (data.getConfigurationType() == ConfigurationType.TEXT) {
        final MaxLengthTextArea textArea = new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "stringValue"));
        fs.add(textArea);
        valueField = textArea;
      } else if (data.getConfigurationType() == ConfigurationType.BOOLEAN) {
        fs.addCheckBox(new PropertyModel<Boolean>(data, "booleanValue"), null);
      } else if (data.getConfigurationType() == ConfigurationType.TIME_ZONE) {
View Full Code Here

      posGridBuilder.newSplitPanel(GridSize.COL50);
      {
        // Description
        final FieldsetPanel fs = posGridBuilder.newFieldset(getString("hr.planning.description"));
        final IModel<String> model = new PropertyModel<String>(entry, "description");
        final MaxLengthTextArea description = new MaxLengthTextArea(TextAreaPanel.WICKET_ID, model);
        if (entry.isDeleted() == true) {
          description.setEnabled(false);
        }
        fs.add(description);
        fs.add(new JiraIssuesPanel(fs.newChildId(), entry.getDescription()));
        fs.addJIRAField(model);
      }
View Full Code Here

    gridBuilder.newGridPanel();
    {
      // Description:
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("description"));
      final IModel<String> model = new PropertyModel<String>(data, "description");
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, model), true);
      fs.addJIRAField(model);
    }
  }
View Full Code Here

TOP

Related Classes of org.projectforge.web.wicket.components.MaxLengthTextArea

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.