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()
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. |
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()
Deprecated.
in favor of
navigationLayoutHeight |
IButton |
getNextMonthButton()
A button shown in the
navigation layout that shifts
the calendar view forward by a month. |
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 |
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. |
IButton |
getPreviousYearButton()
A button shown in the
navigation layout that shifts
the calendar view backward by a year. |
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.
|
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.
|
void |
setAlternateStyleSuffix(java.lang.String alternateStyleSuffix)
The text appended to the style name when using
alternateWeekStyles . |
void |
setAlternateWeekStyles(java.lang.Boolean alternateWeekStyles)
Whether alternating weeks should be drawn in alternating styles.
|
void |
setApplyButtonTitle(java.lang.String applyButtonTitle)
Title for the
Apply button. |
void |
setBaseBottomButtonStyle(java.lang.String baseBottomButtonStyle)
CSS style to apply to the buttons at the bottom of the DateChooser ("Today" and "Cancel").
|
void |
setBaseButtonStyle(java.lang.String baseButtonStyle)
Base CSS style applied to this picker's buttons.
|
void |
setBaseFiscalYearStyle(java.lang.String baseFiscalYearStyle)
Base CSS style applied to cells in the
fiscal
year column . |
void |
setBaseNavButtonStyle(java.lang.String baseNavButtonStyle)
CSS style to apply to navigation buttons and date display at the top of the component.
|
void |
setBaseWeekdayStyle(java.lang.String baseWeekdayStyle)
Base CSS style applied to weekdays.
|
void |
setBaseWeekendStyle(java.lang.String baseWeekendStyle)
Base CSS style applied to weekends.
|
void |
setBaseWeekStyle(java.lang.String baseWeekStyle)
Base CSS style applied to cells in the
fiscal week
column . |
void |
setButtonLayoutControls(java.lang.String... buttonLayoutControls)
Array of members to show in the
buttonLayout . |
void |
setCancelButtonTitle(java.lang.String cancelButtonTitle)
Title for the cancellation button.
|
void |
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.
|
void |
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.
|
void |
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.
|
void |
setDisabledDates(java.util.Date... disabledDates)
An array of Date instances that should be disabled if they appear in the calendar view.
|
void |
setDisabledWeekdayStyle(java.lang.String disabledWeekdayStyle)
Base CSS style applied to weekday dates which have been
disabled . |
void |
setDisabledWeekendStyle(java.lang.String disabledWeekendStyle)
Base CSS style applied to weekend dates which have been
disabled . |
void |
setDisableWeekends(java.lang.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 |
setFiscalYearFieldTitle(java.lang.String fiscalYearFieldTitle)
Title for the
fiscal year field in the date
grid. |
void |
setFiscalYearHeaderStyle(java.lang.String fiscalYearHeaderStyle)
Base CSS style applied to the header of the
fiscal year column in the calendar view . |
void |
setHeaderHeight(java.lang.Integer headerHeight)
Deprecated.
in favor of
navigationLayoutHeight |
void |
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. |
void |
setMonthMenuStyle(java.lang.String monthMenuStyle)
Style for the pop-up year menu.
|
void |
setNavigationLayoutHeight(int navigationLayoutHeight)
Deprecated.
in favor of
navigationLayoutHeight |
void |
setNextMonthIcon(java.lang.String nextMonthIcon)
Icon for the next month button
|
void |
setNextMonthIconHeight(int nextMonthIconHeight)
Height of the icon for the next month button
|
void |
setNextMonthIconRTL(java.lang.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(java.lang.String nextYearIcon)
Icon for the next year button
|
void |
setNextYearIconHeight(int nextYearIconHeight)
Height of the icon for the next year button
|
void |
setNextYearIconRTL(java.lang.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(java.lang.String prevMonthIcon)
Icon for the previous month button
|
void |
setPrevMonthIconHeight(int prevMonthIconHeight)
Height of the icon for the previous month button
|
void |
setPrevMonthIconRTL(java.lang.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(java.lang.String prevYearIcon)
Icon for the previous year button
|
void |
setPrevYearIconHeight(int prevYearIconHeight)
Height of the icon for the previous year button
|
void |
setPrevYearIconRTL(java.lang.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(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 ). |
void |
setShowApplyButton(java.lang.Boolean showApplyButton)
Determines whether the
applyButton will be displayed. |
void |
setShowCancelButton(java.lang.Boolean showCancelButton)
Determines whether the "Cancel" button will be displayed.
|
void |
setShowFiscalYearChooser(java.lang.Boolean showFiscalYearChooser)
When set to true, show a button that allows the calendar to be navigated by fiscal year.
|
void |
setShowSecondItem(java.lang.Boolean showSecondItem)
When showing the
time field , whether to show the "second"
picker. |
void |
setShowTimeItem(java.lang.Boolean showTimeItem)
Whether to show the
time field for editing the time portion
of the date. |
void |
setShowTodayButton(java.lang.Boolean showTodayButton)
Determines whether the "Today" button will be displayed, allowing the user to select the current date.
|
void |
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 . |
void |
setShowWeekends(java.lang.Boolean showWeekends)
Whether weekend days should be shown.
|
void |
setSkinImgDir(java.lang.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 |
setTimeItemProperties(TimeItem timeItemProperties)
Custom properties to apply to the
time field used for
editing the time portion of the date. |
void |
setTimeItemTitle(java.lang.String timeItemTitle)
Title for the
time field . |
void |
setTodayButtonHeight(java.lang.Integer todayButtonHeight)
If set specifies a fixed height for the Today and Cancel buttons.
|
void |
setTodayButtonTitle(java.lang.String todayButtonTitle)
Title for "Today" button.
|
void |
setUse24HourTime(java.lang.Boolean use24HourTime)
When showing the
time field , whether the TimeItem should be set to use 24-hour time. |
void |
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. |
void |
setWeekendDays(int... weekendDays)
An array of integer day-numbers that should be considered to be weekend days by this DateChooser instance.
|
void |
setWeekendHeaderStyle(java.lang.String weekendHeaderStyle)
Optional CSS style applied to the day-of-week headers for weekend days.
|
void |
setWeekFieldTitle(java.lang.String weekFieldTitle)
Title for the
week field in the date grid. |
void |
setWeekHeaderStyle(java.lang.String weekHeaderStyle)
Base CSS style applied to the header of the
fiscal or
calendar week column in the calendar view . |
void |
setWeekMenuStyle(java.lang.String weekMenuStyle)
Style for the pop-up week menu.
|
void |
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, 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, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoDraw, getAutoMaskComponents, getAutoParent, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, 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, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getProportionalResizeModifiers, getProportionalResizing, 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, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, 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, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, removeChild, removeChild, removePeer, removePeer, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeFonts, resizeFonts, resizeFonts, resizeIcons, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoDraw, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, 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, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeavePageSpace, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setProportionalResizeModifiers, setProportionalResizing, 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, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, 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, applyFactoryProperties, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, 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 void setAlternateStyleSuffix(java.lang.String alternateStyleSuffix)
alternateWeekStyles
.alternateStyleSuffix
- New alternateStyleSuffix value. Default value is "Dark"public java.lang.String getAlternateStyleSuffix()
alternateWeekStyles
.public void setAlternateWeekStyles(java.lang.Boolean alternateWeekStyles)
alternateStyleSuffix
appended to it.alternateWeekStyles
- New alternateWeekStyles value. Default value is nullpublic 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 void setApplyButtonTitle(java.lang.String applyButtonTitle)
Apply
button.applyButtonTitle
- New applyButtonTitle value. Default value is "Apply"public java.lang.String getApplyButtonTitle()
Apply
button.public void setBaseBottomButtonStyle(java.lang.String baseBottomButtonStyle)
baseButtonStyle
is used.baseBottomButtonStyle
- New baseBottomButtonStyle value. Default value is nullCSSStyleName
public java.lang.String getBaseBottomButtonStyle()
baseButtonStyle
is used.CSSStyleName
public void 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"CSSStyleName
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 void 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"CSSStyleName
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 void setBaseNavButtonStyle(java.lang.String baseNavButtonStyle)
baseButtonStyle
is used.baseNavButtonStyle
- New baseNavButtonStyle value. Default value is nullCSSStyleName
public java.lang.String getBaseNavButtonStyle()
baseButtonStyle
is used.CSSStyleName
public void 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"CSSStyleName
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 void 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"CSSStyleName
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 void setBaseWeekStyle(java.lang.String baseWeekStyle)
fiscal week
column
.baseWeekStyle
- New baseWeekStyle value. Default value is "dateChooserWeekCell"CSSStyleName
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 void 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)java.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 void setCancelButtonTitle(java.lang.String cancelButtonTitle)
cancelButtonTitle
- New cancelButtonTitle value. Default value is "Cancel"public java.lang.String getCancelButtonTitle()
public void 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 nullpublic 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 void setCloseOnEscapeKeypress(boolean closeOnEscapeKeypress) throws java.lang.IllegalStateException
closeOnEscapeKeypress
- New closeOnEscapeKeypress value. Default value is falsejava.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 void setDayNameLength(int dayNameLength) throws java.lang.IllegalStateException
dayNameLength
- New dayNameLength value. Default value is 2java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getDayNameLength()
public void setDisabledDates(java.util.Date... disabledDates)
disabledDates
- New disabledDates value. Default value is nullpublic java.util.Date[] getDisabledDates()
public void setDisabledWeekdayStyle(java.lang.String disabledWeekdayStyle)
disabled
.disabledWeekdayStyle
- New disabledWeekdayStyle value. Default value is "dateChooserDisabledWeekday"CSSStyleName
public java.lang.String getDisabledWeekdayStyle()
disabled
.CSSStyleName
public void setDisabledWeekendStyle(java.lang.String disabledWeekendStyle)
disabled
.disabledWeekendStyle
- New disabledWeekendStyle value. Default value is "dateChooserDisabledWeekend"CSSStyleName
public java.lang.String getDisabledWeekendStyle()
disabled
.CSSStyleName
public void 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 falsejava.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 void setEndYear(int endYear) throws java.lang.IllegalStateException
endYear
- New endYear value. Default value is 2020java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getEndYear()
public void setFirstDayOfWeek(int firstDayOfWeek) throws java.lang.IllegalStateException
global setter
.firstDayOfWeek
- New firstDayOfWeek value. Default value is 0java.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 void setFiscalYearFieldTitle(java.lang.String fiscalYearFieldTitle)
fiscal year
field in the date
grid.fiscalYearFieldTitle
- New fiscalYearFieldTitle value. Default value is "Year"public java.lang.String getFiscalYearFieldTitle()
fiscal year
field in the date
grid.public void setFiscalYearHeaderStyle(java.lang.String fiscalYearHeaderStyle)
fiscal year column
in the calendar view
.fiscalYearHeaderStyle
- New fiscalYearHeaderStyle value. Default value is nullCSSStyleName
public java.lang.String getFiscalYearHeaderStyle()
fiscal year column
in the calendar view
.CSSStyleName
public void setHeaderHeight(java.lang.Integer headerHeight) throws java.lang.IllegalStateException
navigationLayoutHeight
headerHeight
- New headerHeight value. Default value is 20java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getHeaderHeight()
navigationLayoutHeight
public void setHeaderStyle(java.lang.String headerStyle)
weekendHeaderStyle
headerStyle
- New headerStyle value. Default value is "dateChooserButtonDisabled"CSSStyleName
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 void setMonthMenuStyle(java.lang.String monthMenuStyle) throws java.lang.IllegalStateException
monthMenuStyle
- New monthMenuStyle value. Default value is "dateChooserMonthMenu"java.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 void setNavigationLayoutHeight(int navigationLayoutHeight) throws java.lang.IllegalStateException
navigationLayoutHeight
navigation area
, containing the
various buttons for navigating the calendar view
.navigationLayoutHeight
- New navigationLayoutHeight value. Default value is 20java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getNavigationLayoutHeight()
navigationLayoutHeight
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 void setNextMonthIcon(java.lang.String nextMonthIcon)
nextMonthIcon
- New nextMonthIcon value. Default value is "[SKIN]arrow_right.gif"URL
public java.lang.String getNextMonthIcon()
URL
public void setNextMonthIconHeight(int nextMonthIconHeight)
nextMonthIconHeight
- New nextMonthIconHeight value. Default value is 7public int getNextMonthIconHeight()
public void setNextMonthIconRTL(java.lang.String nextMonthIconRTL)
nextMonthIconRTL
- New nextMonthIconRTL value. Default value is nullURL
public java.lang.String getNextMonthIconRTL()
URL
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
- New nextMonthIconWidth value. 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 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 void setNextYearIcon(java.lang.String nextYearIcon) throws java.lang.IllegalStateException
nextYearIcon
- New nextYearIcon value. Default value is "[SKIN]doubleArrow_right.gif"java.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 void setNextYearIconHeight(int nextYearIconHeight)
nextYearIconHeight
- New nextYearIconHeight value. Default value is 7public int getNextYearIconHeight()
public void 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 nulljava.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 void setNextYearIconWidth(int nextYearIconWidth) throws java.lang.IllegalStateException
nextYearIconWidth
- New nextYearIconWidth value. Default value is 14java.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 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 void setPrevMonthIcon(java.lang.String prevMonthIcon) throws java.lang.IllegalStateException
prevMonthIcon
- New prevMonthIcon value. Default value is "[SKIN]arrow_left.gif"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdURL
public java.lang.String getPrevMonthIcon()
URL
public void setPrevMonthIconHeight(int prevMonthIconHeight) throws java.lang.IllegalStateException
prevMonthIconHeight
- New prevMonthIconHeight value. Default value is 7java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevMonthIconHeight()
public void 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 nulljava.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 void setPrevMonthIconWidth(int prevMonthIconWidth) throws java.lang.IllegalStateException
prevMonthIconWidth
- New prevMonthIconWidth value. Default value is 7java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevMonthIconWidth()
public void setPrevYearIcon(java.lang.String prevYearIcon) throws java.lang.IllegalStateException
prevYearIcon
- New prevYearIcon value. Default value is "[SKIN]doubleArrow_left.gif"java.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 void setPrevYearIconHeight(int prevYearIconHeight) throws java.lang.IllegalStateException
prevYearIconHeight
- New prevYearIconHeight value. Default value is 7java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevYearIconHeight()
public void 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 nullcom.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 void setPrevYearIconWidth(int prevYearIconWidth) throws java.lang.IllegalStateException
prevYearIconWidth
- New prevYearIconWidth value. Default value is 14java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getPrevYearIconWidth()
public void setSelectedWeekStyle(java.lang.String selectedWeekStyle)
week chooser
).selectedWeekStyle
- New selectedWeekStyle value. Default value is "dateChooserSelectedWeek"CSSStyleName
public java.lang.String getSelectedWeekStyle()
week chooser
).CSSStyleName
public void setShowApplyButton(java.lang.Boolean showApplyButton)
applyButton
will be displayed.showApplyButton
- New showApplyButton value. Default value is nullpublic java.lang.Boolean getShowApplyButton()
applyButton
will be displayed.public void setShowCancelButton(java.lang.Boolean showCancelButton)
showCancelButton
- New showCancelButton value. Default value is falsepublic java.lang.Boolean getShowCancelButton()
public void setShowFiscalYearChooser(java.lang.Boolean showFiscalYearChooser)
showFiscalYearChooser
- New showFiscalYearChooser value. Default value is falsepublic java.lang.Boolean getShowFiscalYearChooser()
public void 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 nullpublic java.lang.Boolean getShowSecondItem()
time field
, whether to show the "second"
picker. When unset, the second field is not shown.public void 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 nullpublic 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 void setShowTodayButton(java.lang.Boolean showTodayButton)
showTodayButton
- New showTodayButton value. Default value is truepublic java.lang.Boolean getShowTodayButton()
public void setShowWeekChooser(java.lang.Boolean showWeekChooser)
showFiscalYearChooser
.showWeekChooser
- New showWeekChooser value. Default value is falsepublic java.lang.Boolean getShowWeekChooser()
showFiscalYearChooser
.public void setShowWeekends(java.lang.Boolean showWeekends) throws java.lang.IllegalStateException
weekendDays
if set or by weekendDays
otherwise.showWeekends
- New showWeekends value. Default value is truejava.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 void setSkinImgDir(java.lang.String skinImgDir)
Note : This is an advanced setting
setSkinImgDir
in class Canvas
skinImgDir
- New skinImgDir value. Default value is "images/common/"SCImgURL
public java.lang.String getSkinImgDir()
getSkinImgDir
in class Canvas
SCImgURL
public void setStartYear(int startYear) throws java.lang.IllegalStateException
startYear
- New startYear value. Default value is 1995java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getStartYear()
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 void 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 nulljava.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 void setTimeItemTitle(java.lang.String timeItemTitle)
time field
.timeItemTitle
- New timeItemTitle value. Default value is "Time"public 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 void setTodayButtonHeight(java.lang.Integer todayButtonHeight)
todayButtonHeight
- New todayButtonHeight value. Default value is nullpublic java.lang.Integer getTodayButtonHeight()
public void setTodayButtonTitle(java.lang.String todayButtonTitle)
todayButtonTitle
- New todayButtonTitle value. Default value is "Today"public java.lang.String getTodayButtonTitle()
public void 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 truepublic java.lang.Boolean getUse24HourTime()
time field
, whether the TimeItem
should be set to use 24-hour time. The default is true.public void 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 truepublic 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 void setWeekendDays(int... weekendDays)
globally
.weekendDays
- New weekendDays value. Default value is nullVisibility overview and related methods
public int[] getWeekendDays()
globally
.Visibility overview and related methods
public void setWeekendHeaderStyle(java.lang.String weekendHeaderStyle)
headerStyle
will be applied to both weekdays and weekend days.weekendHeaderStyle
- New weekendHeaderStyle value. Default value is nullpublic java.lang.String getWeekendHeaderStyle()
headerStyle
will be applied to both weekdays and weekend days.public void setWeekFieldTitle(java.lang.String weekFieldTitle)
week
field in the date grid.weekFieldTitle
- New weekFieldTitle value. Default value is "Wk"public java.lang.String getWeekFieldTitle()
week
field in the date grid.public void setWeekHeaderStyle(java.lang.String weekHeaderStyle)
fiscal or
calendar week column
in the calendar view
.weekHeaderStyle
- New weekHeaderStyle value. Default value is nullCSSStyleName
public java.lang.String getWeekHeaderStyle()
fiscal or
calendar week column
in the calendar view
.CSSStyleName
public void setWeekMenuStyle(java.lang.String weekMenuStyle) throws java.lang.IllegalStateException
weekMenuStyle
- New weekMenuStyle value. Default value is "dateChooserWeekMenu"java.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 void setYearMenuStyle(java.lang.String yearMenuStyle) throws java.lang.IllegalStateException
yearMenuStyle
- New yearMenuStyle value. Default value is "dateChooserYearMenu"java.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)
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 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