|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.layout.Layout
com.smartgwt.client.widgets.layout.VLayout
com.smartgwt.client.widgets.DateChooser
public class DateChooser
Simple interactive calendar interface used to pick a date. Used by the DateItem
class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
---|
config, configOnly, id, isElementSet, nativeObject, scClassName |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
DateChooser()
|
|
DateChooser(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
HandlerRegistration |
addDataChangedHandler(DataChangedHandler handler)
Add a dataChanged handler. |
void |
cancelClick()
Fired when the user clicks the cancel button in this date chooser. |
protected JavaScriptObject |
create()
|
String |
getAlternateStyleSuffix()
The text appended to the style name when using alternateWeekStyles . |
Boolean |
getAlternateWeekStyles()
Whether alternating weeks should be drawn in alternating styles. |
String |
getBaseBottomButtonStyle()
CSS style to apply to the buttons at the bottom of the DateChooser ("Today" and "Cancel"). |
String |
getBaseButtonStyle()
Base css style applied to this picker's buttons. |
String |
getBaseFiscalYearStyle()
Base css style applied to cells in the fiscal
year column . |
String |
getBaseNavButtonStyle()
CSS style to apply to navigation buttons and date display at the top of the component. |
String |
getBaseWeekdayStyle()
Base css style applied to weekdays. |
String |
getBaseWeekendStyle()
Base css style applied to weekends. |
String |
getBaseWeekStyle()
Base css style applied to cells in the fiscal week
column . |
String |
getCancelButtonTitle()
Title for the cancellation button. |
Date |
getData()
Get the current value of the picker. |
int |
getDayNameLength()
How long (how many characters) shxxould be day names be. |
Date[] |
getDisabledDates()
An array of Date instances that should be disabled if they appear in the calendar view. |
String |
getDisabledWeekdayStyle()
Base css style applied to weekday dates which have been disabled . |
String |
getDisabledWeekendStyle()
Base css style applied to weekend dates which have been disabled . |
Boolean |
getDisableWeekends()
Whether it should be valid to pick a weekend day. |
int |
getEndYear()
Last year that may be selected. |
int |
getFirstDayOfWeek()
Day of the week to show in the first column. |
FiscalCalendar |
getFiscalCalendar()
Returns the FiscalCalendar object that will be used by this DateChooser. |
int |
getHeaderHeight()
Height of the header area (containing the next/previous month & year buttons) in pixels |
String |
getHeaderStyle()
CSS style applied to the day-of-week headers. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
|
String |
getMonthMenuStyle()
Style for the pop-up year menu. |
String |
getNextMonthIcon()
Icon for the next month button |
int |
getNextMonthIconHeight()
Height of the icon for the next month button |
String |
getNextMonthIconRTL()
Icon for the next month button |
int |
getNextMonthIconWidth()
Width of the icon for the next month button if Page.isRTL is true. |
String |
getNextYearIcon()
Icon for the next year button |
int |
getNextYearIconHeight()
Height of the icon for the next year button |
String |
getNextYearIconRTL()
Icon for the next year button if Page.isRTL is true. |
int |
getNextYearIconWidth()
Width of the icon for the next year button |
static DateChooser |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getPrevMonthIcon()
Icon for the previous month button |
int |
getPrevMonthIconHeight()
Height of the icon for the previous month button |
String |
getPrevMonthIconRTL()
Icon for the previous month button if Page.isRTL is true. |
int |
getPrevMonthIconWidth()
Width of the icon for the previous month button |
String |
getPrevYearIcon()
Icon for the previous year button |
int |
getPrevYearIconHeight()
Height of the icon for the previous year button |
String |
getPrevYearIconRTL()
Icon for the previous year button if Page.isRTL is true. |
int |
getPrevYearIconWidth()
Width of the icon for the previous year button |
String |
getSelectedWeekStyle()
CSS style applied to the Fiscal Year and Week columns for the currently selected week (the one being displayed in the header). |
Boolean |
getShowCancelButton()
Determines whether the "Cancel" button will be displayed. |
Boolean |
getShowFiscalYearChooser()
When set to true, show a button that allows the calendar to be navigated by fiscal year. |
Boolean |
getShowTodayButton()
Determines whether the "Today" button will be displayed, allowing the user to select the current date. |
Boolean |
getShowWeekChooser()
When set to true, show a button that allows the calendar to be navigated by week or fiscal week, depending on the value of showFiscalYearChooser . |
Boolean |
getShowWeekends()
Whether weekend days should be shown. |
String |
getSkinImgDir()
Overridden directory where images for this widget (such as the month and year button icons) may be found. |
int |
getStartYear()
Earliest year that may be selected. |
Integer |
getTodayButtonHeight()
If set specifies a fixed height for the Today and Cancel buttons. |
String |
getTodayButtonTitle()
Title for "Today" button. |
Boolean |
getUseFirstDayOfFiscalWeek()
When showing the fiscal year chooser , should
firstDayOfWeek be defaulted to the same day as the fiscal start date? If true and a fiscal year starts on a Tuesday,
the calendar will display Tuesday to Monday from left to right. |
String |
getWeekendHeaderStyle()
Optional CSS style applied to the day-of-week headers for weekend days. |
String |
getWeekMenuStyle()
Style for the pop-up week menu. |
String |
getYearMenuStyle()
Style for the pop-up year menu. |
void |
setAlternateStyleSuffix(String alternateStyleSuffix)
The text appended to the style name when using alternateWeekStyles . |
void |
setAlternateWeekStyles(Boolean alternateWeekStyles)
Whether alternating weeks should be drawn in alternating styles. |
void |
setBaseBottomButtonStyle(String baseBottomButtonStyle)
CSS style to apply to the buttons at the bottom of the DateChooser ("Today" and "Cancel"). |
void |
setBaseButtonStyle(String baseButtonStyle)
Base css style applied to this picker's buttons. |
void |
setBaseFiscalYearStyle(String baseFiscalYearStyle)
Base css style applied to cells in the fiscal
year column . |
void |
setBaseNavButtonStyle(String baseNavButtonStyle)
CSS style to apply to navigation buttons and date display at the top of the component. |
void |
setBaseWeekdayStyle(String baseWeekdayStyle)
Base css style applied to weekdays. |
void |
setBaseWeekendStyle(String baseWeekendStyle)
Base css style applied to weekends. |
void |
setBaseWeekStyle(String baseWeekStyle)
Base css style applied to cells in the fiscal week
column . |
void |
setCancelButtonTitle(String cancelButtonTitle)
Title for the cancellation button. |
void |
setData(Date date)
Set the picker to show the given date. |
void |
setDayNameLength(int dayNameLength)
How long (how many characters) shxxould be day names be. |
static void |
setDefaultProperties(DateChooser dateChooserProperties)
Class level method to set the default properties of this class. |
void |
setDisabledDates(Date... disabledDates)
An array of Date instances that should be disabled if they appear in the calendar view. |
void |
setDisabledWeekdayStyle(String disabledWeekdayStyle)
Base css style applied to weekday dates which have been disabled . |
void |
setDisabledWeekendStyle(String disabledWeekendStyle)
Base css style applied to weekend dates which have been disabled . |
void |
setDisableWeekends(Boolean disableWeekends)
Whether it should be valid to pick a weekend day. |
void |
setEndYear(int endYear)
Last year that may be selected. |
void |
setFirstDayOfWeek(int firstDayOfWeek)
Day of the week to show in the first column. |
void |
setFiscalCalendar()
Sets the FiscalCalendar object that will be used by this DateChooser. |
void |
setFiscalCalendar(FiscalCalendar fiscalCalendar)
Sets the FiscalCalendar object that will be used by this DateChooser. |
void |
setHeaderHeight(int headerHeight)
Height of the header area (containing the next/previous month & year buttons) in pixels |
void |
setHeaderStyle(String headerStyle)
CSS style applied to the day-of-week headers. |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.DateChooserLogicalStructure s)
|
void |
setMonthMenuStyle(String monthMenuStyle)
Style for the pop-up year menu. |
void |
setNextMonthIcon(String nextMonthIcon)
Icon for the next month button |
void |
setNextMonthIconHeight(int nextMonthIconHeight)
Height of the icon for the next month button |
void |
setNextMonthIconRTL(String nextMonthIconRTL)
Icon for the next month button |
void |
setNextMonthIconWidth(int nextMonthIconWidth)
Width of the icon for the next month button if Page.isRTL is true. |
void |
setNextYearIcon(String nextYearIcon)
Icon for the next year button |
void |
setNextYearIconHeight(int nextYearIconHeight)
Height of the icon for the next year button |
void |
setNextYearIconRTL(String nextYearIconRTL)
Icon for the next year button if Page.isRTL is true. |
void |
setNextYearIconWidth(int nextYearIconWidth)
Width of the icon for the next year button |
void |
setPrevMonthIcon(String prevMonthIcon)
Icon for the previous month button |
void |
setPrevMonthIconHeight(int prevMonthIconHeight)
Height of the icon for the previous month button |
void |
setPrevMonthIconRTL(String prevMonthIconRTL)
Icon for the previous month button if Page.isRTL is true. |
void |
setPrevMonthIconWidth(int prevMonthIconWidth)
Width of the icon for the previous month button |
void |
setPrevYearIcon(String prevYearIcon)
Icon for the previous year button |
void |
setPrevYearIconHeight(int prevYearIconHeight)
Height of the icon for the previous year button |
void |
setPrevYearIconRTL(String prevYearIconRTL)
Icon for the previous year button if Page.isRTL is true. |
void |
setPrevYearIconWidth(int prevYearIconWidth)
Width of the icon for the previous year button |
void |
setSelectedWeekStyle(String selectedWeekStyle)
CSS style applied to the Fiscal Year and Week columns for the currently selected week (the one being displayed in the header). |
void |
setShowCancelButton(Boolean showCancelButton)
Determines whether the "Cancel" button will be displayed. |
void |
setShowFiscalYearChooser(Boolean showFiscalYearChooser)
When set to true, show a button that allows the calendar to be navigated by fiscal year. |
void |
setShowTodayButton(Boolean showTodayButton)
Determines whether the "Today" button will be displayed, allowing the user to select the current date. |
void |
setShowWeekChooser(Boolean showWeekChooser)
When set to true, show a button that allows the calendar to be navigated by week or fiscal week, depending on the value of showFiscalYearChooser . |
void |
setShowWeekends(Boolean showWeekends)
Whether weekend days should be shown. |
void |
setSkinImgDir(String skinImgDir)
Overridden directory where images for this widget (such as the month and year button icons) may be found. |
void |
setStartYear(int startYear)
Earliest year that may be selected. |
void |
setTodayButtonHeight(Integer todayButtonHeight)
If set specifies a fixed height for the Today and Cancel buttons. |
void |
setTodayButtonTitle(String todayButtonTitle)
Title for "Today" button. |
void |
setUseFirstDayOfFiscalWeek(Boolean useFirstDayOfFiscalWeek)
When showing the fiscal year chooser , should
firstDayOfWeek be defaulted to the same day as the fiscal start date? If true and a fiscal year starts on a Tuesday,
the calendar will display Tuesday to Monday from left to right. |
void |
setWeekendHeaderStyle(String weekendHeaderStyle)
Optional CSS style applied to the day-of-week headers for weekend days. |
void |
setWeekMenuStyle(String weekMenuStyle)
Style for the pop-up week menu. |
void |
setYearMenuStyle(String yearMenuStyle)
Style for the pop-up year menu. |
void |
todayClick()
Fired when the user clicks the Today button. |
Methods inherited from class com.smartgwt.client.widgets.layout.VLayout |
---|
setDefaultProperties, setLogicalStructure |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public DateChooser()
public DateChooser(JavaScriptObject jsObj)
Method Detail |
---|
public static DateChooser getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject
in class VLayout
protected JavaScriptObject create()
create
in class VLayout
public void setAlternateStyleSuffix(String alternateStyleSuffix)
alternateWeekStyles
.
alternateStyleSuffix
- . See String
. Default value is "Dark"public String getAlternateStyleSuffix()
alternateWeekStyles
.
String
public void setAlternateWeekStyles(Boolean alternateWeekStyles)
alternateStyleSuffix
appended to it.
alternateWeekStyles
- alternateWeekStyles Default value is nullpublic Boolean getAlternateWeekStyles()
alternateStyleSuffix
appended to it.
public void setBaseBottomButtonStyle(String baseBottomButtonStyle)
baseButtonStyle
is used.
baseBottomButtonStyle
- . See CSSClassName
. Default value is nullpublic String getBaseBottomButtonStyle()
baseButtonStyle
is used.
CSSClassName
public void setBaseButtonStyle(String baseButtonStyle)
baseButtonStyle
- . See CSSStyleName
. Default value is "dateChooserButton"public String getBaseButtonStyle()
CSSStyleName
public void setBaseFiscalYearStyle(String baseFiscalYearStyle)
fiscal
year column
.
baseFiscalYearStyle
- . See CSSStyleName
. Default value is "dateChooserFiscalYearCell"public String getBaseFiscalYearStyle()
fiscal
year column
.
CSSStyleName
public void setBaseNavButtonStyle(String baseNavButtonStyle)
baseButtonStyle
is used.
baseNavButtonStyle
- . See CSSClassName
. Default value is nullpublic String getBaseNavButtonStyle()
baseButtonStyle
is used.
CSSClassName
public void setBaseWeekdayStyle(String baseWeekdayStyle)
baseButtonStyle
.
baseWeekdayStyle
- . See CSSStyleName
. Default value is "dateChooserWeekday"public String getBaseWeekdayStyle()
baseButtonStyle
.
CSSStyleName
public void setBaseWeekendStyle(String baseWeekendStyle)
baseWeekdayStyle
.
baseWeekendStyle
- . See CSSStyleName
. Default value is "dateChooserWeekend"public String getBaseWeekendStyle()
baseWeekdayStyle
.
CSSStyleName
public void setBaseWeekStyle(String baseWeekStyle)
fiscal week
column
.
baseWeekStyle
- . See CSSStyleName
. Default value is "dateChooserWeekCell"public String getBaseWeekStyle()
fiscal week
column
.
CSSStyleName
public void setCancelButtonTitle(String cancelButtonTitle)
cancelButtonTitle
- . See String
. Default value is "Cancel"public String getCancelButtonTitle()
String
public void setDayNameLength(int dayNameLength) throws IllegalStateException
dayNameLength
- dayNameLength Default value is 2
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getDayNameLength()
public void setDisabledDates(Date... disabledDates)
disabledDates
- disabledDates Default value is nullpublic Date[] getDisabledDates()
public void setDisabledWeekdayStyle(String disabledWeekdayStyle)
disabled
.
disabledWeekdayStyle
- . See CSSStyleName
. Default value is "dateChooserDisabledWeekday"public String getDisabledWeekdayStyle()
disabled
.
CSSStyleName
public void setDisabledWeekendStyle(String disabledWeekendStyle)
disabled
.
disabledWeekendStyle
- . See CSSStyleName
. Default value is "dateChooserDisabledWeekend"public String getDisabledWeekendStyle()
disabled
.
CSSStyleName
public void setDisableWeekends(Boolean disableWeekends) throws IllegalStateException
Which days are considered weekends is controlled by weekendDays.
disableWeekends
- disableWeekends Default value is false
IllegalStateException
- this property cannot be changed after the component has been createdpublic Boolean getDisableWeekends()
Which days are considered weekends is controlled by weekendDays.
public void setEndYear(int endYear) throws IllegalStateException
endYear
- endYear Default value is 2015
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getEndYear()
public void setFirstDayOfWeek(int firstDayOfWeek) throws IllegalStateException
firstDayOfWeek
- firstDayOfWeek Default value is 0
IllegalStateException
- this property cannot be changed after the component has been createdAppearance overview and related methods
public int getFirstDayOfWeek()
Appearance overview and related methods
public void setHeaderHeight(int headerHeight) throws IllegalStateException
headerHeight
- headerHeight Default value is 20
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getHeaderHeight()
public void setHeaderStyle(String headerStyle)
weekendHeaderStyle
headerStyle
- . See CSSStyleName
. Default value is "dateChooserButtonDisabled"public String getHeaderStyle()
weekendHeaderStyle
CSSStyleName
public void setMonthMenuStyle(String monthMenuStyle) throws IllegalStateException
monthMenuStyle
- . See CSSStyleName
. Default value is "dateChooserMonthMenu"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getMonthMenuStyle()
CSSStyleName
public void setNextMonthIcon(String nextMonthIcon)
nextMonthIcon
- . See String
. Default value is "[SKIN]arrow_right.gif"public String getNextMonthIcon()
String
public void setNextMonthIconHeight(int nextMonthIconHeight)
nextMonthIconHeight
- nextMonthIconHeight Default value is 7public int getNextMonthIconHeight()
public void setNextMonthIconRTL(String nextMonthIconRTL)
nextMonthIconRTL
- . See String
. Default value is nullpublic String getNextMonthIconRTL()
String
public void setNextMonthIconWidth(int nextMonthIconWidth)
Page.isRTL
is true. If not
set, and the page is in RTL mode, the nextMonthIcon
will be used in place of the prevMonthIcon
and vice
versa.
nextMonthIconWidth
- nextMonthIconWidth Default value is 7public int getNextMonthIconWidth()
Page.isRTL
is true. If not
set, and the page is in RTL mode, the nextMonthIcon
will be used in place of the prevMonthIcon
and vice
versa.
public void setNextYearIcon(String nextYearIcon) throws IllegalStateException
nextYearIcon
- . See String
. Default value is "[SKIN]doubleArrow_right.gif"
IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
public String getNextYearIcon()
String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setNextYearIconHeight(int nextYearIconHeight)
nextYearIconHeight
- nextYearIconHeight Default value is 7public int getNextYearIconHeight()
public void setNextYearIconRTL(String nextYearIconRTL) throws IllegalStateException
Page.isRTL
is true. If not set, and the
page is in RTL mode, the nextYearIcon
will be used in
place of the prevYearIcon
and vice versa.
nextYearIconRTL
- . See String
. Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
public String getNextYearIconRTL()
Page.isRTL
is true. If not set, and the
page is in RTL mode, the nextYearIcon
will be used in
place of the prevYearIcon
and vice versa.
String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setNextYearIconWidth(int nextYearIconWidth) throws IllegalStateException
nextYearIconWidth
- nextYearIconWidth Default value is 14
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getNextYearIconWidth()
public void setPrevMonthIcon(String prevMonthIcon) throws IllegalStateException
prevMonthIcon
- . See String
. Default value is "[SKIN]arrow_left.gif"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getPrevMonthIcon()
String
public void setPrevMonthIconHeight(int prevMonthIconHeight) throws IllegalStateException
prevMonthIconHeight
- prevMonthIconHeight Default value is 7
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevMonthIconHeight()
public void setPrevMonthIconRTL(String prevMonthIconRTL) throws IllegalStateException
Page.isRTL
is true. If not set, and
the page is in RTL mode, the nextMonthIcon
will be used
in place of the prevMonthIcon
and vice versa.
prevMonthIconRTL
- . See String
. Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getPrevMonthIconRTL()
Page.isRTL
is true. If not set, and
the page is in RTL mode, the nextMonthIcon
will be used
in place of the prevMonthIcon
and vice versa.
String
public void setPrevMonthIconWidth(int prevMonthIconWidth) throws IllegalStateException
prevMonthIconWidth
- prevMonthIconWidth Default value is 7
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevMonthIconWidth()
public void setPrevYearIcon(String prevYearIcon) throws IllegalStateException
prevYearIcon
- . See String
. Default value is "[SKIN]doubleArrow_left.gif"
IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
public String getPrevYearIcon()
String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setPrevYearIconHeight(int prevYearIconHeight) throws IllegalStateException
prevYearIconHeight
- prevYearIconHeight Default value is 7
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevYearIconHeight()
public void setPrevYearIconRTL(String prevYearIconRTL)
Page.isRTL
is true. If not set, and the
page is in RTL mode, the nextYearIcon
will be used in
place of the prevYearIcon
and vice versa.
prevYearIconRTL
- . See String
. Default value is nullcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
public String getPrevYearIconRTL()
Page.isRTL
is true. If not set, and the
page is in RTL mode, the nextYearIcon
will be used in
place of the prevYearIcon
and vice versa.
String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setPrevYearIconWidth(int prevYearIconWidth) throws IllegalStateException
prevYearIconWidth
- prevYearIconWidth Default value is 14
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevYearIconWidth()
public void setSelectedWeekStyle(String selectedWeekStyle)
selectedWeekStyle
- . See CSSStyleName
. Default value is "dateChooserSelectedWeek"public String getSelectedWeekStyle()
CSSStyleName
public void setShowCancelButton(Boolean showCancelButton)
showCancelButton
- showCancelButton Default value is falsepublic Boolean getShowCancelButton()
public void setShowFiscalYearChooser(Boolean showFiscalYearChooser)
showFiscalYearChooser
- showFiscalYearChooser Default value is falsepublic Boolean getShowFiscalYearChooser()
public void setShowTodayButton(Boolean showTodayButton)
showTodayButton
- showTodayButton Default value is truepublic Boolean getShowTodayButton()
public void setShowWeekChooser(Boolean showWeekChooser)
showFiscalYearChooser
.
showWeekChooser
- showWeekChooser Default value is falsepublic Boolean getShowWeekChooser()
showFiscalYearChooser
.
public void setShowWeekends(Boolean showWeekends) throws IllegalStateException
showWeekends
- showWeekends Default value is true
IllegalStateException
- this property cannot be changed after the component has been createdpublic Boolean getShowWeekends()
public void setSkinImgDir(String skinImgDir)
Note : This is an advanced setting
setSkinImgDir
in class Canvas
skinImgDir
- . See String
. Default value is "images/common/"Images overview and related methods
public String getSkinImgDir()
getSkinImgDir
in class Canvas
String
Images overview and related methods
public void setStartYear(int startYear) throws IllegalStateException
startYear
- startYear Default value is 1995
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getStartYear()
public void setTodayButtonHeight(Integer todayButtonHeight)
todayButtonHeight
- todayButtonHeight Default value is nullpublic Integer getTodayButtonHeight()
public void setTodayButtonTitle(String todayButtonTitle)
todayButtonTitle
- . See String
. Default value is "Today"public String getTodayButtonTitle()
String
public void setUseFirstDayOfFiscalWeek(Boolean useFirstDayOfFiscalWeek)
fiscal year chooser
, should
firstDayOfWeek be defaulted to the same day as the fiscal start date? If true and a fiscal year starts on a Tuesday,
the calendar will display Tuesday to Monday from left to right.
useFirstDayOfFiscalWeek
- useFirstDayOfFiscalWeek Default value is truepublic Boolean getUseFirstDayOfFiscalWeek()
fiscal year chooser
, should
firstDayOfWeek be defaulted to the same day as the fiscal start date? If true and a fiscal year starts on a Tuesday,
the calendar will display Tuesday to Monday from left to right.
public void setWeekendHeaderStyle(String weekendHeaderStyle)
headerStyle
will be applied to both weekdays and weekend days.
weekendHeaderStyle
- . See String
. Default value is nullpublic String getWeekendHeaderStyle()
headerStyle
will be applied to both weekdays and weekend days.
String
public void setWeekMenuStyle(String weekMenuStyle) throws IllegalStateException
weekMenuStyle
- . See CSSStyleName
. Default value is "dateChooserWeekMenu"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getWeekMenuStyle()
CSSStyleName
public void setYearMenuStyle(String yearMenuStyle) throws IllegalStateException
yearMenuStyle
- . See CSSStyleName
. Default value is "dateChooserYearMenu"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getYearMenuStyle()
CSSStyleName
public void cancelClick()
public HandlerRegistration addDataChangedHandler(DataChangedHandler handler)
Method to override or observe in order to be notified when a user picks a date value.
Has no default behavior (so no need to call Super).
Use DateChooser.getData
to get the
current date value.
addDataChangedHandler
in interface HasDataChangedHandlers
handler
- the dataChanged handler
HandlerRegistration
used to remove this handlerpublic Date getData()
See DateChooser.dataChanged
for how to respond to the user picking a date.
public FiscalCalendar getFiscalCalendar()
FiscalCalendar
object that will be used by this DateChooser.
public void setData(Date date)
date
- new valuepublic void setFiscalCalendar()
FiscalCalendar
object that will be used by this DateChooser. If unset, the
_link{Date.getFiscalCalendar, global fiscal calendar} is used.
public void setFiscalCalendar(FiscalCalendar fiscalCalendar)
FiscalCalendar
object that will be used by this DateChooser. If unset, the
_link{Date.getFiscalCalendar, global fiscal calendar} is used.
fiscalCalendar
- the fiscal calendar for this chooserpublic void todayClick()
public static void setDefaultProperties(DateChooser dateChooserProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
dateChooserProperties
- properties that should be used as new defaults when instances of this class are createdpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.DateChooserLogicalStructure s)
public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class VLayout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |