Package org.projectforge.common

Examples of org.projectforge.common.RecurrenceFrequency


        String recurrence = null;
        if (eventDO.hasRecurrence() == true) {
          final Recur recur = eventDO.getRecurrenceObject();
          final TeamEventRecurrenceData recurrenceData = new TeamEventRecurrenceData(recur, PFUserContext.getTimeZone());
          final RecurrenceFrequency frequency = recurrenceData.getFrequency();
          if (frequency != null) {
            final String unitI18nKey = frequency.getUnitI18nKey();
            if (unitI18nKey != null) {
              recurrence = recurrenceData.getInterval() + " " + getString(unitI18nKey);
            }
          }
        }
View Full Code Here


      recurrenceIntervalFieldset.add(intervalNumberField);
      panel = new DivTextPanel(recurrenceIntervalFieldset.newChildId(), new Model<String>() {
        @Override
        public String getObject()
        {
          final RecurrenceFrequency interval = recurrenceData.getFrequency();
          final String unitI18nKey = getString(interval.getUnitI18nKey());
          if (unitI18nKey != null) {
            return "&nbsp;" + HtmlHelper.escapeHtml(unitI18nKey, false);
          }
          return "";
        }
View Full Code Here

TOP

Related Classes of org.projectforge.common.RecurrenceFrequency

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.