Example #1
0
 /**
  * This attribute controls how the displayed fiscalYear value should be calculated for dates
  * falling within a period not explicitly listed in the +lik{fiscalCalendar.fiscalYears,fiscal
  * years array}.
  *
  * <p>The {@link com.smartgwt.client.widgets.FiscalCalendar#getDefaultMonth defaultMonth} and
  * {@link com.smartgwt.client.widgets.FiscalCalendar#getDefaultDate defaultDate} will be used to
  * calculate the start of the fiscal year period. The defaultYearMode determines whether the
  * reported fiscalYear for this period matches the year in which the period starts or the year in
  * which it ends (so whether a fiscal year spanning dates within both 2020 and 2021 is reported as
  * fiscalYear 2020 or 2021).
  *
  * @return FiscalYearMode
  */
 public FiscalYearMode getDefaultYearMode() {
   return EnumUtil.getEnum(FiscalYearMode.values(), getAttribute("defaultYearMode"));
 }
Example #2
0
 /**
  * This attribute controls how the displayed fiscalYear value should be calculated for dates
  * falling within a period not explicitly listed in the +lik{fiscalCalendar.fiscalYears,fiscal
  * years array}.
  *
  * <p>The {@link com.smartgwt.client.widgets.FiscalCalendar#getDefaultMonth defaultMonth} and
  * {@link com.smartgwt.client.widgets.FiscalCalendar#getDefaultDate defaultDate} will be used to
  * calculate the start of the fiscal year period. The defaultYearMode determines whether the
  * reported fiscalYear for this period matches the year in which the period starts or the year in
  * which it ends (so whether a fiscal year spanning dates within both 2020 and 2021 is reported as
  * fiscalYear 2020 or 2021).
  *
  * @param defaultYearMode defaultYearMode Default value is "end"
  */
 public void setDefaultYearMode(FiscalYearMode defaultYearMode) {
   setAttribute("defaultYearMode", defaultYearMode == null ? null : defaultYearMode.getValue());
 }