public class FiscalCalendar extends RefDataClass
A fiscal year spans a configurable date range - it may not exactly match a calendar year in length and it can start on any date within the calendar year and potentially end in the next calendar year.
Developers may specify explicit fiscal year start dates by adding
FiscalYear
objects to the fiscal years array
. If none are provided, or if there is no
entry for the given year, one is manufactured based on the default month
and date
.
id
factoryCreated, factoryProperties
Constructor and Description |
---|
FiscalCalendar() |
FiscalCalendar(int defaultMonth,
int defaultDate) |
FiscalCalendar(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getDefaultDate()
The default one-based day-number in the
specified
month to use for calculating fiscal dates when no fiscal years are provided. |
java.lang.Integer |
getDefaultMonth()
The default zero-based month-number to use for calculating fiscal dates when no
fiscal years are provided. |
FiscalYearMode |
getDefaultYearMode()
This attribute controls how the displayed fiscalYear value should be calculated for dates falling within a period not
explicitly listed in the
fiscal years array . |
FiscalYear[] |
getFiscalYears()
An array of
FiscalYear objects which each represent the start date of a
single fiscal year. |
static FiscalCalendar |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
FiscalCalendar |
setDefaultDate(java.lang.Integer defaultDate)
The default one-based day-number in the
specified
month to use for calculating fiscal dates when no fiscal years are provided. |
FiscalCalendar |
setDefaultMonth(java.lang.Integer defaultMonth)
The default zero-based month-number to use for calculating fiscal dates when no
fiscal years are provided. |
FiscalCalendar |
setDefaultYearMode(FiscalYearMode defaultYearMode)
This attribute controls how the displayed fiscalYear value should be calculated for dates falling within a period not
explicitly listed in the
fiscal years array . |
FiscalCalendar |
setFiscalYears(FiscalYear... fiscalYears)
An array of
FiscalYear objects which each represent the start date of a
single fiscal year. |
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public FiscalCalendar()
public FiscalCalendar(com.google.gwt.core.client.JavaScriptObject jsObj)
public FiscalCalendar(int defaultMonth, int defaultDate)
public static FiscalCalendar getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public FiscalCalendar setDefaultDate(java.lang.Integer defaultDate)
specified
month
to use for calculating fiscal dates when no fiscal years
are provided. This value together with defaultMonth
will be used as the start date for the fiscal years where no explicitly specified fiscalYear configuration
is present. defaultYearMode
.defaultDate
- New defaultDate value. Default value is nullFiscalCalendar
instance, for chaining setter callspublic java.lang.Integer getDefaultDate()
specified
month
to use for calculating fiscal dates when no fiscal years
are provided. This value together with defaultMonth
will be used as the start date for the fiscal years where no explicitly specified fiscalYear configuration
is present. defaultYearMode
.public FiscalCalendar setDefaultMonth(java.lang.Integer defaultMonth)
fiscal years
are provided. This value together with defaultDate
will be used as the start date for the fiscal
years where no explicitly specified fiscalYear configuration is present. defaultYearMode
.defaultMonth
- New defaultMonth value. Default value is nullFiscalCalendar
instance, for chaining setter callspublic java.lang.Integer getDefaultMonth()
fiscal years
are provided. This value together with defaultDate
will be used as the start date for the fiscal
years where no explicitly specified fiscalYear configuration is present. defaultYearMode
.public FiscalCalendar setDefaultYearMode(FiscalYearMode defaultYearMode)
fiscal years array
. The
defaultMonth
and 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).
defaultYearMode
- New defaultYearMode value. Default value is "end"FiscalCalendar
instance, for chaining setter callspublic FiscalYearMode getDefaultYearMode()
fiscal years array
. The
defaultMonth
and 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).
public FiscalCalendar setFiscalYears(FiscalYear... fiscalYears)
FiscalYear objects
which each represent the start date of a
single fiscal year.fiscalYears
- New fiscalYears value. Default value is nullFiscalCalendar
instance, for chaining setter callspublic FiscalYear[] getFiscalYears()
FiscalYear objects
which each represent the start date of a
single fiscal year.