Class FiscalCalendar
- All Implemented Interfaces:
- HasHandlers
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.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.RefDataClassidFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructorsConstructorDescriptionFiscalCalendar(int defaultMonth, int defaultDate) FiscalCalendar(JavaScriptObject jsObj) 
- 
Method SummaryModifier and TypeMethodDescriptionThe default one-based day-number in thespecified monthto use for calculating fiscal dates when nofiscal yearsare provided.The default zero-based month-number to use for calculating fiscal dates when nofiscal yearsare provided.This attribute controls how the displayed fiscalYear value should be calculated for dates falling within a period not explicitly listed in thefiscal years array.An array ofFiscalYear objectswhich each represent the start date of a single fiscal year.static FiscalCalendargetOrCreateRef(JavaScriptObject jsObj) setDefaultDate(Integer defaultDate) The default one-based day-number in thespecified monthto use for calculating fiscal dates when nofiscal yearsare provided.setDefaultMonth(Integer defaultMonth) The default zero-based month-number to use for calculating fiscal dates when nofiscal yearsare provided.setDefaultYearMode(FiscalYearMode defaultYearMode) This attribute controls how the displayed fiscalYear value should be calculated for dates falling within a period not explicitly listed in thefiscal years array.setFiscalYears(FiscalYear... fiscalYears) An array ofFiscalYear objectswhich each represent the start date of a single fiscal year.Methods inherited from class com.smartgwt.client.core.RefDataClassgetRef, getRef, internalSetIDMethods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, 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
- 
Constructor Details- 
FiscalCalendarpublic FiscalCalendar()
- 
FiscalCalendar
- 
FiscalCalendarpublic FiscalCalendar(int defaultMonth, int defaultDate) 
 
- 
- 
Method Details- 
getOrCreateRef
- 
setDefaultDateThe default one-based day-number in thespecified monthto use for calculating fiscal dates when nofiscal yearsare provided. This value together withdefaultMonthwill be used as the start date for the fiscal years where no explicitly specified fiscalYear configuration is present.
 See alsodefaultYearMode.- Parameters:
- defaultDate- New defaultDate value. Default value is null
- Returns:
- FiscalCalendarinstance, for chaining setter calls
 
- 
getDefaultDateThe default one-based day-number in thespecified monthto use for calculating fiscal dates when nofiscal yearsare provided. This value together withdefaultMonthwill be used as the start date for the fiscal years where no explicitly specified fiscalYear configuration is present.
 See alsodefaultYearMode.- Returns:
- Current defaultDate value. Default value is null
 
- 
setDefaultMonthThe default zero-based month-number to use for calculating fiscal dates when nofiscal yearsare provided. This value together withdefaultDatewill be used as the start date for the fiscal years where no explicitly specified fiscalYear configuration is present.
 See alsodefaultYearMode.- Parameters:
- defaultMonth- New defaultMonth value. Default value is null
- Returns:
- FiscalCalendarinstance, for chaining setter calls
 
- 
getDefaultMonthThe default zero-based month-number to use for calculating fiscal dates when nofiscal yearsare provided. This value together withdefaultDatewill be used as the start date for the fiscal years where no explicitly specified fiscalYear configuration is present.
 See alsodefaultYearMode.- Returns:
- Current defaultMonth value. Default value is null
 
- 
setDefaultYearModeThis attribute controls how the displayed fiscalYear value should be calculated for dates falling within a period not explicitly listed in thefiscal years array.The defaultMonthanddefaultDatewill 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).- Parameters:
- defaultYearMode- New defaultYearMode value. Default value is "end"
- Returns:
- FiscalCalendarinstance, for chaining setter calls
 
- 
getDefaultYearModeThis attribute controls how the displayed fiscalYear value should be calculated for dates falling within a period not explicitly listed in thefiscal years array.The defaultMonthanddefaultDatewill 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).- Returns:
- Current defaultYearMode value. Default value is "end"
 
- 
setFiscalYearsAn array ofFiscalYear objectswhich each represent the start date of a single fiscal year.- Parameters:
- fiscalYears- New fiscalYears value. Default value is null
- Returns:
- FiscalCalendarinstance, for chaining setter calls
 
- 
getFiscalYearsAn array ofFiscalYear objectswhich each represent the start date of a single fiscal year.- Returns:
- Current fiscalYears value. Default value is null
 
 
-