Package org.projectforge.web.wicket.flowlayout

Examples of org.projectforge.web.wicket.flowlayout.FieldsetPanel.newChildId()


    super.init();
    gridBuilder.newGridPanel();
    {
      // Parameter name
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("administration.configuration.parameter")).suppressLabelForWarning();
      fs.add(new DivTextPanel(fs.newChildId(), getString(data.getI18nKey())));
    }
    FormComponent< ? > valueField = null;
    {
      // Parameter value
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("administration.configuration.value"));
View Full Code Here


        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) {
        final TimeZonePanel timeZonePanel = new TimeZonePanel(fs.newChildId(), new PropertyModel<TimeZone>(data, "timeZone"));
        fs.add(timeZonePanel);
        valueField = timeZonePanel.getTextField();
      } else if (data.getConfigurationType() == ConfigurationType.TASK) {
        if (data.getTaskId() != null) {
          this.task = taskDao.getById(data.getTaskId());
View Full Code Here

      }
    }
    {
      // Description
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("description")).suppressLabelForWarning();
      fs.add(new DivTextPanel(fs.newChildId(), getString("administration.configuration.param." + data.getParameter() + ".description")));
    }
  }

  public TaskDO getTask()
  {
View Full Code Here

    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // User
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("user"));
      Hibernate.initialize(data.getUser());
      final UserSelectPanel userSelectPanel = new UserSelectPanel(fs.newChildId(), new PropertyModel<PFUserDO>(data, "user"), parentPage,
          "userId");
      fs.add(dependentFormComponents[0] = userSelectPanel);
      userSelectPanel.setRequired(true);
      userSelectPanel.init();
    }
View Full Code Here

    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // Start Date
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("timesheet.startTime"));
      final DatePanel weekDatePanel = new DatePanel(fs.newChildId(), new PropertyModel<Date>(data, "week"), DateTimePanelSettings.get()
          .withSelectStartStopTime(false).withTargetType(java.sql.Date.class));
      weekDatePanel.setRequired(true);
      weekDatePanel.add(new AbstractValidator<Date>() {
        /**
         * @see org.apache.wicket.validation.validator.AbstractValidator#onValidate(org.apache.wicket.validation.IValidatable)
View Full Code Here

      // {
      // // Doesn't work with DatePicker (because DatePicker updates the value after onblur event.
      // }
      // });
      fs.add(dependentFormComponents[1] = weekDatePanel);
      fs.add(new SingleButtonPanel(fs.newChildId(), new Button(SingleButtonPanel.WICKET_ID, new Model<String>("calendarWeek")) {
        @Override
        public final void onSubmit()
        {
        }
      }.setDefaultFormProcessing(false), new Model<String>() {
View Full Code Here

            return getString("calendar.weekOfYearShortLabel");
          }
        }

      }, SingleButtonPanel.NORMAL).setTooltip(getString("recalculate")));
      final DivPanel checkBoxDiv = new DivPanel(fs.newChildId(), DivType.BTN_GROUP) {
        /**
         * @see org.apache.wicket.Component#isVisible()
         */
        @Override
        public boolean isVisible()
View Full Code Here

        {
          return true;
        }
      });
      if (isNew() == true) {
        fs.add(new SingleButtonPanel(fs.newChildId(), new Button(SingleButtonPanel.WICKET_ID, new Model<String>("predecessor")) {
          @Override
          public final void onSubmit()
          {
            if (getPredecessor() != null && predecessor.getEntries() != null) {
              final Iterator<HRPlanningEntryDO> it = getData().getEntries().iterator();
View Full Code Here

        final DropDownChoice<HRPlanningEntryStatus> statusChoice = new DropDownChoice<HRPlanningEntryStatus>(fs.getDropDownChoiceId(),
            new PropertyModel<HRPlanningEntryStatus>(entry, "status"), statusChoiceRenderer.getValues(), statusChoiceRenderer);
        statusChoice.setNullValid(true).setRequired(false).setEnabled(!entry.isDeleted());
        fs.add(statusChoice);
        dependentEntryFormComponents.add(statusChoice);
        final NewProjektSelectPanel projektSelectPanel = new NewProjektSelectPanel(fs.newChildId(),
            new PropertyModel<ProjektDO>(entry, "projekt"), parentPage, "projektId:" + idx);
        projektSelectPanel.setRequired(false).setEnabled(!entry.isDeleted());
        fs.add(projektSelectPanel);
        projektSelectPanel.init();
        dependentEntryFormComponents.add(projektSelectPanel);
View Full Code Here

          if (entry.getId() != null) {
            button.add(AttributeModifier.prepend("onclick", "if (showDeleteQuestionDialog() == false) return false;"));
          }
        }
        button.setDefaultFormProcessing(false);
        fs.add(new SingleButtonPanel(fs.newChildId(), button, buttonLabel, classNames) {

        });
      }
      posGridBuilder.newSplitPanel(GridSize.COL50);
      {
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.