Package org.projectforge.web.wicket

Examples of org.projectforge.web.wicket.ListSelectActionPanel


      public void populateItem(final Item<ICellPopulator<AddressDO>> item, final String componentId, final IModel<AddressDO> rowModel)
      {
        final AddressDO address = rowModel.getObject();
        final RepeatingView view = new RepeatingView(componentId);
        item.add(view);
        view.add(new ListSelectActionPanel(view.newChildId(), rowModel, AddressEditPage.class, address.getId(), returnToPage,
            DateTimeFormatter.instance().getFormattedDate(address.getLastUpdate())));
        view.add(new IconLinkPanel(view.newChildId(), IconType.PRINT, new ResourceModel("printView"), new Link<Void>(IconLinkPanel.LINK_ID) {

          @Override
          public void onClick()
View Full Code Here


       */
      @Override
      public void populateItem(final Item<ICellPopulator<AddressCampaignDO>> item, final String componentId, final IModel<AddressCampaignDO> rowModel)
      {
        final AddressCampaignDO campaign = rowModel.getObject();
        item.add(new ListSelectActionPanel(componentId, rowModel, AddressCampaignEditPage.class, campaign.getId(), returnToPage,
            DateTimeFormatter.instance().getFormattedDateTime(campaign.getCreated())));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
View Full Code Here

       */
      @Override
      public void populateItem(final Item<ICellPopulator<MemoDO>> item, final String componentId, final IModel<MemoDO> rowModel)
      {
        final MemoDO memo = rowModel.getObject();
        item.add(new ListSelectActionPanel(componentId, rowModel, MemoEditPage.class, memo.getId(), returnToPage, DateTimeFormatter
            .instance().getFormattedDateTime(memo.getCreated())));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
View Full Code Here

        final TaskDO task = access.getTask();
        final StringBuffer buf = new StringBuffer();
        taskFormatter.appendFormattedTask(getRequestCycle(), buf, task, true, false);
        final Label formattedTaskLabel = new Label(ListSelectActionPanel.LABEL_ID, buf.toString());
        formattedTaskLabel.setEscapeModelStrings(false);
        item.add(new ListSelectActionPanel(componentId, rowModel, AccessEditPage.class, access.getId(), returnToPage, formattedTaskLabel));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
    columns.add(new CellItemListenerPropertyColumn<GroupTaskAccessDO>(new Model<String>(getString("group")), getSortable("group.name",
View Full Code Here

      @Override
      public void populateItem(final Item<ICellPopulator<HRPlanningEntryDO>> item, final String componentId,
          final IModel<HRPlanningEntryDO> rowModel)
      {
        if (hasFullAccess() == true) {
          item.add(new ListSelectActionPanel(componentId, rowModel, HRPlanningEditPage.class, rowModel.getObject().getPlanning().getId(),
              HRPlanningListPage.this, getLabelString(rowModel)));
          addRowClick(item);
        } else {
          item.add(new Label(componentId, getLabelString(rowModel)));
        }
View Full Code Here

          params = new String[] { WebConstants.PARAMETER_USER_ID, userId != null ? String.valueOf(userId) : null,
              WebConstants.PARAMETER_DATE, weekMillis != null ? String.valueOf(weekMillis) : null};
        } else {
          params = null;
        }
        item.add(new ListSelectActionPanel(componentId, rowModel, HRPlanningEditPage.class, planningId, HRListPage.this,
            getLabelString(rowModel), params));
        cellItemListener.populateItem(item, componentId, rowModel);
        addRowClick(item);
      }
    }.withUserFormatter(userFormatter));
View Full Code Here

      {
        final RepeatingView view = new RepeatingView(componentId);
        cellItem.add(view);
        final TaskNode taskNode = rowModel.getObject();
        if (selectMode == false) {
          view.add(new ListSelectActionPanel(view.newChildId(), rowModel, TaskEditPage.class, taskNode.getId(), parentPage, ""));
        } else {
          view.add(new ListSelectActionPanel(view.newChildId(), rowModel, caller, selectProperty, taskNode.getId(), ""));
        }
        AbstractListPage.addRowClick(cellItem);
        final NodeModel<TaskNode> nodeModel = (NodeModel<TaskNode>) rowModel;
        final Component nodeComponent = getTree().newNodeComponent(view.newChildId(), nodeModel.getWrappedModel());
        nodeComponent.add(new NodeBorder(nodeModel.getBranches()));
View Full Code Here

      public void populateItem(final Item<ICellPopulator<GroupDO>> item, final String componentId, final IModel<GroupDO> rowModel)
      {
        final boolean updateAccess = groupDao.hasLoggedInUserAccess(null, null, OperationType.UPDATE, false);
        final GroupDO group = rowModel.getObject();
        if (isSelectMode() == true) {
          item.add(new ListSelectActionPanel(componentId, rowModel, caller, selectProperty, group.getId(), group.getName()));
          addRowClick(item);
        } else if (updateAccess == true) {
          item.add(new ListSelectActionPanel(componentId, rowModel, GroupEditPage.class, group.getId(), returnToPage, group.getName()));
          addRowClick(item);
        } else {
          item.add(new Label(componentId, group.getName()));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
View Full Code Here

      @Override
      public void populateItem(final Item<ICellPopulator<KundeDO>> item, final String componentId, final IModel<KundeDO> rowModel)
      {
        final KundeDO kunde = rowModel.getObject();
        if (isSelectMode() == false) {
          item.add(new ListSelectActionPanel(componentId, rowModel, CustomerEditPage.class, kunde.getId(), returnToPage, String
              .valueOf(kunde.getKost())));
        } else {
          item.add(new ListSelectActionPanel(componentId, rowModel, caller, selectProperty, kunde.getId(), String.valueOf(kunde.getKost())));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
        addRowClick(item);
      }
    });
View Full Code Here

            cellItemListener) {
          @Override
          public void populateItem(final Item<ICellPopulator<TimesheetDO>> item, final String componentId,
              final IModel<TimesheetDO> rowModel)
          {
            item.add(new ListSelectActionPanel(componentId, rowModel, TimesheetEditPage.class, rowModel.getObject().getId(), page,
                getLabelString(rowModel)));
            cellItemListener.populateItem(item, componentId, rowModel);
            addRowClick(item);
          }
        }.withUserFormatter(userFormatter));
View Full Code Here

TOP

Related Classes of org.projectforge.web.wicket.ListSelectActionPanel

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.