Package org.projectforge.web.wicket.flowlayout

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


      {
        sheet.setOpen(!sheet.isOpen()); // Toggle open status.
      }
    };
    cont.add(toggleLink);
    toggleLink.add(new IconPanel("zoomInImage", IconType.ZOOM_IN) {
      @Override
      public boolean isVisible()
      {
        return !sheet.isOpen();
      }
    });
    toggleLink.add(new IconPanel("zoomOutImage", IconType.ZOOM_OUT) {
      @Override
      public boolean isVisible()
      {
        return sheet.isOpen();
      }
View Full Code Here


      @Override
      public void populateItem(final Item<ICellPopulator<PFUserDO>> item, final String componentId, final IModel<PFUserDO> rowModel)
      {
        final PFUserDO user = rowModel.getObject();
        if (user.isDeactivated() == false) {
          item.add(new IconPanel(componentId, IconType.ACCEPT));
        } else {
          item.add(new IconPanel(componentId, IconType.DENY));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
    columns.add(new CellItemListenerPropertyColumn<PFUserDO>(getString("name"), getSortable("lastname", sortable), "lastname",
View Full Code Here

      } else if (element.isModified() == true) {
        iconType = IconType.MODIFIED;
      } else {
        iconType = IconType.DOCUMENT;
      }
      firstCell.add(new IconPanel("icon", iconType));

      final RepeatingView cellRepeater = new RepeatingView("cellRepeater");
      rowContainer.add(cellRepeater);

      addColumns(cellRepeater, element, style);
View Full Code Here

    if (isFilterVisible() == true) {
      {
        // Fieldset search filter
        final FieldsetPanel fs = gridBuilder.newFieldset(getString("searchFilter"));
        if (parentPage.getBaseDao().isHistorizable() == true) {
          IconPanel icon = new IconPanel(fs.newIconChildId(), IconType.PLUS_SIGN, getString("filter.extendedSearch"))
          .setOnClick("javascript:showExtendedFilter();");
          icon.setMarkupId("showExtendedFilter");
          fs.add(icon, FieldSetIconPosition.BOTTOM_LEFT);
          icon = new IconPanel(fs.newIconChildId(), IconType.MINUS_SIGN).setOnClick("javascript:hideExtendedFilter();");
          icon.setMarkupId("hideExtendedFilter");
          fs.add(icon, FieldSetIconPosition.BOTTOM_LEFT);
        }
        final TextField< ? > searchTextField = createSearchTextField();
        fs.add(searchTextField);
        fs.setLabelFor(searchTextField);
View Full Code Here

      {
        return getBusinessAssessment() != null;
      }
    };
    fs.setDescriptionSuffix(repeater);
    IconPanel icon = new IconPanel(repeater.newChildId(), IconType.PLUS_SIGN).setOnClick("javascript:showBusinessAssessment();");
    icon.setMarkupId("showBusinessAssessment").setOutputMarkupId(true);
    repeater.add(icon);
    icon = new IconPanel(repeater.newChildId(), IconType.MINUS_SIGN).setOnClick("javascript:hideBusinessAssessment();").appendAttribute(
        "style", "display: none;");
    icon.setMarkupId("hideBusinessAssessment").setOutputMarkupId(true);
    repeater.add(icon);

    gridBuilder.newGridPanel();
    final DivPanel businessAssessmentPanel = gridBuilder.getPanel();
    businessAssessmentPanel.setMarkupId("businessAssessment");
View Full Code Here

        setResponsePage(skillTreePage);
      };
    };
    selectButton.setDefaultFormProcessing(false);
    divContainer.add(selectButton);
    selectButton.add(new IconPanel("selectHelp", IconType.TASK, getString(I18N_KEY_SELECT_SKILL_TOOLTIP)));
    final SubmitLink unselectButton = new SubmitLink("unselect") {
      @Override
      public void onSubmit()
      {
        caller.unselect(selectProperty);
      }

      @Override
      public boolean isVisible()
      {
        return isRequired() == false && getModelObject() != null;
      }
    };
    unselectButton.setDefaultFormProcessing(false);
    divContainer.add(unselectButton);
    unselectButton.add(new IconPanel("unselectHelp", IconType.REMOVE_SIGN, getString(I18N_KEY_UNSELECT_SKILL_TOOLTIP)).setColor(CSSColor.RED));

    return this;
  }
View Full Code Here

  public ContentMenuEntryPanel(final String id, final AbstractLink link, final IconType iconType)
  {
    this(id);
    this.link = link;
    labelComponent = new IconPanel(LABEL_ID, iconType);
  }
View Full Code Here

  }

  public ContentMenuEntryPanel(final String id, final IconType iconType)
  {
    this(id);
    labelComponent = new IconPanel(LABEL_ID, iconType);
  }
View Full Code Here

      @Override
      public void populateItem(final Item<ICellPopulator<Kost2ArtDO>> item, final String componentId, final IModel<Kost2ArtDO> rowModel)
      {
        final Kost2ArtDO kost2Art = rowModel.getObject();
        if (kost2Art.isFakturiert() == true) {
          item.add(new IconPanel(componentId, IconType.ACCEPT));
        } else {
          item.add(createInvisibleDummyComponent(componentId));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
    columns.add(new CellItemListenerPropertyColumn<Kost2ArtDO>(new Model<String>(getString("fibu.kost2art.workFraction")), getSortable(
        "workFraction", sortable), "workFraction", cellItemListener));
    columns.add(new CellItemListenerPropertyColumn<Kost2ArtDO>(new Model<String>(getString("fibu.kost2art.projektStandard")), getSortable(
        "projektStandard", sortable), "projektStandard", cellItemListener) {
      @Override
      public void populateItem(final Item<ICellPopulator<Kost2ArtDO>> item, final String componentId, final IModel<Kost2ArtDO> rowModel)
      {
        final Kost2ArtDO kost2Art = rowModel.getObject();
        if (kost2Art.isProjektStandard() == true) {
          item.add(new IconPanel(componentId, IconType.ACCEPT));
        } else {
          item.add(createInvisibleDummyComponent(componentId));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
      }
View Full Code Here

          // Order
          posGridBuilder.newSubSplitPanel(gridSize); // COL25
          final FieldsetPanel fieldset = posGridBuilder.newFieldset(getString("fibu.auftrag")).setLabelSide(false);
          fieldset.add(new InputPanel(fieldset.newChildId(), new AuftragsPositionFormComponent(InputPanel.WICKET_ID,
              new PropertyModel<AuftragsPositionDO>(position, "auftragsPosition"), false)));
          fieldset.add(new IconPanel(fieldset.newIconChildId(), IconType.GOTO, getString("show")) {
            /**
             * @see org.apache.wicket.markup.html.link.Link#onClick()
             */
            @Override
            public void onClick()
View Full Code Here

TOP

Related Classes of org.projectforge.web.wicket.flowlayout.IconPanel

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.