Examples of MyCalendarEvent


Examples of de.forsthaus.backend.model.MyCalendarEvent

    ce.setTitle(txtb_title.getValue());
    ce.setContent(ppcnt.getValue());
    ce.setLocked(pplocked.isChecked());

    // prepare the backend Bean
    MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
    calEvt.setId(ce.getId());
    calEvt.setSecUser(ce.getUser());
    calEvt.setVersion(ce.getVersion());
    calEvt.setTitle(ce.getTitle());
    calEvt.setContent(ce.getContent());
    calEvt.setBeginDate(ce.getBeginDate());
    calEvt.setEndDate(ce.getEndDate());
    calEvt.setHeaderColor(ce.getHeaderColor());
    calEvt.setContentColor(ce.getContentColor());

    // Save the calendar event to database
    try {

      getCalendarEventService().saveOrUpdate(calEvt);
View Full Code Here

Examples of de.forsthaus.backend.model.MyCalendarEvent

      private void deleteBean() {
        // delete from modell
        MySimpleCalendarEvent ce = (MySimpleCalendarEvent) editEventWindow.getAttribute("ce");

        // prepare the backend Bean
        MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
        calEvt.setId(ce.getId());
        calEvt.setTitle(ce.getTitle());
        calEvt.setContent(ce.getContent());
        calEvt.setBeginDate(ce.getBeginDate());
        calEvt.setEndDate(ce.getEndDate());
        calEvt.setContentColor(ce.getContentColor());
        calEvt.setVersion(ce.getVersion());

        // delete from db
        try {
          getCalendarEventService().delete(calEvt);
          syncModel();
View Full Code Here

Examples of de.forsthaus.backend.model.MyCalendarEvent

    sce.setEndDate(evt.getEndDate());
    // update the model
    // m.update(sce); <-- if activated, later an error occurs

    // prepare the backend Bean
    MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
    calEvt.setId(sce.getId());
    calEvt.setSecUser(sce.getUser());
    calEvt.setVersion(sce.getVersion());
    calEvt.setTitle(sce.getTitle());
    calEvt.setContent(sce.getContent());
    calEvt.setBeginDate(sce.getBeginDate());
    calEvt.setEndDate(sce.getEndDate());
    calEvt.setHeaderColor(sce.getHeaderColor());
    calEvt.setContentColor(sce.getContentColor());
    // Save the calendar event to database
    try {
      getCalendarEventService().saveOrUpdate(calEvt);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of de.forsthaus.backend.model.MyCalendarEvent

    ppet.setSelectedIndex(0);

    final SecUser user = ((UserImpl) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getSecUser();

    // prepare the backend Bean
    MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
    calEvt.setSecUser(user);
    calEvt.setTitle(ce.getTitle());
    calEvt.setContent(ce.getContent());
    calEvt.setBeginDate(ce.getBeginDate());
    calEvt.setEndDate(ce.getEndDate());
    calEvt.setHeaderColor(colors[0]);
    calEvt.setContentColor(ce.getContentColor());

    // Save the calendar event to database
    try {
      getCalendarEventService().saveOrUpdate(calEvt);
      syncModel();
View Full Code Here

Examples of de.forsthaus.backend.model.MyCalendarEvent

@Repository
public class MyCalendarEventDAOImpl extends BasisDAO<MyCalendarEvent> implements MyCalendarEventDAO {

  @Override
  public MyCalendarEvent getNewCalendarEvent() {
    return new MyCalendarEvent();
  }
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.