Examples of DivPanel


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

        };
        item.add(amount);
        item.add(new MaxLengthTextField("comment", new PropertyModel<String>(entry, "comment")));
        item.add(new CheckBox("reached", new PropertyModel<Boolean>(entry, "reached")));
        if (UserRights.getAccessChecker().hasRight(user, RechnungDao.USER_RIGHT_ID, UserRightValue.READWRITE) == true) {
          final DivPanel checkBoxDiv = new DivPanel("vollstaendigFakturiert", DivType.BTN_GROUP);
          item.add(checkBoxDiv);
          checkBoxDiv.add(new CheckBoxButton(checkBoxDiv.newChildId(), new PropertyModel<Boolean>(entry, "vollstaendigFakturiert"),
              getString("fibu.auftrag.vollstaendigFakturiert")));
        } else {
          item.add(WicketUtils.getInvisibleComponent("vollstaendigFakturiert"));
        }
      }
View Full Code Here

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

  @SuppressWarnings("serial")
  public static void onOptionsPanelCreate(final AbstractListPage< ? , ? , ? > parentPage, final FieldsetPanel optionsFieldsetPanel,
      final AddressFilter searchFilter)
  {
    {
      final DivPanel radioGroupPanel = optionsFieldsetPanel.addNewRadioBoxButtonDiv();
      final RadioGroupPanel<String> radioGroup = new RadioGroupPanel<String>(radioGroupPanel.newChildId(), "listtype",
          new PropertyModel<String>(searchFilter, "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>(AddressFilter.FILTER_FILTER), parentPage.getString("filter"));
      radioGroup.add(new Model<String>(AddressFilter.FILTER_NEWEST), parentPage.getString("filter.newest"));
      radioGroup.add(new Model<String>(AddressFilter.FILTER_MY_FAVORITES), parentPage.getString("address.filter.myFavorites"));
      radioGroup.add(new Model<String>(AddressFilter.FILTER_DOUBLETS), parentPage.getString("address.filter.doublets"));
    }
View Full Code Here

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

        {
          return searchFilter.isFilter();
        }
      });
      final FieldsetPanel fieldset = gridBuilder.newFieldset(parentPage.getString("address.contactStatus")).suppressLabelForWarning();
      final DivPanel checkBoxPanel = fieldset.addNewCheckBoxButtonDiv();
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "active"),
          parentPage.getString("address.contactStatus.active")));
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter,
          "nonActive"), parentPage.getString("address.contactStatus.nonActive")));
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter,
          "uninteresting"), parentPage.getString("address.contactStatus.uninteresting")));
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter,
          "personaIngrata"), parentPage.getString("address.contactStatus.personaIngrata")));
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(),
          new PropertyModel<Boolean>(searchFilter, "departed"), parentPage.getString("address.contactStatus.departed")));
    }
    {
      gridBuilder.newSplitPanel(GridSize.COL50);
      final FieldsetPanel fieldset = gridBuilder.newFieldset(parentPage.getString("address.addressStatus")).suppressLabelForWarning();
      final DivPanel checkBoxPanel = fieldset.addNewCheckBoxButtonDiv();
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(),
          new PropertyModel<Boolean>(searchFilter, "uptodate"), parentPage.getString("address.addressStatus.uptodate")));
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(),
          new PropertyModel<Boolean>(searchFilter, "outdated"), parentPage.getString("address.addressStatus.outdated")));
      checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "leaved"),
          parentPage.getString("address.addressStatus.leaved")));
    }

  }
View Full Code Here

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

      public boolean isVisible()
      {
        return storagePanel.isVisible();
      }
    };
    final DivPanel radioGroupPanel = fs.addNewRadioBoxButtonDiv();
    final RadioGroupPanel<String> radioGroup = new RadioGroupPanel<String>(radioGroupPanel.newChildId(), "filterType",
        new PropertyModel<String>(importFilter, "listType")) {
      /**
       * @see org.projectforge.web.wicket.flowlayout.RadioGroupPanel#wantOnSelectionChangedNotifications()
       */
      @Override
      protected boolean wantOnSelectionChangedNotifications()
      {
        return true;
      }
    };
    radioGroupPanel.add(radioGroup);
    fs.setLabelFor(radioGroup.getRadioGroup());
    radioGroup.add(new Model<String>("all"), getString("filter.all"));
    radioGroup.add(new Model<String>("modified"), getString("modified"));
    radioGroup.add(new Model<String>("faulty"), getString("filter.faulty"));
    return this;
View Full Code Here

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

          public String getObject()
          {
            return getModifiedSearchExpressionLabel(AbstractListForm.this, searchFilter.getSearchString());
          }
        };
        final DivPanel div = new DivPanel(fs.newChildId()) {
          /**
           * @see org.projectforge.web.wicket.flowlayout.DivPanel#isVisible()
           */
          @Override
          public boolean isVisible()
          {
            return StringUtils.isNotBlank(searchFilter.getSearchString()) == true;
          }
        };
        div.add(AttributeModifier.append("class", "modifiedSearchExpressionLabel"));
        fs.add(div);
        modifiedSearchExpressionLabel = new Label(div.newChildId(), modifiedSearchExpressionModel);
        modifiedSearchExpressionLabel.setEscapeModelStrings(false);
        div.add(modifiedSearchExpressionLabel);

        fs.addHelpIcon(getString("tooltip.lucene.link"), FieldSetIconPosition.TOP_RIGHT).setOnClickLocation(getRequestCycle(),
            WebConstants.DOC_LINK_HANDBUCH_LUCENE, true);
        final String helpKeyboardImageTooltip = getHelpKeyboardImageTooltip();
        if (helpKeyboardImageTooltip != null) {
          fs.addKeyboardHelpIcon(helpKeyboardImageTooltip);
        }
      }
    }
    if (parentPage.getBaseDao().isHistorizable() == true && isFilterVisible() == true) {
      addExtendedFilter();
    }
    if (showOptionsPanel() == true) {
      gridBuilder.newSplitPanel(GridSize.COL66);
      optionsFieldsetPanel = gridBuilder.newFieldset(getOptionsLabel()).suppressLabelForWarning();
      final DivPanel optionsCheckBoxesPanel = optionsFieldsetPanel.addNewCheckBoxButtonDiv();
      onOptionsPanelCreate(optionsFieldsetPanel, optionsCheckBoxesPanel);
      if (showHistorySearchAndDeleteCheckbox() == true) {
        optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(),
            new PropertyModel<Boolean>(getSearchFilter(), "deleted"), getString(I18N_ONLY_DELETED), getString(I18N_ONLY_DELETED_TOOLTIP))
            .setWarning());
        optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(
            getSearchFilter(), "searchHistory"), getString("search.searchHistory"), getString("search.searchHistory.additional.tooltip")));
      }
      if (optionsCheckBoxesPanel.hasChilds() == true) {
        optionsFieldsetPanel.add(optionsCheckBoxesPanel);
      }
      gridBuilder.newSplitPanel(GridSize.COL33);
    } else {
      gridBuilder.newGridPanel();
View Full Code Here

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

   */
  @SuppressWarnings("serial")
  @Override
  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

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

      actionButtons.add(callButtonPanel);
      setDefaultButton(callButton);
    }
    final String url = ConfigXml.getInstance().getTelephoneSystemOperatorPanelUrl();
    if (url != null) {
      final DivPanel section = gridBuilder.newGridPanel().getPanel();
      final TextPanel showOperatorPanel = new TextPanel(section.newChildId(), url);
      showOperatorPanel.getLabel().setEscapeModelStrings(false);
      section.add(showOperatorPanel);
    }
  }
View Full Code Here

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

      };
      schedulesPanel.setClosed();
      schedulesPanel.setHeading(getPaymentScheduleHeading(data.getPaymentSchedules(), schedulesPanel));
      gridBuilder.getPanel().add(schedulesPanel);
      final GridBuilder innerGridBuilder = schedulesPanel.createGridBuilder();
      final DivPanel dp = innerGridBuilder.getPanel();
      dp.add(paymentSchedulePanel = new PaymentSchedulePanel(dp.newChildId(), new CompoundPropertyModel<AuftragDO>(data), getUser()));
      paymentSchedulePanel.setVisible(data.getPaymentSchedules() != null && data.getPaymentSchedules().isEmpty() == false);
      final Button addPositionButton = new Button(SingleButtonPanel.WICKET_ID) {
        @Override
        public final void onSubmit()
        {
          data.addPaymentSchedule(new PaymentScheduleDO());
          paymentSchedulePanel.rebuildEntries();
          paymentSchedulePanel.setVisible(true);
        }
      };
      final SingleButtonPanel addPositionButtonPanel = new SingleButtonPanel(dp.newChildId(), addPositionButton, getString("add"));
      addPositionButtonPanel.setTooltip(getString("fibu.auftrag.tooltip.addPosition"));
      dp.add(addPositionButtonPanel);
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // comment
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("comment"));
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "bemerkung")), true);
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // status comment
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("fibu.auftrag.statusBeschreibung"));
      fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, new PropertyModel<String>(data, "statusBeschreibung")), true);
    }
    // positions
    gridBuilder.newGridPanel();
    positionsRepeater = gridBuilder.newRepeatingView();
    refresh();
    if (getBaseDao().hasInsertAccess(getUser()) == true) {
      final DivPanel panel = gridBuilder.newGridPanel().getPanel();
      final Button addPositionButton = new Button(SingleButtonPanel.WICKET_ID) {
        @Override
        public final void onSubmit()
        {
          getData().addPosition(new AuftragsPositionDO());
          refresh();
        }
      };
      final SingleButtonPanel addPositionButtonPanel = new SingleButtonPanel(panel.newChildId(), addPositionButton, getString("add"));
      addPositionButtonPanel.setTooltip(getString("fibu.auftrag.tooltip.addPosition"));
      panel.add(addPositionButtonPanel);
    }
    {
      // email
      gridBuilder.newFieldset(getString("email")).addCheckBox(new PropertyModel<Boolean>(this, "sendEMailNotification"), null)
      .setTooltip(getString("label.sendEMailNotification"));
View Full Code Here

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

          fs.add(new DivTextPanel(fs.newChildId(), CurrencyFormatter.format(RechnungDao.getNettoSumme(invoicePositionsByOrderPositionId))));
        } else {
          fs.add(AbstractUnsecureBasePage.createInvisibleDummyComponent(fs.newChildId()));
        }
        if (UserRights.getAccessChecker().hasRight(getUser(), RechnungDao.USER_RIGHT_ID, UserRightValue.READWRITE) == true) {
          final DivPanel checkBoxDiv = fs.addNewCheckBoxButtonDiv();
          checkBoxDiv.add(new CheckBoxButton(checkBoxDiv.newChildId(), new PropertyModel<Boolean>(position, "vollstaendigFakturiert"),
              getString("fibu.auftrag.vollstaendigFakturiert")));
        }
      }
      posGridBuilder.newSplitPanel(GridSize.COL33);
      {
View Full Code Here

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

          return storagePanel.businessAssessment != null;
        };
      };
    }
    gridBuilder.newGridPanel();
    final DivPanel panel = gridBuilder.getPanel();
    storagePanel = new DatevImportStoragePanel(panel.newChildId(), parentPage, importFilter);
    panel.add(storagePanel);
  }
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.