Examples of DivPanel


Examples of org.projectforge.web.wicket.flowlayout.DivPanel

  private void addPhoneNumber(final String property, final String labelKey, final String labelDescriptionKey,
      final String favoriteProperty, final FieldType fieldType)
  {
    final FieldsetPanel fs = (FieldsetPanel)addressEditSupport.addPhoneNumber(property, labelKey, labelDescriptionKey, fieldType);
    final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv();
    checkBoxPanel
    .addCheckBoxButton(new PropertyModel<Boolean>(addressEditSupport.personalAddress, favoriteProperty), PHONE_NUMBER_FAVORITE_LABEL)
    .setTooltip(getString("address.tooltip.phonelist"));
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    gridBuilder = new GridBuilder(body, "flowform", true);
    final String name = address.getFullNameWithTitleAndForm();

    gridBuilder.newSplitPanel(GridSize.COL50);
    DivPanel section = gridBuilder.getPanel();
    section.add(new Heading1Panel(section.newChildId(), name));
    appendFieldset("organization", address.getOrganization());
    appendFieldset("address.division", address.getDivision());
    appendFieldset("address.positionText", address.getPositionText());
    appendEmailFieldset("email", address.getEmail());
    appendEmailFieldset("address.privateEmail", address.getPrivateEmail());
    appendFieldset("address.website", address.getWebsite());
    final String birthday = address.getBirthday() != null ? DateTimeFormatter.instance().getFormattedDate(address.getBirthday()) : null;
    appendFieldset("address.birthday", birthday);
    // addRow("publicKey", address.getPublicKey());
    // addRow("fingerprint", address.getFingerprint());

    boolean firstRow = addAddressRow("address.heading.postalAddress", name, address.getOrganization(), address.getPostalAddressText(),
        address.getPostalZipCode(), address.getPostalCity(), address.getPostalCountry(), address.getPostalState(), null, null, null, true);
    firstRow = addAddressRow("address.business", name, address.getOrganization(), address.getAddressText(), address.getZipCode(),
        address.getCity(), address.getCountry(), address.getState(), address.getBusinessPhone(), address.getMobilePhone(),
        address.getFax(), firstRow);
    firstRow = addAddressRow("address.private", name, null, address.getPrivateAddressText(), address.getPrivateZipCode(),
        address.getPrivateCity(), address.getPrivateCountry(), address.getPrivateState(), address.getPrivatePhone(),
        address.getPrivateMobilePhone(), null, firstRow);

    if (StringUtils.isNotBlank(address.getComment()) == true) {
      gridBuilder.newGridPanel();
      section = gridBuilder.getPanel();
      section.add(new Heading3Panel(section.newChildId(), getString("comment")));
      final ParTextPanel textPanel = new ParTextPanel(section.newChildId(), HtmlHelper.escapeHtml(address.getComment(), true));
      textPanel.getLabel().setEscapeModelStrings(false);
      section.add(textPanel);
    }
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

      return firstRow;
    }
    if (firstRow == true) {
      gridBuilder.newSplitPanel(GridSize.COL50);
    }
    final DivPanel section = gridBuilder.getPanel();
    if (firstRow == true) {
      section.add(new Heading1Panel(section.newChildId(), getString("address.addresses")));
    }
    section.add(new ParTextPanel(section.newChildId(), getString(type) + ":"));
    final StringBuffer buf = new StringBuffer();
    boolean first = true;
    if (organization != null) {
      section.add(new Heading3Panel(section.newChildId(), organization));
      first = appendRow(buf, first, name);
    } else {
      section.add(new Heading3Panel(section.newChildId(), name));
    }
    if (StringUtils.isNotBlank(addressText) == true) {
      first = appendRow(buf, first, addressText);
    }
    if (StringUtils.isNotBlank(zipCode) == true || StringUtils.isNotBlank(city) == true) {
      final StringBuffer buf2 = new StringBuffer();
      if (zipCode != null) {
        buf2.append(zipCode).append(" ");
      }
      if (city != null) {
        buf2.append(city);
      }
      first = appendRow(buf, first, buf2.toString());
    }
    if (StringUtils.isNotBlank(country) == true) {
      first = appendRow(buf, first, country);
    }
    if (StringUtils.isNotBlank(state) == true) {
      first = appendRow(buf, first, state);
    }
    if (StringUtils.isNotBlank(phone) == true) {
      first = appendRow(buf, first, getString("address.phone") + ": " + phone);
    }
    if (StringUtils.isNotBlank(fax) == true) {
      first = appendRow(buf, first, getString("address.phoneType.fax") + ": " + fax);
    }
    if (StringUtils.isNotBlank(mobile) == true) {
      first = appendRow(buf, first, getString("address.phoneType.mobile") + ": " + mobile);
    }
    final ParTextPanel text = new ParTextPanel(section.newChildId(), buf.toString());
    text.getLabel().setEscapeModelStrings(false);
    section.add(text);
    return false;
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

  @SuppressWarnings("serial")
  @Override
  protected void onOptionsPanelCreate(final FieldsetPanel optionsFieldsetPanel, final DivPanel optionsCheckBoxesPanel)
  {
    {
      final DivPanel radioGroupPanel = optionsFieldsetPanel.addNewRadioBoxButtonDiv();
      final RadioGroupPanel<TeamCalFilter.OwnerType> radioGroup = new RadioGroupPanel<TeamCalFilter.OwnerType>(
          radioGroupPanel.newChildId(), "ownerType", new PropertyModel<TeamCalFilter.OwnerType>(getSearchFilter(), "ownerType")) {
        /**
         * @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#wantOnSelectionChangedNotifications()
         */
        @Override
        protected boolean wantOnSelectionChangedNotifications()
        {
          return true;
        }

        /**
         * @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#onSelectionChanged(java.lang.Object)
         */
        @Override
        protected void onSelectionChanged(final Object newSelection)
        {
          parentPage.refresh();
        }

        /**
         * @see org.apache.wicket.Component#isVisible()
         */
        @Override
        public boolean isVisible()
        {
          return getSearchFilter().isDeleted() == false;
        }
      };
      radioGroupPanel.add(radioGroup);
      radioGroup.add(new Model<TeamCalFilter.OwnerType>(TeamCalFilter.OwnerType.ALL), getString("filter.all"));
      radioGroup.add(new Model<TeamCalFilter.OwnerType>(TeamCalFilter.OwnerType.OWN), getString("plugins.teamcal.own"));
      radioGroup.add(new Model<TeamCalFilter.OwnerType>(TeamCalFilter.OwnerType.OTHERS), getString("plugins.teamcal.others"));
      if (accessChecker.isLoggedInUserMemberOfAdminGroup() == true) {
        radioGroup.add(new Model<TeamCalFilter.OwnerType>(TeamCalFilter.OwnerType.ADMIN), getString("plugins.teamcal.adminAccess"));
      }
    }
    final DivPanel checkBoxesPanel = new DivPanel(optionsFieldsetPanel.newChildId(), DivType.BTN_GROUP) {
      @Override
      public boolean isVisible()
      {

        // Show check box panel only if user selects others calendar.
        return getSearchFilter().isDeleted() == false && (getSearchFilter().isAll() == true || getSearchFilter().isOthers() == true);
      }
    };
    optionsFieldsetPanel.add(checkBoxesPanel);
    checkBoxesPanel.add(createAutoRefreshCheckBoxButton(checkBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(),
        "fullAccess"), getString("plugins.teamcal.fullAccess")));
    checkBoxesPanel.add(createAutoRefreshCheckBoxButton(checkBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(),
        "readonlyAccess"), getString("plugins.teamcal.readonlyAccess")));
    checkBoxesPanel.add(createAutoRefreshCheckBoxButton(checkBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(),
        "minimalAccess"), getString("plugins.teamcal.minimalAccess")));
    optionsFieldsetPanel.add(checkBoxesPanel);
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    setShowCancelButton();
    setCloseButtonLabel(getString("yes"));
    final Form<Void> form = new Form<Void>(getFormId());
    init(form);
    gridBuilder.newGridPanel();
    final DivPanel panel = gridBuilder.getPanel();
    final DivTextPanel questionPanel = new DivTextPanel(panel.newChildId(), this.questionModel);
    this.questionComponent = questionPanel.getLabel4Ajax();
    panel.add(questionPanel);
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

          WebConstants.DOC_LINK_HANDBUCH_LUCENE, true), FieldSetIconPosition.TOP_RIGHT);
    }
    {
      gridBuilder.newSplitPanel(GridSize.COL50);
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("label.options")).suppressLabelForWarning();
      final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv();
      checkBoxPanel.add(new MyCheckBoxPanel(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "notOpened"),
          getString("task.status.notOpened")));
      checkBoxPanel.add(new MyCheckBoxPanel(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "opened"),
          getString("task.status.opened")));
      checkBoxPanel.add(new MyCheckBoxPanel(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "closed"),
          getString("task.status.closed")));
      checkBoxPanel.add(new MyCheckBoxPanel(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "deleted"),
          getString("deleted")));
    }

    actionButtons = new MyComponentsRepeater<Component>("actionButtons");
    add(actionButtons.getRepeatingView());
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

  @SuppressWarnings("serial")
  protected void init()
  {
    super.init();
    add(createFeedbackPanel());
    final DivPanel errorMessagePanel = new DivPanel("errorMessage");
    add(errorMessagePanel);
    errorMessagePanel.add(new TextPanel(errorMessagePanel.newChildId(), new Model<String>() {
      @Override
      public String getObject()
      {
        return parentPage.errorMessage;
      }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // Options
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("label.options")).suppressLabelForWarning();
      final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv();
      checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "relativeTimeValues"),
          getString("gantt.style.relativeTimeValues"));
      checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "showToday"), getString("gantt.style.showToday"));
      checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "showCompletion"), getString("gantt.style.showCompletion"));
      checkBoxPanel.add(new CheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSettings(), "showOnlyVisibles"),
          getString("gantt.settings.showOnlyVisibles")) {
        /**
         * @see org.projectforge.web.wicket.flowlayout.CheckBoxButton#wantOnSelectionChangedNotifications()
         */
        @Override
        protected boolean wantOnSelectionChangedNotifications()
        {
          // Submit form after toggling the check box.
          return true;
        }
      });
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // Time period
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("timePeriod")).suppressLabelForWarning();
      final DatePanel fromDatePanel = new DatePanel(fs.newChildId(), new PropertyModel<Date>(getSettings(), "fromDate"), DatePanelSettings
          .get().withSelectProperty("fromDate"));
      fs.add(fromDatePanel);
      fs.add(new DivTextPanel(fs.newChildId(), "-"));
      final DatePanel toDatePanel = new DatePanel(fs.newChildId(), new PropertyModel<Date>(getSettings(), "toDate"), DatePanelSettings
          .get().withSelectProperty("toDate"));
      fs.add(toDatePanel);
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("export"));
      final LabelValueChoiceRenderer<String> exportFormatChoiceRenderer = new LabelValueChoiceRenderer<String>();
      exportFormatChoiceRenderer.addValue(EXPORT_JPG, getString("gantt.export.jpg"));
      exportFormatChoiceRenderer.addValue(EXPORT_MS_PROJECT_MPX, getString("gantt.export.msproject.mpx"));
      exportFormatChoiceRenderer.addValue(EXPORT_MS_PROJECT_XML, getString("gantt.export.msproject.xml"));
      exportFormatChoiceRenderer.addValue(EXPORT_PDF, getString("gantt.export.pdf"));
      exportFormatChoiceRenderer.addValue(EXPORT_PNG, getString("gantt.export.png"));
      exportFormatChoiceRenderer.addValue(EXPORT_PROJECTFORGE, getString("gantt.export.projectforge"));
      exportFormatChoiceRenderer.addValue(EXPORT_SVG, getString("gantt.export.svg"));
      final DropDownChoice<String> exportFormatChoice = new DropDownChoice<String>(fs.getDropDownChoiceId(), new PropertyModel<String>(
          this, "exportFormat"), exportFormatChoiceRenderer.getValues(), exportFormatChoiceRenderer);
      exportFormatChoice.setNullValid(false);
      fs.add(exportFormatChoice);
      fs.add(new SingleButtonPanel(fs.newChildId(), new Button(SingleButtonPanel.WICKET_ID, new Model<String>("export")) {
        @Override
        public final void onSubmit()
        {
          parentPage.export(exportFormat);
        }
      }, getString("export"), SingleButtonPanel.NORMAL));
    }
    gridBuilder.newGridPanel();
    {
      final DivPanel panel = gridBuilder.getPanel();
      ganttChartEditTreeTablePanel = new GanttChartEditTreeTablePanel(panel.newChildId(), this, getData());
      panel.add(ganttChartEditTreeTablePanel);
      ganttChartEditTreeTablePanel.init();
      ganttChartEditTreeTablePanel.setOpenNodes(getSettings().getOpenNodes());
      gridBuilder.getPanel().add(imagePanel = new DivPanel(panel.newChildId()));
    }
    {
      // Redraw:
      redrawButton = new Button(SingleButtonPanel.WICKET_ID, new Model<String>("redraw")) {
        @Override
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    final DropDownChoice<Integer> monthChoice = new DropDownChoice<Integer>(optionsFieldsetPanel.getDropDownChoiceId(),
        new PropertyModel<Integer>(this, "month"), monthChoiceRenderer.getValues(), monthChoiceRenderer);
    monthChoice.setNullValid(false);
    optionsFieldsetPanel.add(monthChoice, true);

    final DivPanel radioGroupPanel = optionsFieldsetPanel.addNewRadioBoxButtonDiv();
    final RadioGroupPanel<String> radioGroup = new RadioGroupPanel<String>(radioGroupPanel.newChildId(), "listtype",
        new PropertyModel<String>(getSearchFilter(), "listType")) {
      /**
       * @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#wantOnSelectionChangedNotifications()
       */
      @Override
      protected boolean wantOnSelectionChangedNotifications()
      {
        return true;
      }

      /**
       * @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#onSelectionChanged(java.lang.Object)
       */
      @Override
      protected void onSelectionChanged(final Object newSelection)
      {
        parentPage.refresh();
      }
    };
    radioGroupPanel.add(radioGroup);
    radioGroup.add(new Model<String>("all"), getString("filter.all"));
    radioGroup.add(new Model<String>("unbezahlt"), getString("fibu.rechnung.filter.unbezahlt"));
    radioGroup.add(new Model<String>("ueberfaellig"), getString("fibu.rechnung.filter.ueberfaellig"));

    if (Configuration.getInstance().isCostConfigured() == true) {
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

   */
  @Override
  @SuppressWarnings("serial")
  protected Component createMessageComponent()
  {
    final DivPanel messagePanel = new DivPanel("message") {
      /**
       * @see org.apache.wicket.Component#isVisible()
       */
      @Override
      public boolean isVisible()
      {
        return StringUtils.isNotBlank(parentPage.result);
      }

      @Override
      public void onAfterRender()
      {
        super.onAfterRender();
        parentPage.result = null;
      }
    };
    messagePanel.add(new TextPanel(messagePanel.newChildId(), new Model<String>() {
      @Override
      public String getObject()
      {
        return parentPage.result;
      }
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.