Examples of DivPanel


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

        "style", "display: none;");
    icon.setMarkupId("hideBusinessAssessment").setOutputMarkupId(true);
    repeater.add(icon);

    gridBuilder.newGridPanel();
    final DivPanel businessAssessmentPanel = gridBuilder.getPanel();
    businessAssessmentPanel.setMarkupId("businessAssessment");
    businessAssessmentPanel.add(AttributeModifier.append("style", "display: none;"));
    final FieldsetPanel fieldset = new FieldsetPanel(businessAssessmentPanel, "").suppressLabelForWarning();
    final Label label = new Label(DivTextPanel.WICKET_ID, new Model<String>() {
      /**
       * @see org.apache.wicket.model.Model#getObject()
       */
 
View Full Code Here

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

    // add date panel
    initDatePanel();
    {
      // ALL DAY CHECKBOX
      final FieldsetPanel fieldSet = gridBuilder.newFieldset("").suppressLabelForWarning();
      final DivPanel divPanel = fieldSet.addNewCheckBoxButtonDiv();
      final CheckBoxButton checkBox = new CheckBoxButton(divPanel.newChildId(), new PropertyModel<Boolean>(data, "allDay"),
          getString("plugins.teamcal.event.allDay"));
      checkBox.getCheckBox().add(new AjaxFormComponentUpdatingBehavior("onChange") {
        @Override
        protected void onUpdate(final AjaxRequestTarget target)
        {
          if (data.isAllDay() == false) {
            setDateDropChoiceVisible(true);
          } else {
            setDateDropChoiceVisible(false);
          }
          target.add(startDateField.getFieldset(), endDateField.getFieldset());
        }
      });
      setDateDropChoiceVisible(data.isAllDay() == false);
      divPanel.add(checkBox);
      fieldSet.add(divPanel);
      if (access == false)
        fieldSet.setEnabled(false);

      // ///////////////////////////////
View Full Code Here

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

    firstHourDropDownChoice.setNullValid(false);
    firstHourDropDownChoice.setRequired(true);
    WicketUtils.addTooltip(firstHourDropDownChoice, getString("calendar.option.firstHour.tooltip"));
    fieldset.add(firstHourDropDownChoice);

    final DivPanel checkBoxPanel = fieldset.addNewCheckBoxButtonDiv();

    calendarPageSupport.addOptions(checkBoxPanel, true, filter);
    checkBoxPanel.add(new CheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(filter, "slot30"),
        getString("calendar.option.slot30"), true).setTooltip(getString("calendar.option.slot30.tooltip")));

    buttonGroupPanel = new ButtonGroupPanel(fieldset.newChildId());
    fieldset.add(buttonGroupPanel);
    {
View Full Code Here

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

  }

  private void redrawOptionControls()
  {
    optionsFieldset.removeAllFields();
    final DivPanel checkBoxPanel = optionsFieldset.addNewCheckBoxButtonDiv();
    calendarPageSupport.addOptions(checkBoxPanel, false, filter);
  }
View Full Code Here

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

   */
  public GridBuilder(final MarkupContainer parent, final String id, final boolean fluid)
  {
    super();
    this.parent = parent;
    mainContainer = new DivPanel(id, fluid == true ? GridType.CONTAINER_FLUID : GridType.CONTAINER);
    parent.add(mainContainer);
  }
View Full Code Here

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

    } else {
      if (firstPanelOfRow == false && gridPanel[level] != null) {
        gridPanel[level].addCssClasses(GridType.HAS_SIBLINGS);
      }
    }
    final DivPanel divPanel = new DivPanel(rowPanel[level].newChildId(), size, gridTypes);
    if (firstPanelOfRow == false) {
      divPanel.addCssClasses(GridType.NOT_FIRST);
    } else {
      divPanel.addCssClasses(GridType.FIRST);
    }
    return addGridPanel(level, divPanel);
  }
View Full Code Here

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

  }

  private GridBuilder newRowPanel(final int level, final GridType... gridTypes)
  {
    validateRowPanelLevel(level);
    final DivPanel rowPanel = new DivPanel(newRowPanelId(level), GridType.ROW);
    rowPanel.addCssClasses(gridTypes);
    return addRowPanel(level, rowPanel);
  }
View Full Code Here

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

    if (costConfigured == true) {
      addCostEditModalDialog();
    }
    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()
        {
          final T position = newPositionInstance();
          data.addPosition(position);
          if (position.getNumber() > 1) {
            final T predecessor = data.getPosition(position.getNumber() - 2);
            if (predecessor != null) {
              position.setVat(predecessor.getVat()); // Preset the vat from the predecessor position.
            }
          }
          refresh();
        }
      };
      final SingleButtonPanel addPositionButtonPanel = new SingleButtonPanel(panel.newChildId(), addPositionButton, getString("add"));
      addPositionButtonPanel.setTooltip(getString("fibu.rechnung.tooltip.addPosition"));
      panel.add(addPositionButtonPanel);
    }
  }
View Full Code Here

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

        {
          // Cost assignments
          posGridBuilder.newSplitPanel(GridSize.COL50, true);
          {
            posGridBuilder.newSubSplitPanel(GridSize.COL50);
            DivPanel panel = posGridBuilder.getPanel();
            final RechnungCostTablePanel costTable = new RechnungCostTablePanel(panel.newChildId(), position) {
              /**
               * @see org.projectforge.web.fibu.RechnungCostTablePanel#onRenderCostRow(org.projectforge.fibu.AbstractRechnungsPositionDO,
               *      org.apache.wicket.Component, org.apache.wicket.Component)
               */
              @Override
              protected void onRenderCostRow(final AbstractRechnungsPositionDO position, final KostZuweisungDO costAssignment,
                  final Component cost1, final Component cost2)
              {
                AbstractRechnungEditForm.this.onRenderCostRow(position, costAssignment, cost1, cost2);
              }
            };
            panel.add(costTable);
            ajaxUpdatePositionComponents.add(costTable.refresh().getTable());

            posGridBuilder.newSubSplitPanel(GridSize.COL50);
            panel = posGridBuilder.getPanel();
            final BigDecimal fehlbetrag = position.getKostZuweisungNetFehlbetrag();
            if (hasInsertAccess == true) {
              ButtonType buttonType;
              if (NumberHelper.isNotZero(fehlbetrag) == true) {
                buttonType = ButtonType.RED;
              } else {
                buttonType = ButtonType.LIGHT;
              }
              final AjaxButton editCostButton = new AjaxButton(ButtonPanel.BUTTON_ID, this) {
                @Override
                protected void onSubmit(final AjaxRequestTarget target, final Form< ? > form)
                {
                  costEditModalDialog.open(target);
                  // Redraw the content:
                  costEditModalDialog.redraw(position, costTable);
                  // The content was changed:
                  costEditModalDialog.addContent(target);
                }

                @Override
                protected void onError(final AjaxRequestTarget target, final Form< ? > form)
                {
                  target.add(AbstractRechnungEditForm.this.feedbackPanel);
                }
              };
              editCostButton.setDefaultFormProcessing(false);
              panel.add(new ButtonPanel(panel.newChildId(), getString("edit"), editCostButton, buttonType));
            } else {
              panel.add(new TextPanel(panel.newChildId(), " "));
            }
            panel.add(new TextPanel(panel.newChildId(), new Model<String>() {
              @Override
              public String getObject()
              {
                final BigDecimal fehlbetrag = position.getKostZuweisungNetFehlbetrag();
                if (NumberHelper.isNotZero(fehlbetrag) == true) {
View Full Code Here

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

    }
    {
      addImportFilterRadio(gridBuilder);
    }
    gridBuilder.newGridPanel();
    final DivPanel panel = gridBuilder.getPanel();
    storagePanel = new TeamCalImportStoragePanel(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.