Package org.projectforge.plugins.teamcal.event

Examples of org.projectforge.plugins.teamcal.event.TeamEventEditPage


      final TeamEventDO event = new TeamEventDO();
      event.setAllDay(range.isAllDay());
      event.setStartDate(new Timestamp(DateHelper.getDateTimeAsMillis(range.getStart()))).setEndDate(
          new Timestamp(DateHelper.getDateTimeAsMillis(range.getEnd())));
      event.setCalendar(calendar);
      final TeamEventEditPage page = new TeamEventEditPage(new PageParameters(), event);
      page.setReturnToPage(new TeamCalCalendarPage(returnPage.getPageParameters()));
      caller.setResponsePage(page);
    }
  }
View Full Code Here


        return;
      }

      final PageParameters parameters = new PageParameters();
      parameters.add(AbstractEditPage.PARAMETER_KEY_ID, id.getDataBaseId());
      final TeamEventEditPage teamEventPage = new TeamEventEditPage(parameters);
      setResponsePage(teamEventPage);
      teamEventPage.setReturnToPage((WebPage) getPage());
      return;
    }
  }
View Full Code Here

      }
      // add end date
      if (newEndDate != null) {
        teamEventDO.setEndDate(new Timestamp(newEndTimeMillis));
      }
      final TeamEventEditPage teamEventEditPage = new TeamEventEditPage(new PageParameters(), teamEventDO);
      teamEventEditPage.setReturnToPage(getWebPage());
      setResponsePage(teamEventEditPage);
    } else if (CalendarDropMode.MOVE_SAVE.equals(dropMode) || CalendarDropMode.COPY_SAVE.equals(dropMode)) {
      // second mode: "quick save mode"
      if (CalendarDropMode.MOVE_SAVE.equals(dropMode)) {
        // we need update only in "move" mode, in "copy" mode it was saved a few lines above
View Full Code Here

          event.setStartDate(timesheet.getStartTime());
          event.setEndDate(timesheet.getStopTime());
          event.setLocation(timesheet.getLocation());
          event.setNote(timesheet.getDescription());
        }
        setResponsePage(new TeamEventEditPage(new PageParameters(), event).setReturnToPage(page.getReturnToPage()));
      };
    }.setDefaultFormProcessing(false), page.getString("plugins.teamcal.switchToTeamEventButton"));
    page.addContentMenuEntry(menu);
  }
View Full Code Here

        final TeamEventDO teamEvent = TeamEventUtils.createTeamEventDO(event);
        final TemplateEntry activeTemplateEntry = ((TeamCalCalendarFilter) filter).getActiveTemplateEntry();
        if (activeTemplateEntry != null && activeTemplateEntry.getDefaultCalendarId() != null) {
          teamEventDao.setCalendar(teamEvent, activeTemplateEntry.getDefaultCalendarId());
        }
        final TeamEventEditPage editPage = new TeamEventEditPage(new PageParameters(), teamEvent);
        setResponsePage(editPage);
      }
    }.setTooltip(getString("plugins.teamcal.dropIcsPanel.tooltip")));
  }
View Full Code Here

  {
    onChangeEvents(target, event, RecurrencyChangeType.ONLY_CURRENT);
  }

  private void onChangeEvents(final AjaxRequestTarget target, final TeamEvent event, final RecurrencyChangeType recurrencyChangeType) {
    final TeamEventEditPage teamEventEditPage = new TeamEventEditPage(new PageParameters(), event, newStartDate, newEndDate, recurrencyChangeType);
    teamEventEditPage.setReturnToPage(getWebPage());
    setResponsePage(teamEventEditPage);
  }
View Full Code Here

TOP

Related Classes of org.projectforge.plugins.teamcal.event.TeamEventEditPage

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.