public class DateChooser extends VLayout implements HasDataChangedHandlers
DateItem
class.config, configOnly, id, isElementSet, 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()
|
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.
|
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() |
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. |
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 |
setCancelButtonTitle(java.lang.String cancelButtonTitle)
Title for the cancellation button.
|
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.
|
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj) |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.DateChooserLogicalStructure s) |
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 |
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 |
todayClick()
Fired when the user clicks the Today button.
|
setDefaultProperties, setLogicalStructure
addMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOffset, getMemberOverlap, getMembers, getMembersMargin, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, membersChanged, onInit_Layout, onInit, reflow, reflow, reflowNow, removeMember, removeMembers, reorderMember, reorderMembers, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMember
addChild, addChild, addChild, addChild, addChild, 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, addScrolledHandler, addShowContextMenuHandler, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, focus, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoDraw, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getContentElement, getContents, getContextMenu, getCursor, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getKeepInParentRect, getLayoutAlign, getLeft, getLeftAsString, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMenuConstructor, getMinHeight, getMinWidth, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowDepth, getShadowImage, getShadowOffset, getShadowSoftness, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapResizeToGrid, getSnapTo, getSnapToGrid, getSnapVDirection, getSnapVGap, getStyleName, getTabIndex, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUseBackMask, getUseOpacityFilter, getValuesManager, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isDrawn, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, parentResized, printComponents, redraw, redraw, removeChild, removeChild, removePeer, removePeer, resizeBy, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAllowExternalFilters, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoDraw, setAutoHeight, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBottom, setCanAcceptDrop, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setCanvasItem, setChildren, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setContents, setContextMenu, setCursor, setDataPath, setDefaultHeight, setDefaultProperties, setDefaultWidth, setDisabled, setDisabledCursor, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlPosition, setImage, setImage, setIsGroup, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMenuConstructor, setMinHeight, setMinWidth, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setOpacity, setPadding, setPageLeft, setPageTop, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setRect, setRect, setRedrawOnResize, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setScrollbarConstructor, setScrollbarSize, setShadowDepth, setShadowImage, setShadowOffset, setShadowSoftness, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setSmoothFade, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToGrid, setSnapTo, setSnapToGrid, setSnapVDirection, setSnapVGap, setStyleName, setTabIndex, setTitle, setTooltip, setTop, setTop, setUseBackMask, setUseOpacityFilter, setValuesManager, setVisibility, setVisible, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateHover, updateHover, updateShadow, visibleAtPoint, willAcceptDrop
addDrawHandler, 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, getElement, getElement, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDragTracker, setElement, setHtmlElement, setID, 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
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents
public DateChooser()
public DateChooser(com.google.gwt.core.client.JavaScriptObject jsObj)
public static DateChooser getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
in class VLayout
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.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.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
public void setAlternateStyleSuffix(java.lang.String alternateStyleSuffix)
alternateWeekStyles
.alternateStyleSuffix
- . See String
. Default value is "Dark"public java.lang.String getAlternateStyleSuffix()
alternateWeekStyles
.String
public void setAlternateWeekStyles(java.lang.Boolean alternateWeekStyles)
alternateStyleSuffix
appended to it.alternateWeekStyles
- alternateWeekStyles 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.
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
- . See String
. Default value is "Apply"public java.lang.String getApplyButtonTitle()
Apply
button.String
public void setBaseBottomButtonStyle(java.lang.String baseBottomButtonStyle)
baseButtonStyle
is used.baseBottomButtonStyle
- . See CSSStyleName
. Default value is nullpublic java.lang.String getBaseBottomButtonStyle()
baseButtonStyle
is used.CSSStyleName
public void setBaseButtonStyle(java.lang.String baseButtonStyle)
baseButtonStyle
- . See CSSStyleName
. Default value is "dateChooserButton"public java.lang.String getBaseButtonStyle()
CSSStyleName
public void setBaseFiscalYearStyle(java.lang.String baseFiscalYearStyle)
fiscal
year column
.baseFiscalYearStyle
- . See CSSStyleName
. Default value is "dateChooserFiscalYearCell"public java.lang.String getBaseFiscalYearStyle()
fiscal
year column
.CSSStyleName
public void setBaseNavButtonStyle(java.lang.String baseNavButtonStyle)
baseButtonStyle
is used.baseNavButtonStyle
- . See CSSStyleName
. Default value is nullpublic java.lang.String getBaseNavButtonStyle()
baseButtonStyle
is used.CSSStyleName
public void setBaseWeekdayStyle(java.lang.String baseWeekdayStyle)
baseButtonStyle
.baseWeekdayStyle
- . See CSSStyleName
. Default value is "dateChooserWeekday"public java.lang.String getBaseWeekdayStyle()
baseButtonStyle
.CSSStyleName
public void setBaseWeekendStyle(java.lang.String baseWeekendStyle)
baseWeekdayStyle
.baseWeekendStyle
- . See CSSStyleName
. Default value is "dateChooserWeekend"public java.lang.String getBaseWeekendStyle()
baseWeekdayStyle
.CSSStyleName
public void setBaseWeekStyle(java.lang.String baseWeekStyle)
fiscal week
column
.baseWeekStyle
- . See CSSStyleName
. Default value is "dateChooserWeekCell"public java.lang.String getBaseWeekStyle()
fiscal week
column
.CSSStyleName
public HLayout getButtonLayout() throws java.lang.IllegalStateException
HLayout
, rendered below the date grid
, and showing the Today
, Cancel
and, when working with "datetime" values, Apply
buttons.
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 getCancelButton() throws java.lang.IllegalStateException
calendar grid
which, when clicked, closes
the DateChooser without selecting a value.
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
- . See String
. Default value is "Cancel"public java.lang.String getCancelButtonTitle()
String
public void setCloseOnEscapeKeypress(boolean closeOnEscapeKeypress) throws java.lang.IllegalStateException
closeOnEscapeKeypress
- closeOnEscapeKeypress 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.
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
- dayNameLength 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
- disabledDates Default value is nullpublic java.util.Date[] getDisabledDates()
public void setDisabledWeekdayStyle(java.lang.String disabledWeekdayStyle)
disabled
.disabledWeekdayStyle
- . See CSSStyleName
. Default value is "dateChooserDisabledWeekday"public java.lang.String getDisabledWeekdayStyle()
disabled
.CSSStyleName
public void setDisabledWeekendStyle(java.lang.String disabledWeekendStyle)
disabled
.disabledWeekendStyle
- . See CSSStyleName
. Default value is "dateChooserDisabledWeekend"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
.
disableWeekends
- disableWeekends 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
.
public void setEndYear(int endYear) throws java.lang.IllegalStateException
endYear
- endYear 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
- firstDayOfWeek 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.
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
- . See String
. Default value is "Year"public java.lang.String getFiscalYearFieldTitle()
fiscal year
field in the date grid.String
public void setFiscalYearHeaderStyle(java.lang.String fiscalYearHeaderStyle)
fiscal year column
in the calendar view
.fiscalYearHeaderStyle
- . See CSSStyleName
. Default value is nullpublic 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
- headerHeight 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
- . See CSSStyleName
. Default value is "dateChooserButtonDisabled"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.
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
- . See CSSStyleName
. Default value is "dateChooserMonthMenu"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getMonthMenuStyle()
CSSStyleName
public HLayout getNavigationLayout() throws java.lang.IllegalStateException
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
.
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
- navigationLayoutHeight 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.
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
- . See String
. Default value is "[SKIN]arrow_right.gif"public java.lang.String getNextMonthIcon()
String
public void setNextMonthIconHeight(int nextMonthIconHeight)
nextMonthIconHeight
- nextMonthIconHeight Default value is 7public int getNextMonthIconHeight()
public void setNextMonthIconRTL(java.lang.String nextMonthIconRTL)
nextMonthIconRTL
- . See String
. Default value is nullpublic java.lang.String getNextMonthIconRTL()
String
public void setNextMonthIconWidth(int nextMonthIconWidth)
Page.isRTL
is true. If not
set, and the page is in RTL mode, the nextMonthIcon
will be used in place of the prevMonthIcon
and vice
versa.nextMonthIconWidth
- nextMonthIconWidth Default value is 7public int getNextMonthIconWidth()
Page.isRTL
is true. If not
set, and the page is in RTL mode, the nextMonthIcon
will be used in place of the prevMonthIcon
and vice
versa.public IButton getNextYearButton() throws java.lang.IllegalStateException
navigation layout
that shifts
the calendar view forward by a year.
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
- . See String
. 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
public java.lang.String getNextYearIcon()
String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setNextYearIconHeight(int nextYearIconHeight)
nextYearIconHeight
- nextYearIconHeight Default value is 7public int getNextYearIconHeight()
public void setNextYearIconRTL(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
- . See String
. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
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.String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setNextYearIconWidth(int nextYearIconWidth) throws java.lang.IllegalStateException
nextYearIconWidth
- nextYearIconWidth 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.
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.
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
- . See String
. Default value is "[SKIN]arrow_left.gif"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getPrevMonthIcon()
String
public void setPrevMonthIconHeight(int prevMonthIconHeight) throws java.lang.IllegalStateException
prevMonthIconHeight
- prevMonthIconHeight 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
- . See String
. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic 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.String
public void setPrevMonthIconWidth(int prevMonthIconWidth) throws java.lang.IllegalStateException
prevMonthIconWidth
- prevMonthIconWidth 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
- . See String
. 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
public java.lang.String getPrevYearIcon()
String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setPrevYearIconHeight(int prevYearIconHeight) throws java.lang.IllegalStateException
prevYearIconHeight
- prevYearIconHeight 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
- . See String
. Default value is nullcom.smartgwt.client.widgets.DateChooser#setShowDoubleYearIcon
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.String
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setPrevYearIconWidth(int prevYearIconWidth) throws java.lang.IllegalStateException
prevYearIconWidth
- prevYearIconWidth 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
- . See CSSStyleName
. Default value is "dateChooserSelectedWeek"public java.lang.String getSelectedWeekStyle()
week chooser
).CSSStyleName
public void setShowApplyButton(java.lang.Boolean showApplyButton)
applyButton
will be displayed.showApplyButton
- showApplyButton Default value is nullpublic java.lang.Boolean getShowApplyButton()
applyButton
will be displayed.public void setShowCancelButton(java.lang.Boolean showCancelButton)
showCancelButton
- showCancelButton Default value is falsepublic java.lang.Boolean getShowCancelButton()
public void setShowFiscalYearChooser(java.lang.Boolean showFiscalYearChooser)
showFiscalYearChooser
- showFiscalYearChooser 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
- showSecondItem 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".showTimeItem
- showTimeItem 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".public void setShowTodayButton(java.lang.Boolean showTodayButton)
showTodayButton
- showTodayButton Default value is truepublic java.lang.Boolean getShowTodayButton()
public void setShowWeekChooser(java.lang.Boolean showWeekChooser)
showFiscalYearChooser
.showWeekChooser
- showWeekChooser Default value is falsepublic java.lang.Boolean getShowWeekChooser()
showFiscalYearChooser
.public void setShowWeekends(java.lang.Boolean showWeekends) throws java.lang.IllegalStateException
weekendDays
.showWeekends
- showWeekends Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowWeekends()
weekendDays
.public void setSkinImgDir(java.lang.String skinImgDir)
Note : This is an advanced setting
setSkinImgDir
in class Canvas
skinImgDir
- . See String
. Default value is "images/common/"Images overview and related methods
public java.lang.String getSkinImgDir()
getSkinImgDir
in class Canvas
String
Images overview and related methods
public void setStartYear(int startYear) throws java.lang.IllegalStateException
startYear
- startYear 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
.
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
- timeItemProperties 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
- . See String
. Default value is "Time"public java.lang.String getTimeItemTitle()
time field
.String
public IButton getTodayButton() throws java.lang.IllegalStateException
calendar grid
which, when clicked, navigates
the calendar to today.
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
- todayButtonHeight Default value is nullpublic java.lang.Integer getTodayButtonHeight()
public void setTodayButtonTitle(java.lang.String todayButtonTitle)
todayButtonTitle
- . See String
. Default value is "Today"public java.lang.String getTodayButtonTitle()
String
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
- use24HourTime 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
- useFirstDayOfFiscalWeek 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.
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 setWeekendHeaderStyle(java.lang.String weekendHeaderStyle)
headerStyle
will be applied to both weekdays and weekend days.weekendHeaderStyle
- . See String
. Default value is nullpublic java.lang.String getWeekendHeaderStyle()
headerStyle
will be applied to both weekdays and weekend days.String
public void setWeekFieldTitle(java.lang.String weekFieldTitle)
week
field in the date grid.weekFieldTitle
- . See String
. Default value is "Wk"public java.lang.String getWeekFieldTitle()
week
field in the date grid.String
public void setWeekHeaderStyle(java.lang.String weekHeaderStyle)
fiscal or
calendar week column
in the calendar view
.weekHeaderStyle
- . See CSSStyleName
. Default value is nullpublic 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
- . See CSSStyleName
. Default value is "dateChooserWeekMenu"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getWeekMenuStyle()
CSSStyleName
public IButton getYearChooserButton() throws java.lang.IllegalStateException
navigation layout
that shows
a picker for selecting a specific calendar year.
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
- . See CSSStyleName
. Default value is "dateChooserYearMenu"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic 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
_link{Date.getFiscalCalendar, global fiscal calendar} is used.public void setFiscalCalendar(FiscalCalendar fiscalCalendar)
FiscalCalendar
object that will be used by this DateChooser. If unset, the
_link{Date.getFiscalCalendar, global fiscal calendar} is used.fiscalCalendar
- the fiscal calendar for this chooserpublic void todayClick()
public static void setDefaultProperties(DateChooser dateChooserProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
dateChooserProperties
- properties that should be used as new defaults when instances of this class are createdpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.DateChooserLogicalStructure s)
public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class VLayout