Package org.projectforge.web.wicket

Examples of org.projectforge.web.wicket.ListSelectActionPanel


      @SuppressWarnings({ "unchecked", "rawtypes"})
      @Override
      public void populateItem(final Item item, final String componentId, final IModel rowModel)
      {
        final SkillDO skill = (SkillDO) rowModel.getObject();
        item.add(new ListSelectActionPanel(componentId, rowModel, SkillEditPage.class, skill.getId(), returnToPage, DateTimeFormatter
            .instance().getFormattedDateTime(skill.getCreated())));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    };
View Full Code Here


      {
        final EmployeeDO employee = rowModel.getObject();
        final PFUserDO user = employee != null ? employee.getUser() : null;
        final String lastname = user != null ? user.getLastname() : null;
        if (isSelectMode() == false) {
          item.add(new ListSelectActionPanel(componentId, rowModel, EmployeeEditPage.class, employee.getId(), returnToPage, lastname));
        } else {
          item.add(new ListSelectActionPanel(componentId, rowModel, caller, selectProperty, employee.getId(), lastname));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
        addRowClick(item);
      }
    });
View Full Code Here

      @SuppressWarnings({ "unchecked", "rawtypes"})
      @Override
      public void populateItem(final Item item, final String componentId, final IModel rowModel)
      {
        final ToDoDO toDo = (ToDoDO) rowModel.getObject();
        item.add(new ListSelectActionPanel(componentId, rowModel, ToDoEditPage.class, toDo.getId(), returnToPage, DateTimeFormatter
            .instance().getFormattedDateTime(toDo.getCreated())));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
View Full Code Here

      @SuppressWarnings({ "unchecked", "rawtypes"})
      @Override
      public void populateItem(final Item item, final String componentId, final IModel rowModel)
      {
        final TrainingDO trainingDo = (TrainingDO) rowModel.getObject();
        item.add(new ListSelectActionPanel(componentId, rowModel, TrainingEditPage.class, trainingDo.getId(), returnToPage,
            DateTimeFormatter.instance().getFormattedDateTime(trainingDo.getCreated())));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
View Full Code Here

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

      public void populateItem(final Item<ICellPopulator<EmployeeSalaryDO>> item, final String componentId,
          final IModel<EmployeeSalaryDO> rowModel)
      {
        final EmployeeSalaryDO employeeSalary = rowModel.getObject();
        if (isSelectMode() == false) {
          item.add(new ListSelectActionPanel(componentId, rowModel, EmployeeSalaryEditPage.class, employeeSalary.getId(), returnToPage,
              employeeSalary.getFormattedYearAndMonth()));
        } else {
          item.add(new ListSelectActionPanel(componentId, rowModel, caller, selectProperty, employeeSalary.getId(), employeeSalary
              .getFormattedYearAndMonth()));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
        addRowClick(item);
      }
View Full Code Here

      @Override
      public void populateItem(final Item<ICellPopulator<LiquidityEntryDO>> item, final String componentId,
          final IModel<LiquidityEntryDO> rowModel)
      {
        final LiquidityEntryDO liquidityEntry = rowModel.getObject();
        item.add(new ListSelectActionPanel(componentId, rowModel, LiquidityEntryEditPage.class, liquidityEntry.getId(), returnToPage,
            DateTimeFormatter.instance().getFormattedDate(liquidityEntry.getDateOfPayment())));
        addRowClick(item);
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
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.