public class DateChooser extends VLayout implements HasDataChangedHandlers
DateItem
class.Modifier and Type | Class and Description |
---|---|
static interface |
DateChooser.YearTitleFormatter
A customizer that allows you to alter the year representations used in various places in the DateChooser widget.
|
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Constructor and Description |
---|
DateChooser() |
DateChooser(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addDataChangedHandler(DataChangedHandler handler)
Add a dataChanged handler.
|
void |
cancelClick()
Fired when the user clicks the cancel button in this date chooser.
|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
protected com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.String |
getAlternateStyleSuffix()
The text appended to the style name when using
alternateWeekStyles . |
java.lang.Boolean |
getAlternateWeekStyles()
Whether alternating weeks should be drawn in alternating styles.
|
IButton |
getApplyButton()
When a DateChooser is configured for
a "datetime" value ,
clicking on a date cell in the grid will not automatically
dismiss the DateChooser canvas. |
java.lang.String |
getApplyButtonTitle()
Title for the
Apply button. |
java.lang.String |
getBaseBottomButtonStyle()
CSS style to apply to the buttons at the bottom of the DateChooser ("Today" and "Cancel").
|
java.lang.String |
getBaseButtonStyle()
Base CSS style applied to this picker's buttons.
|
java.lang.String |
getBaseFiscalYearStyle()
Base CSS style applied to cells in the
fiscal
year column . |
java.lang.String |
getBaseNavButtonStyle()
CSS style to apply to navigation buttons and date display at the top of the component.
|
java.lang.String |
getBaseWeekdayStyle()
Base CSS style applied to weekdays.
|
java.lang.String |
getBaseWeekendStyle()
Base CSS style applied to weekends.
|
java.lang.String |
getBaseWeekStyle()
Base CSS style applied to cells in the
fiscal week
column . |
HLayout |
getButtonLayout()
|
java.lang.String[] |
getButtonLayoutControls()
Array of members to show in the
buttonLayout . |
IButton |
getCancelButton()
A button shown below the
calendar grid which, when clicked, closes
the DateChooser without selecting a value. |
java.lang.String |
getCancelButtonTitle()
Title for the cancellation button.
|
java.lang.Boolean |
getCloseOnDateClick()
When editing a "date" value, with no time portion, clicking on a date-cell selects the date and closes the DateChooser.
|
boolean |
getCloseOnEscapeKeypress()
Should this dateChooser be dismissed if the user presses the Escape key?
|
java.util.Date |
getData()
Get the current value of the picker.
|
DateGrid |
getDateGrid()
A
ListGrid subclass, responsible for rendering the calendar view. |
int |
getDayNameLength()
How long (how many characters) should be day names be.
|
java.util.Date[] |
getDisabledDates()
An array of Date instances that should be disabled if they appear in the calendar view.
|
java.lang.String |
getDisabledWeekdayStyle()
Base CSS style applied to weekday dates which have been
disabled . |
java.lang.String |
getDisabledWeekendStyle()
Base CSS style applied to weekend dates which have been
disabled . |
java.lang.Boolean |
getDisableWeekends()
Whether it should be valid to pick a weekend day.
|
int |
getEndYear()
Latest year that may be selected.
|
java.lang.Integer |
getEndYearRange()
When
endYear is unset, this is the years after today that
will be available for selection in the year menu. |
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. |
IButton |
getFiscalYearChooserButton()
A button shown in the
navigation layout which, when
clicked, shows a picker for selecting a specific fiscal year. |
java.lang.String |
getFiscalYearFieldTitle()
Title for the
fiscal year field in the date
grid. |
java.lang.String |
getFiscalYearHeaderStyle()
Base CSS style applied to the header of the
fiscal year column in the calendar view . |
java.lang.Integer |
getHeaderHeight()
Deprecated.
in favor of
navigationLayoutHeight |
java.lang.String |
getHeaderStyle()
CSS style applied to the day-of-week headers.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
IButton |
getMonthChooserButton()
A button shown in the
navigation layout that shows
a picker for selecting a specific month. |
java.lang.String |
getMonthMenuStyle()
Style for the pop-up year menu.
|
HLayout |
getNavigationLayout()
|
int |
getNavigationLayoutHeight()
Height of the
navigation area , containing the
various buttons for navigating the calendar view . |
IButton |
getNextMonthButton()
A button shown in the
navigation layout that shifts
the calendar view forward by a month. |
java.lang.String |
getNextMonthButtonAriaLabel()
Aria label for the nextMonthButton . |
java.lang.String |
getNextMonthIcon()
Icon for the next month button
|
int |
getNextMonthIconHeight()
Height of the icon for the next month button
|
java.lang.String |
getNextMonthIconRTL()
Icon for the next month button
|
int |
getNextMonthIconWidth()
Width of the icon for the next month button if
Page.isRTL() is true. |
IButton |
getNextYearButton()
A button shown in the
navigation layout that shifts
the calendar view forward by a year. |
java.lang.String |
getNextYearButtonAriaLabel()
Aria label for the nextYearButton . |
java.lang.String |
getNextYearIcon()
Icon for the next year button
|
int |
getNextYearIconHeight()
Height of the icon for the next year button
|
java.lang.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(com.google.gwt.core.client.JavaScriptObject jsObj) |
IButton |
getPreviousMonthButton()
A button shown in the
navigation layout that shifts
the calendar view backward by a month. |
java.lang.String |
getPreviousMonthButtonAriaLabel()
Aria label for the previousMonthButton . |
IButton |
getPreviousYearButton()
A button shown in the
navigation layout that shifts
the calendar view backward by a year. |
java.lang.String |
getPreviousYearButtonAriaLabel()
Aria label for the previousYearButton . |
java.lang.String |
getPrevMonthIcon()
Icon for the previous month button
|
int |
getPrevMonthIconHeight()
Height of the icon for the previous month button
|
java.lang.String |
getPrevMonthIconRTL()
Icon for the previous month button if
Page.isRTL() is true. |
int |
getPrevMonthIconWidth()
Width of the icon for the previous month button
|
java.lang.String |
getPrevYearIcon()
Icon for the previous year button
|
int |
getPrevYearIconHeight()
Height of the icon for the previous year button
|
java.lang.String |
getPrevYearIconRTL()
Icon for the previous year button if
Page.isRTL() is true. |
int |
getPrevYearIconWidth()
Width of the icon for the previous year button
|
java.lang.String |
getSelectedWeekStyle()
CSS style applied to the Fiscal Year and Week columns for the currently selected week (the one being displayed in the
week chooser ). |
java.lang.Boolean |
getShowApplyButton()
Determines whether the
applyButton will be displayed. |
java.lang.Boolean |
getShowCancelButton()
Determines whether the "Cancel" button will be displayed.
|
java.lang.Boolean |
getShowFiscalYearChooser()
When set to true, show a button that allows the calendar to be navigated by fiscal year.
|
java.lang.Boolean |
getShowSecondItem()
When showing the
time field , whether to show the "second"
picker. |
java.lang.Boolean |
getShowTimeItem()
Whether to show the
time field for editing the time portion
of the date. |
java.lang.Boolean |
getShowTodayButton()
Determines whether the "Today" button will be displayed, allowing the user to select the current date.
|
java.lang.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 . |
java.lang.Boolean |
getShowWeekends()
Whether weekend days should be shown.
|
java.lang.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.
|
java.lang.Integer |
getStartYearRange()
When
startYear is unset, this is the years before today
that will be available for selection in the year menu. |
java.lang.Boolean |
getStyleWeekends()
Whether weekend days should be styled differently from weekdays.
|
TimeItem |
getTimeItem()
TimeItem for editing the time portion of dates. |
TimeItem |
getTimeItemProperties()
Custom properties to apply to the
time field used for
editing the time portion of the date. |
java.lang.String |
getTimeItemTitle()
Title for the
time field . |
IButton |
getTodayButton()
A button shown below the
calendar grid which, when clicked, navigates
the calendar to today. |
java.lang.Integer |
getTodayButtonHeight()
If set specifies a fixed height for the Today and Cancel buttons.
|
java.lang.String |
getTodayButtonTitle()
Title for "Today" button.
|
java.lang.Boolean |
getUse24HourTime()
When showing the
time field , whether the TimeItem should be set to use 24-hour time. |
java.lang.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. |
IButton |
getWeekChooserButton()
A button shown in the
navigation layout which shows
a picker for selecting a specific week of the year. |
int[] |
getWeekendDays()
An array of integer day-numbers that should be considered to be weekend days by this DateChooser instance.
|
java.lang.String |
getWeekendHeaderStyle()
Optional CSS style applied to the day-of-week headers for weekend days.
|
java.lang.String |
getWeekFieldTitle()
Title for the
week field in the date grid. |
java.lang.String |
getWeekHeaderStyle()
Base CSS style applied to the header of the
fiscal or
calendar week column in the calendar view . |
java.lang.String |
getWeekMenuStyle()
Style for the pop-up week menu.
|
IButton |
getYearChooserButton()
A button shown in the
navigation layout that shows
a picker for selecting a specific calendar year. |
java.lang.String |
getYearMenuStyle()
Style for the pop-up year menu.
|
DateChooser |
setAlternateStyleSuffix(java.lang.String alternateStyleSuffix)
The text appended to the style name when using
alternateWeekStyles . |
DateChooser |
setAlternateWeekStyles(java.lang.Boolean alternateWeekStyles)
Whether alternating weeks should be drawn in alternating styles.
|
DateChooser |
setApplyButtonTitle(java.lang.String applyButtonTitle)
Title for the
Apply button. |
DateChooser |
setBaseBottomButtonStyle(java.lang.String baseBottomButtonStyle)
CSS style to apply to the buttons at the bottom of the DateChooser ("Today" and "Cancel").
|
DateChooser |
setBaseButtonStyle(java.lang.String baseButtonStyle)
Base CSS style applied to this picker's buttons.
|
DateChooser |
setBaseFiscalYearStyle(java.lang.String baseFiscalYearStyle)
Base CSS style applied to cells in the
fiscal
year column . |
DateChooser |
setBaseNavButtonStyle(java.lang.String baseNavButtonStyle)
CSS style to apply to navigation buttons and date display at the top of the component.
|
DateChooser |
setBaseWeekdayStyle(java.lang.String baseWeekdayStyle)
Base CSS style applied to weekdays.
|
DateChooser |
setBaseWeekendStyle(java.lang.String baseWeekendStyle)
Base CSS style applied to weekends.
|
DateChooser |
setBaseWeekStyle(java.lang.String baseWeekStyle)
Base CSS style applied to cells in the
fiscal week
column . |
DateChooser |
setButtonLayoutControls(java.lang.String... buttonLayoutControls)
Array of members to show in the
buttonLayout . |
DateChooser |
setCancelButtonTitle(java.lang.String cancelButtonTitle)
Title for the cancellation button.
|
DateChooser |
setCloseOnDateClick(java.lang.Boolean closeOnDateClick)
When editing a "date" value, with no time portion, clicking on a date-cell selects the date and closes the DateChooser.
|
DateChooser |
setCloseOnEscapeKeypress(boolean closeOnEscapeKeypress)
Should this dateChooser be dismissed if the user presses the Escape key?
|
void |
setData(java.util.Date date)
Set the picker to show the given date.
|
DateChooser |
setDayNameLength(int dayNameLength)
How long (how many characters) should be day names be.
|
static void |
setDefaultProperties(DateChooser dateChooserProperties)
Class level method to set the default properties of this class.
|
DateChooser |
setDisabledDates(java.util.Date... disabledDates)
An array of Date instances that should be disabled if they appear in the calendar view.
|
DateChooser |
setDisabledWeekdayStyle(java.lang.String disabledWeekdayStyle)
Base CSS style applied to weekday dates which have been
disabled . |
DateChooser |
setDisabledWeekendStyle(java.lang.String disabledWeekendStyle)
Base CSS style applied to weekend dates which have been
disabled . |
DateChooser |
setDisableWeekends(java.lang.Boolean disableWeekends)
Whether it should be valid to pick a weekend day.
|
DateChooser |
setEndYear(int endYear)
Latest year that may be selected.
|
DateChooser |
setEndYearRange(java.lang.Integer endYearRange)
When
endYear is unset, this is the years after today that
will be available for selection in the year menu. |
DateChooser |
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. |
DateChooser |
setFiscalYearFieldTitle(java.lang.String fiscalYearFieldTitle)
Title for the
fiscal year field in the date
grid. |
DateChooser |
setFiscalYearHeaderStyle(java.lang.String fiscalYearHeaderStyle)
Base CSS style applied to the header of the
fiscal year column in the calendar view . |
DateChooser |
setHeaderHeight(java.lang.Integer headerHeight)
Deprecated.
in favor of
navigationLayoutHeight |
DateChooser |
setHeaderStyle(java.lang.String headerStyle)
CSS style applied to the day-of-week headers.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.DateChooserLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
DateChooser |
setMonthMenuStyle(java.lang.String monthMenuStyle)
Style for the pop-up year menu.
|
DateChooser |
setNavigationLayoutHeight(int navigationLayoutHeight)
Height of the
navigation area , containing the
various buttons for navigating the calendar view . |
DateChooser |
setNextMonthButtonAriaLabel(java.lang.String nextMonthButtonAriaLabel)
Aria label for the nextMonthButton . |
DateChooser |
setNextMonthIcon(java.lang.String nextMonthIcon)
Icon for the next month button
|
DateChooser |
setNextMonthIconHeight(int nextMonthIconHeight)
Height of the icon for the next month button
|
DateChooser |
setNextMonthIconRTL(java.lang.String nextMonthIconRTL)
Icon for the next month button
|
DateChooser |
setNextMonthIconWidth(int nextMonthIconWidth)
Width of the icon for the next month button if
Page.isRTL() is true. |
DateChooser |
setNextYearButtonAriaLabel(java.lang.String nextYearButtonAriaLabel)
Aria label for the nextYearButton . |
DateChooser |
setNextYearIcon(java.lang.String nextYearIcon)
Icon for the next year button
|
DateChooser |
setNextYearIconHeight(int nextYearIconHeight)
Height of the icon for the next year button
|
DateChooser |
setNextYearIconRTL(java.lang.String nextYearIconRTL)
Icon for the next year button if
Page.isRTL() is true. |
DateChooser |
setNextYearIconWidth(int nextYearIconWidth)
Width of the icon for the next year button
|
DateChooser |
setPreviousMonthButtonAriaLabel(java.lang.String previousMonthButtonAriaLabel)
Aria label for the previousMonthButton . |
DateChooser |
setPreviousYearButtonAriaLabel(java.lang.String previousYearButtonAriaLabel)
Aria label for the previousYearButton . |
DateChooser |
setPrevMonthIcon(java.lang.String prevMonthIcon)
Icon for the previous month button
|
DateChooser |
setPrevMonthIconHeight(int prevMonthIconHeight)
Height of the icon for the previous month button
|
DateChooser |
setPrevMonthIconRTL(java.lang.String prevMonthIconRTL)
Icon for the previous month button if
Page.isRTL() is true. |
DateChooser |
setPrevMonthIconWidth(int prevMonthIconWidth)
Width of the icon for the previous month button
|
DateChooser |
setPrevYearIcon(java.lang.String prevYearIcon)
Icon for the previous year button
|
DateChooser |
setPrevYearIconHeight(int prevYearIconHeight)
Height of the icon for the previous year button
|
DateChooser |
setPrevYearIconRTL(java.lang.String prevYearIconRTL)
Icon for the previous year button if
Page.isRTL() is true. |
DateChooser |
setPrevYearIconWidth(int prevYearIconWidth)
Width of the icon for the previous year button
|
DateChooser |
setSelectedWeekStyle(java.lang.String selectedWeekStyle)
CSS style applied to the Fiscal Year and Week columns for the currently selected week (the one being displayed in the
week chooser ). |
DateChooser |
setShowApplyButton(java.lang.Boolean showApplyButton)
Determines whether the
applyButton will be displayed. |
DateChooser |
setShowCancelButton(java.lang.Boolean showCancelButton)
Determines whether the "Cancel" button will be displayed.
|
DateChooser |
setShowFiscalYearChooser(java.lang.Boolean showFiscalYearChooser)
When set to true, show a button that allows the calendar to be navigated by fiscal year.
|
DateChooser |
setShowSecondItem(java.lang.Boolean showSecondItem)
When showing the
time field , whether to show the "second"
picker. |
DateChooser |
setShowTimeItem(java.lang.Boolean showTimeItem)
Whether to show the
time field for editing the time portion
of the date. |
DateChooser |
setShowTodayButton(java.lang.Boolean showTodayButton)
Determines whether the "Today" button will be displayed, allowing the user to select the current date.
|
DateChooser |
setShowWeekChooser(java.lang.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 . |
DateChooser |
setShowWeekends(java.lang.Boolean showWeekends)
Whether weekend days should be shown.
|
DateChooser |
setSkinImgDir(java.lang.String skinImgDir)
Overridden directory where images for this widget (such as the month and year button icons) may be found.
|
DateChooser |
setStartYear(int startYear)
Earliest year that may be selected.
|
DateChooser |
setStartYearRange(java.lang.Integer startYearRange)
When
startYear is unset, this is the years before today
that will be available for selection in the year menu. |
DateChooser |
setStyleWeekends(java.lang.Boolean styleWeekends)
Whether weekend days should be styled differently from weekdays.
|
DateChooser |
setTimeItemProperties(TimeItem timeItemProperties)
Custom properties to apply to the
time field used for
editing the time portion of the date. |
DateChooser |
setTimeItemTitle(java.lang.String timeItemTitle)
Title for the
time field . |
DateChooser |
setTodayButtonHeight(java.lang.Integer todayButtonHeight)
If set specifies a fixed height for the Today and Cancel buttons.
|
DateChooser |
setTodayButtonTitle(java.lang.String todayButtonTitle)
Title for "Today" button.
|
DateChooser |
setUse24HourTime(java.lang.Boolean use24HourTime)
When showing the
time field , whether the TimeItem should be set to use 24-hour time. |
DateChooser |
setUseFirstDayOfFiscalWeek(java.lang.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. |
DateChooser |
setWeekendDays(int... weekendDays)
An array of integer day-numbers that should be considered to be weekend days by this DateChooser instance.
|
DateChooser |
setWeekendHeaderStyle(java.lang.String weekendHeaderStyle)
Optional CSS style applied to the day-of-week headers for weekend days.
|
DateChooser |
setWeekFieldTitle(java.lang.String weekFieldTitle)
Title for the
week field in the date grid. |
DateChooser |
setWeekHeaderStyle(java.lang.String weekHeaderStyle)
Base CSS style applied to the header of the
fiscal or
calendar week column in the calendar view . |
DateChooser |
setWeekMenuStyle(java.lang.String weekMenuStyle)
Style for the pop-up week menu.
|
DateChooser |
setYearMenuStyle(java.lang.String yearMenuStyle)
Style for the pop-up year menu.
|
void |
setYearTitleFormatter(DateChooser.YearTitleFormatter formatter) |
void |
todayClick()
Fired when the user clicks the Today button.
|
setDefaultProperties, setLogicalStructure
addMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getChildTabPosition, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEditProxyConstructor, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutEndMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutStartMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersLength, getMembersMargin, getMinMemberLength, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, layoutIsDirty, onInit_Layout, onInit, reflow, reflow, reflowNow, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, replaceMember, revealChild, revealChild, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEditProxyConstructor, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutEndMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutStartMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinBreadthMember, setMinBreadthMember, setMinBreadthMember, setMinMemberLength, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMember
addChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, dataContextChanged, deparent, depeer, disable, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAriaRole, getAriaStateDefaults, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverScreen, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestDataContext, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUISummary, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverScreen, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, setTestDataContext, setTitle, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDrop
addDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
public DateChooser()
public DateChooser(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DateChooser getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
public DateChooser setAlternateStyleSuffix(java.lang.String alternateStyleSuffix)
alternateWeekStyles
.alternateStyleSuffix
- New alternateStyleSuffix value. Default value is "Dark"DateChooser
instance, for chaining setter callspublic java.lang.String getAlternateStyleSuffix()
alternateWeekStyles
.public DateChooser setAlternateWeekStyles(java.lang.Boolean alternateWeekStyles)
alternateStyleSuffix
appended to it.alternateWeekStyles
- New alternateWeekStyles value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.Boolean getAlternateWeekStyles()
alternateStyleSuffix
appended to it.public IButton getApplyButton() throws java.lang.IllegalStateException
a "datetime" value
,
clicking on a date cell in the grid
will not automatically
dismiss the DateChooser canvas. In this case, use the Apply
button to accept the selected date and time
and dismiss the chooser.
This component is an AutoChild named "applyButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setApplyButtonTitle(java.lang.String applyButtonTitle)
Apply
button.applyButtonTitle
- New applyButtonTitle value. Default value is "Apply"DateChooser
instance, for chaining setter callspublic java.lang.String getApplyButtonTitle()
Apply
button.public DateChooser setBaseBottomButtonStyle(java.lang.String baseBottomButtonStyle)
baseButtonStyle
is used.baseBottomButtonStyle
- New baseBottomButtonStyle value. Default value is nullDateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseBottomButtonStyle()
baseButtonStyle
is used.CSSStyleName
public DateChooser setBaseButtonStyle(java.lang.String baseButtonStyle)
See CellStyleSuffixes
for details on how stateful suffixes
are combined with the base style to generate stateful cell styles in Grids.
baseButtonStyle
- New baseButtonStyle value. Default value is "dateChooserButton"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseButtonStyle()
See CellStyleSuffixes
for details on how stateful suffixes
are combined with the base style to generate stateful cell styles in Grids.
CSSStyleName
public DateChooser setBaseFiscalYearStyle(java.lang.String baseFiscalYearStyle)
fiscal
year column
. See CellStyleSuffixes
for details on how stateful suffixes are
combined with the base style to generate stateful cell styles in Grids.
baseFiscalYearStyle
- New baseFiscalYearStyle value. Default value is "dateChooserFiscalYearCell"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseFiscalYearStyle()
fiscal
year column
. See CellStyleSuffixes
for details on how stateful suffixes are
combined with the base style to generate stateful cell styles in Grids.
CSSStyleName
public DateChooser setBaseNavButtonStyle(java.lang.String baseNavButtonStyle)
baseButtonStyle
is used.baseNavButtonStyle
- New baseNavButtonStyle value. Default value is nullDateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseNavButtonStyle()
baseButtonStyle
is used.CSSStyleName
public DateChooser setBaseWeekdayStyle(java.lang.String baseWeekdayStyle)
baseButtonStyle
. See CellStyleSuffixes
for details on how stateful suffixes are combined with the base style to
generate stateful cell styles in Grids.
baseWeekdayStyle
- New baseWeekdayStyle value. Default value is "dateChooserWeekday"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseWeekdayStyle()
baseButtonStyle
. See CellStyleSuffixes
for details on how stateful suffixes are combined with the base style to
generate stateful cell styles in Grids.
CSSStyleName
public DateChooser setBaseWeekendStyle(java.lang.String baseWeekendStyle)
baseWeekdayStyle
. See
CellStyleSuffixes
for details on how stateful suffixes are combined with the base style
to generate stateful cell styles in Grids.
baseWeekendStyle
- New baseWeekendStyle value. Default value is "dateChooserWeekend"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseWeekendStyle()
baseWeekdayStyle
. See
CellStyleSuffixes
for details on how stateful suffixes are combined with the base style
to generate stateful cell styles in Grids.
CSSStyleName
public DateChooser setBaseWeekStyle(java.lang.String baseWeekStyle)
fiscal week
column
.baseWeekStyle
- New baseWeekStyle value. Default value is "dateChooserWeekCell"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getBaseWeekStyle()
fiscal week
column
.CSSStyleName
public HLayout getButtonLayout() throws java.lang.IllegalStateException
com.smartgwt.client.types.AutoChild
HLayout
, rendered below the
date grid
, and showing the Today
, Cancel
and, when working with "datetime" values, Apply
buttons.
This component is an AutoChild named "buttonLayout". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setButtonLayoutControls(java.lang.String... buttonLayoutControls) throws java.lang.IllegalStateException
buttonLayout
.
The default value of buttonLayoutControls
is an Array of Strings listing
the standard buttons in their default order:
buttonLayoutControls : ["todayButton", "cancelButton", "applyButton"]You can override
buttonLayoutControls
to change the order of the standard
buttons. You can also omit standard buttons this way, although it's more efficient to
use the related "show" property if available (eg showTodayButton
).
By embedding a Canvas directly in this list you can add arbitrary additional controls to the buttonLayout.
Note that having added controls to buttonLayoutControls, you can still call APIs directly on those controls to change their appearance, and you can also show() and hide() them if they should not be shown in some circumstances.
Tip: custom controls need to set layoutAlign:"center" to appear vertically centered.
buttonLayoutControls
- New buttonLayoutControls value. Default value is (see below)DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String[] getButtonLayoutControls()
buttonLayout
.
The default value of buttonLayoutControls
is an Array of Strings listing
the standard buttons in their default order:
buttonLayoutControls : ["todayButton", "cancelButton", "applyButton"]You can override
buttonLayoutControls
to change the order of the standard
buttons. You can also omit standard buttons this way, although it's more efficient to
use the related "show" property if available (eg showTodayButton
).
By embedding a Canvas directly in this list you can add arbitrary additional controls to the buttonLayout.
Note that having added controls to buttonLayoutControls, you can still call APIs directly on those controls to change their appearance, and you can also show() and hide() them if they should not be shown in some circumstances.
Tip: custom controls need to set layoutAlign:"center" to appear vertically centered.
public IButton getCancelButton() throws java.lang.IllegalStateException
calendar grid
which, when clicked, closes
the DateChooser without selecting a value.
This component is an AutoChild named "cancelButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setCancelButtonTitle(java.lang.String cancelButtonTitle)
cancelButtonTitle
- New cancelButtonTitle value. Default value is "Cancel"DateChooser
instance, for chaining setter callspublic java.lang.String getCancelButtonTitle()
public DateChooser setCloseOnDateClick(java.lang.Boolean closeOnDateClick)
time portion
is required, however, the apply button
must be clicked to close the chooser, by default.
Set this attribute to true to have the DateChooser close when a user clicks in a date-cell, even if the timeItem
is showing.
closeOnDateClick
- New closeOnDateClick value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.Boolean getCloseOnDateClick()
time portion
is required, however, the apply button
must be clicked to close the chooser, by default.
Set this attribute to true to have the DateChooser close when a user clicks in a date-cell, even if the timeItem
is showing.
public DateChooser setCloseOnEscapeKeypress(boolean closeOnEscapeKeypress) throws java.lang.IllegalStateException
closeOnEscapeKeypress
- New closeOnEscapeKeypress value. Default value is falseDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic boolean getCloseOnEscapeKeypress()
public DateGrid getDateGrid() throws java.lang.IllegalStateException
ListGrid
subclass, responsible for rendering the calendar view.
This component is an AutoChild named "dateGrid". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setDayNameLength(int dayNameLength) throws java.lang.IllegalStateException
dayNameLength
- New dayNameLength value. Default value is 2DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getDayNameLength()
public DateChooser setDisabledDates(java.util.Date... disabledDates)
disabledDates
- New disabledDates value. Default value is nullDateChooser
instance, for chaining setter callspublic java.util.Date[] getDisabledDates()
public DateChooser setDisabledWeekdayStyle(java.lang.String disabledWeekdayStyle)
disabled
.disabledWeekdayStyle
- New disabledWeekdayStyle value. Default value is "dateChooserDisabledWeekday"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getDisabledWeekdayStyle()
disabled
.CSSStyleName
public DateChooser setDisabledWeekendStyle(java.lang.String disabledWeekendStyle)
disabled
.disabledWeekendStyle
- New disabledWeekendStyle value. Default value is "dateChooserDisabledWeekend"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getDisabledWeekendStyle()
disabled
.CSSStyleName
public DateChooser setDisableWeekends(java.lang.Boolean disableWeekends) throws java.lang.IllegalStateException
Which days are considered weekends is controlled by weekendDays
if set or by weekendDays
otherwise.
disableWeekends
- New disableWeekends value. Default value is falseDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getDisableWeekends()
Which days are considered weekends is controlled by weekendDays
if set or by weekendDays
otherwise.
public DateChooser setEndYear(int endYear) throws java.lang.IllegalStateException
DateItem
, the default is inherited from DateItem.endDate
. Otherwise, the default is 5 years after
today. When opened from a RelativeDateItem
, this property and
startYear
are defaulted to null, and the year-picker shows
years surrounding the current year, according to startYearRange
and endYearRange
.
endYear
- New endYear value. Default value is 2025DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getEndYear()
DateItem
, the default is inherited from DateItem.endDate
. Otherwise, the default is 5 years after
today. When opened from a RelativeDateItem
, this property and
startYear
are defaulted to null, and the year-picker shows
years surrounding the current year, according to startYearRange
and endYearRange
.
public DateChooser setEndYearRange(java.lang.Integer endYearRange) throws java.lang.IllegalStateException
endYear
is unset, this is the years after today that
will be available for selection in the year menu.endYearRange
- New endYearRange value. Default value is 10DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getEndYearRange()
endYear
is unset, this is the years after today that
will be available for selection in the year menu.public DateChooser setFirstDayOfWeek(int firstDayOfWeek) throws java.lang.IllegalStateException
global setter
.firstDayOfWeek
- New firstDayOfWeek value. Default value is 0DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdAppearance overview and related methods
public int getFirstDayOfWeek()
global setter
.Appearance overview and related methods
public IButton getFiscalYearChooserButton() throws java.lang.IllegalStateException
navigation layout
which, when
clicked, shows a picker for selecting a specific fiscal year.
This component is an AutoChild named "fiscalYearChooserButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setFiscalYearFieldTitle(java.lang.String fiscalYearFieldTitle)
fiscal year
field in the date
grid.fiscalYearFieldTitle
- New fiscalYearFieldTitle value. Default value is "Year"DateChooser
instance, for chaining setter callspublic java.lang.String getFiscalYearFieldTitle()
fiscal year
field in the date
grid.public DateChooser setFiscalYearHeaderStyle(java.lang.String fiscalYearHeaderStyle)
fiscal year column
in the calendar view
.fiscalYearHeaderStyle
- New fiscalYearHeaderStyle value. Default value is nullDateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getFiscalYearHeaderStyle()
fiscal year column
in the calendar view
.CSSStyleName
public DateChooser setHeaderHeight(java.lang.Integer headerHeight) throws java.lang.IllegalStateException
navigationLayoutHeight
headerHeight
- New headerHeight value. Default value is 20DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getHeaderHeight()
navigationLayoutHeight
public DateChooser setHeaderStyle(java.lang.String headerStyle)
weekendHeaderStyle
headerStyle
- New headerStyle value. Default value is "dateChooserButtonDisabled"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getHeaderStyle()
weekendHeaderStyle
CSSStyleName
public IButton getMonthChooserButton() throws java.lang.IllegalStateException
navigation layout
that shows
a picker for selecting a specific month.
This component is an AutoChild named "monthChooserButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setMonthMenuStyle(java.lang.String monthMenuStyle) throws java.lang.IllegalStateException
monthMenuStyle
- New monthMenuStyle value. Default value is "dateChooserMonthMenu"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdCSSStyleName
public java.lang.String getMonthMenuStyle()
CSSStyleName
public HLayout getNavigationLayout() throws java.lang.IllegalStateException
com.smartgwt.client.types.AutoChild
HLayout
, rendered above the
date grid
, and showing a number of widgets for navigating the
DateChooser. These include buttons for moving to the previous year
or month
, the next year
or month
, and for selecting a specific year
, month
or week
.
This component is an AutoChild named "navigationLayout". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setNavigationLayoutHeight(int navigationLayoutHeight) throws java.lang.IllegalStateException
navigation area
, containing the
various buttons for navigating the calendar view
.navigationLayoutHeight
- New navigationLayoutHeight value. Default value is 20DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getNavigationLayoutHeight()
navigation area
, containing the
various buttons for navigating the calendar view
.public IButton getNextMonthButton() throws java.lang.IllegalStateException
navigation layout
that shifts
the calendar view forward by a month.
This component is an AutoChild named "nextMonthButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setNextMonthButtonAriaLabel(java.lang.String nextMonthButtonAriaLabel) throws java.lang.IllegalStateException
Aria label
for the nextMonthButton
.nextMonthButtonAriaLabel
- New nextMonthButtonAriaLabel value. Default value is "Next month"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getNextMonthButtonAriaLabel()
Aria label
for the nextMonthButton
.public DateChooser setNextMonthIcon(java.lang.String nextMonthIcon)
nextMonthIcon
- New nextMonthIcon value. Default value is "[SKIN]arrow_right.gif"DateChooser
instance, for chaining setter callsURL
public java.lang.String getNextMonthIcon()
URL
public DateChooser setNextMonthIconHeight(int nextMonthIconHeight)
nextMonthIconHeight
- New nextMonthIconHeight value. Default value is 7DateChooser
instance, for chaining setter callspublic int getNextMonthIconHeight()
public DateChooser setNextMonthIconRTL(java.lang.String nextMonthIconRTL)
nextMonthIconRTL
- New nextMonthIconRTL value. Default value is nullDateChooser
instance, for chaining setter callsURL
public java.lang.String getNextMonthIconRTL()
URL
public DateChooser 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
- New nextMonthIconWidth value. Default value is 7DateChooser
instance, for chaining setter callspublic 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 IButton getNextYearButton() throws java.lang.IllegalStateException
navigation layout
that shifts
the calendar view forward by a year.
This component is an AutoChild named "nextYearButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setNextYearButtonAriaLabel(java.lang.String nextYearButtonAriaLabel) throws java.lang.IllegalStateException
Aria label
for the nextYearButton
.nextYearButtonAriaLabel
- New nextYearButtonAriaLabel value. Default value is "Next year"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getNextYearButtonAriaLabel()
Aria label
for the nextYearButton
.public DateChooser setNextYearIcon(java.lang.String nextYearIcon) throws java.lang.IllegalStateException
nextYearIcon
- New nextYearIcon value. Default value is "[SKIN]doubleArrow_right.gif"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
,
URL
public java.lang.String getNextYearIcon()
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
,
URL
public DateChooser setNextYearIconHeight(int nextYearIconHeight)
nextYearIconHeight
- New nextYearIconHeight value. Default value is 7DateChooser
instance, for chaining setter callspublic int getNextYearIconHeight()
public DateChooser setNextYearIconRTL(java.lang.String nextYearIconRTL) throws java.lang.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
- New nextYearIconRTL value. Default value is nullDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
,
URL
public java.lang.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.com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
,
URL
public DateChooser setNextYearIconWidth(int nextYearIconWidth) throws java.lang.IllegalStateException
nextYearIconWidth
- New nextYearIconWidth value. Default value is 14DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getNextYearIconWidth()
public IButton getPreviousMonthButton() throws java.lang.IllegalStateException
navigation layout
that shifts
the calendar view backward by a month.
This component is an AutoChild named "previousMonthButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setPreviousMonthButtonAriaLabel(java.lang.String previousMonthButtonAriaLabel) throws java.lang.IllegalStateException
Aria label
for the previousMonthButton
.previousMonthButtonAriaLabel
- New previousMonthButtonAriaLabel value. Default value is "Previous month"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getPreviousMonthButtonAriaLabel()
Aria label
for the previousMonthButton
.public IButton getPreviousYearButton() throws java.lang.IllegalStateException
navigation layout
that shifts
the calendar view backward by a year.
This component is an AutoChild named "previousYearButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setPreviousYearButtonAriaLabel(java.lang.String previousYearButtonAriaLabel) throws java.lang.IllegalStateException
Aria label
for the previousYearButton
.previousYearButtonAriaLabel
- New previousYearButtonAriaLabel value. Default value is "Previous year"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getPreviousYearButtonAriaLabel()
Aria label
for the previousYearButton
.public DateChooser setPrevMonthIcon(java.lang.String prevMonthIcon) throws java.lang.IllegalStateException
prevMonthIcon
- New prevMonthIcon value. Default value is "[SKIN]arrow_left.gif"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdURL
public java.lang.String getPrevMonthIcon()
URL
public DateChooser setPrevMonthIconHeight(int prevMonthIconHeight) throws java.lang.IllegalStateException
prevMonthIconHeight
- New prevMonthIconHeight value. Default value is 7DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevMonthIconHeight()
public DateChooser setPrevMonthIconRTL(java.lang.String prevMonthIconRTL) throws java.lang.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
- New prevMonthIconRTL value. Default value is nullDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdURL
public java.lang.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.URL
public DateChooser setPrevMonthIconWidth(int prevMonthIconWidth) throws java.lang.IllegalStateException
prevMonthIconWidth
- New prevMonthIconWidth value. Default value is 7DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevMonthIconWidth()
public DateChooser setPrevYearIcon(java.lang.String prevYearIcon) throws java.lang.IllegalStateException
prevYearIcon
- New prevYearIcon value. Default value is "[SKIN]doubleArrow_left.gif"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
,
URL
public java.lang.String getPrevYearIcon()
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
,
URL
public DateChooser setPrevYearIconHeight(int prevYearIconHeight) throws java.lang.IllegalStateException
prevYearIconHeight
- New prevYearIconHeight value. Default value is 7DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevYearIconHeight()
public DateChooser setPrevYearIconRTL(java.lang.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
- New prevYearIconRTL value. Default value is nullDateChooser
instance, for chaining setter callscom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
,
URL
public java.lang.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.com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
,
URL
public DateChooser setPrevYearIconWidth(int prevYearIconWidth) throws java.lang.IllegalStateException
prevYearIconWidth
- New prevYearIconWidth value. Default value is 14DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevYearIconWidth()
public DateChooser setSelectedWeekStyle(java.lang.String selectedWeekStyle)
week chooser
).selectedWeekStyle
- New selectedWeekStyle value. Default value is "dateChooserSelectedWeek"DateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getSelectedWeekStyle()
week chooser
).CSSStyleName
public DateChooser setShowApplyButton(java.lang.Boolean showApplyButton)
applyButton
will be displayed.showApplyButton
- New showApplyButton value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowApplyButton()
applyButton
will be displayed.public DateChooser setShowCancelButton(java.lang.Boolean showCancelButton)
showCancelButton
- New showCancelButton value. Default value is falseDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowCancelButton()
public DateChooser setShowFiscalYearChooser(java.lang.Boolean showFiscalYearChooser)
showFiscalYearChooser
- New showFiscalYearChooser value. Default value is falseDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowFiscalYearChooser()
public DateChooser setShowSecondItem(java.lang.Boolean showSecondItem)
time field
, whether to show the "second"
picker. When unset, the second field is not shown.showSecondItem
- New showSecondItem value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowSecondItem()
time field
, whether to show the "second"
picker. When unset, the second field is not shown.public DateChooser setShowTimeItem(java.lang.Boolean showTimeItem)
time field
for editing the time portion
of the date. When unset, the time field is shown automatically if the field type is "datetime". Note that the item's
second chooser
is not shown by default.showTimeItem
- New showTimeItem value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowTimeItem()
time field
for editing the time portion
of the date. When unset, the time field is shown automatically if the field type is "datetime". Note that the item's
second chooser
is not shown by default.public DateChooser setShowTodayButton(java.lang.Boolean showTodayButton)
showTodayButton
- New showTodayButton value. Default value is trueDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowTodayButton()
public DateChooser setShowWeekChooser(java.lang.Boolean showWeekChooser)
showFiscalYearChooser
.showWeekChooser
- New showWeekChooser value. Default value is falseDateChooser
instance, for chaining setter callspublic java.lang.Boolean getShowWeekChooser()
showFiscalYearChooser
.public DateChooser setShowWeekends(java.lang.Boolean showWeekends) throws java.lang.IllegalStateException
weekendDays
if set or by weekendDays
otherwise.showWeekends
- New showWeekends value. Default value is trueDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowWeekends()
weekendDays
if set or by weekendDays
otherwise.public DateChooser setSkinImgDir(java.lang.String skinImgDir)
Note : This is an advanced setting
setSkinImgDir
in class Canvas
skinImgDir
- New skinImgDir value. Default value is "images/common/"DateChooser
instance, for chaining setter callsSCImgURL
public java.lang.String getSkinImgDir()
getSkinImgDir
in class Canvas
SCImgURL
public DateChooser setStartYear(int startYear) throws java.lang.IllegalStateException
DateItem
, the default is inherited from DateItem.startDate
. Otherwise, the default is 10 years
before today. When opened from a RelativeDateItem
, this property and
endYear
are defaulted to null, and the year-picker shows
years surrounding the current year, according to startYearRange
and endYearRange
.
startYear
- New startYear value. Default value is 2010DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getStartYear()
DateItem
, the default is inherited from DateItem.startDate
. Otherwise, the default is 10 years
before today. When opened from a RelativeDateItem
, this property and
endYear
are defaulted to null, and the year-picker shows
years surrounding the current year, according to startYearRange
and endYearRange
.
public DateChooser setStartYearRange(java.lang.Integer startYearRange) throws java.lang.IllegalStateException
startYear
is unset, this is the years before today
that will be available for selection in the year menu.startYearRange
- New startYearRange value. Default value is 30DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getStartYearRange()
startYear
is unset, this is the years before today
that will be available for selection in the year menu.public DateChooser setStyleWeekends(java.lang.Boolean styleWeekends) throws java.lang.IllegalStateException
baseWeekendStyle
and weekendHeaderStyle
, instead using the baseWeekdayStyle
and weekendHeaderStyle
.styleWeekends
- New styleWeekends value. Default value is trueDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getStyleWeekends()
baseWeekendStyle
and weekendHeaderStyle
, instead using the baseWeekdayStyle
and weekendHeaderStyle
.public TimeItem getTimeItem() throws java.lang.IllegalStateException
TimeItem
for editing the time portion of dates. Visible by default for
fields of type "datetime" and can be controlled by setting showTimeItem
.
This component is an AutoChild named "timeItem". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setTimeItemProperties(TimeItem timeItemProperties) throws java.lang.IllegalStateException
time field
used for
editing the time portion of the date.
Note : This is an advanced setting
timeItemProperties
- New timeItemProperties value. Default value is nullDateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic TimeItem getTimeItemProperties()
time field
used for
editing the time portion of the date.public DateChooser setTimeItemTitle(java.lang.String timeItemTitle)
time field
.timeItemTitle
- New timeItemTitle value. Default value is "Time"DateChooser
instance, for chaining setter callspublic java.lang.String getTimeItemTitle()
time field
.public IButton getTodayButton() throws java.lang.IllegalStateException
calendar grid
which, when clicked, navigates
the calendar to today.
This component is an AutoChild named "todayButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setTodayButtonHeight(java.lang.Integer todayButtonHeight)
todayButtonHeight
- New todayButtonHeight value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.Integer getTodayButtonHeight()
public DateChooser setTodayButtonTitle(java.lang.String todayButtonTitle)
todayButtonTitle
- New todayButtonTitle value. Default value is "Today"DateChooser
instance, for chaining setter callspublic java.lang.String getTodayButtonTitle()
public DateChooser setUse24HourTime(java.lang.Boolean use24HourTime)
time field
, whether the TimeItem
should be set to use 24-hour time. The default is true.use24HourTime
- New use24HourTime value. Default value is trueDateChooser
instance, for chaining setter callspublic java.lang.Boolean getUse24HourTime()
time field
, whether the TimeItem
should be set to use 24-hour time. The default is true.public DateChooser setUseFirstDayOfFiscalWeek(java.lang.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
- New useFirstDayOfFiscalWeek value. Default value is trueDateChooser
instance, for chaining setter callspublic java.lang.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 IButton getWeekChooserButton() throws java.lang.IllegalStateException
navigation layout
which shows
a picker for selecting a specific week of the year. When showFiscalYearChooser
is true, the week number
represents a fiscal week number, one offset from the start of the fiscal year. Otherwise, it represents a week number
offset from the start of the calendar year.
This component is an AutoChild named "weekChooserButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setWeekendDays(int... weekendDays)
globally
.weekendDays
- New weekendDays value. Default value is nullDateChooser
instance, for chaining setter callsVisibility overview and related methods
public int[] getWeekendDays()
globally
.Visibility overview and related methods
public DateChooser setWeekendHeaderStyle(java.lang.String weekendHeaderStyle)
headerStyle
will be applied to both weekdays and weekend days.weekendHeaderStyle
- New weekendHeaderStyle value. Default value is nullDateChooser
instance, for chaining setter callspublic java.lang.String getWeekendHeaderStyle()
headerStyle
will be applied to both weekdays and weekend days.public DateChooser setWeekFieldTitle(java.lang.String weekFieldTitle)
week
field in the date grid.weekFieldTitle
- New weekFieldTitle value. Default value is "Wk"DateChooser
instance, for chaining setter callspublic java.lang.String getWeekFieldTitle()
week
field in the date grid.public DateChooser setWeekHeaderStyle(java.lang.String weekHeaderStyle)
fiscal or
calendar week column
in the calendar view
.weekHeaderStyle
- New weekHeaderStyle value. Default value is nullDateChooser
instance, for chaining setter callsCSSStyleName
public java.lang.String getWeekHeaderStyle()
fiscal or
calendar week column
in the calendar view
.CSSStyleName
public DateChooser setWeekMenuStyle(java.lang.String weekMenuStyle) throws java.lang.IllegalStateException
weekMenuStyle
- New weekMenuStyle value. Default value is "dateChooserWeekMenu"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdCSSStyleName
public java.lang.String getWeekMenuStyle()
CSSStyleName
public IButton getYearChooserButton() throws java.lang.IllegalStateException
navigation layout
that shows
a picker for selecting a specific calendar year.
This component is an AutoChild named "yearChooserButton". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public DateChooser setYearMenuStyle(java.lang.String yearMenuStyle) throws java.lang.IllegalStateException
yearMenuStyle
- New yearMenuStyle value. Default value is "dateChooserYearMenu"DateChooser
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdCSSStyleName
public java.lang.String getYearMenuStyle()
CSSStyleName
public void cancelClick()
public com.google.gwt.event.shared.HandlerRegistration addDataChangedHandler(DataChangedHandler handler)
Add a notification to be fired whenever the data changes.
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 handlerHandlerRegistration
used to remove this handlerpublic java.util.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(java.util.Date date)
date
- new valuepublic void setFiscalCalendar()
FiscalCalendar
object that will be used by this DateChooser. If unset, the
global fiscal calendar
is used.public void setFiscalCalendar(FiscalCalendar fiscalCalendar)
FiscalCalendar
object that will be used by this DateChooser. If unset, the
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 affect 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. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
dateChooserProperties
- properties that should be used as new defaults when instances of this class are createdSGWTProperties
public void setYearTitleFormatter(DateChooser.YearTitleFormatter formatter)
public com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.DateChooserLogicalStructure s)
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class VLayout