Class FiscalYear
- All Implemented Interfaces:
HasHandlers
See FiscalCalendar
for more information on how FiscalYears are set up and used.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
ConstructorDescriptionFiscalYear
(int year, int month, int date) FiscalYear
(int fiscalYear, int year, int month, int date) FiscalYear
(JavaScriptObject jsObj) -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
The one-based day-number in thespecified month
when this fiscal year starts.The actual fiscal year that this date relates to.getMonth()
The zero-based month-number when this fiscal year starts.static FiscalYear
getOrCreateRef
(JavaScriptObject jsObj) getYear()
The 4-digit calendar year when this fiscal year starts.The one-based day-number in thespecified month
when this fiscal year starts.setFiscalYear
(Integer fiscalYear) The actual fiscal year that this date relates to.The zero-based month-number when this fiscal year starts.The 4-digit calendar year when this fiscal year starts.Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
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
-
Constructor Details
-
FiscalYear
public FiscalYear() -
FiscalYear
-
FiscalYear
public FiscalYear(int year, int month, int date) -
FiscalYear
public FiscalYear(int fiscalYear, int year, int month, int date)
-
-
Method Details
-
getOrCreateRef
-
setDate
The one-based day-number in thespecified month
when this fiscal year starts.- Parameters:
date
- New date value. Default value is null- Returns:
FiscalYear
instance, for chaining setter calls
-
getDate
The one-based day-number in thespecified month
when this fiscal year starts.- Returns:
- Current date value. Default value is null
-
setFiscalYear
The actual fiscal year that this date relates to.A fiscal year ends when the next one begins. A fiscal year may span the boundary between two calendar years in which case the
fiscalYear
value may not match theyear
value.For example fiscalYear 2020 may start in July of 2019 and end in July of 2020. In this case the
fiscalYear
would be set to2020
and theyear
would be set to2019
- Parameters:
fiscalYear
- New fiscalYear value. Default value is null- Returns:
FiscalYear
instance, for chaining setter calls
-
getFiscalYear
The actual fiscal year that this date relates to.A fiscal year ends when the next one begins. A fiscal year may span the boundary between two calendar years in which case the
fiscalYear
value may not match theyear
value.For example fiscalYear 2020 may start in July of 2019 and end in July of 2020. In this case the
fiscalYear
would be set to2020
and theyear
would be set to2019
- Returns:
- Current fiscalYear value. Default value is null
-
setMonth
The zero-based month-number when this fiscal year starts.- Parameters:
month
- New month value. Default value is null- Returns:
FiscalYear
instance, for chaining setter calls
-
getMonth
The zero-based month-number when this fiscal year starts.- Returns:
- Current month value. Default value is null
-
setYear
The 4-digit calendar year when this fiscal year starts.- Parameters:
year
- New year value. Default value is null- Returns:
FiscalYear
instance, for chaining setter calls
-
getYear
The 4-digit calendar year when this fiscal year starts.- Returns:
- Current year value. Default value is null
-