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()
|
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 |
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, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEditProxyConstructor, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, 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, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEditProxyConstructor, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, 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, 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, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, encloses, focus, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, 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, 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, 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, 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, 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, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, 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, getShadowDepth, getShadowImage, getShadowOffset, getShadowSoftness, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStyleName, getTabIndex, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUseBackMask, getUseDragMask, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, 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, isDrawn, 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, resizeBy, resizeControls, resizeFonts, resizeFonts, resizeTo, resizeTo, revealChild, revealChild, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, 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, 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, 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, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, 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, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setRect, setRect, setRedrawOnResize, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowDepth, setShadowImage, setShadowOffset, setShadowSoftness, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStyleName, setTabIndex, setTitle, setTooltip, setTop, setTop, setUseBackMask, setUseDragMask, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateEditNode, updateHover, updateHover, updateShadow, 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, getById, getByJSObject, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, 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
- Default value is "Dark"public java.lang.String getAlternateStyleSuffix()
alternateWeekStyles
.public void setAlternateWeekStyles(java.lang.Boolean alternateWeekStyles)
alternateStyleSuffix
appended to it.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.
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
- Default value is "Apply"public java.lang.String getApplyButtonTitle()
Apply
button.public void setBaseBottomButtonStyle(java.lang.String baseBottomButtonStyle)
baseButtonStyle
is used.baseBottomButtonStyle
- CSSStyleName . Default value is null
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
- CSSStyleName . Default value is "dateChooserButton"
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
- CSSStyleName . Default value is "dateChooserFiscalYearCell"
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
- CSSStyleName . Default value is null
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
- CSSStyleName . Default value is "dateChooserWeekday"
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
- CSSStyleName . Default value is "dateChooserWeekend"
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
- CSSStyleName . Default value is "dateChooserWeekCell"
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 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
- 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
- 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
- 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
- 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
- Default value is nullpublic java.util.Date[] getDisabledDates()
public void setDisabledWeekdayStyle(java.lang.String disabledWeekdayStyle)
disabled
.disabledWeekdayStyle
- CSSStyleName . Default value is "dateChooserDisabledWeekday"
public java.lang.String getDisabledWeekdayStyle()
disabled
.CSSStyleName
public void setDisabledWeekendStyle(java.lang.String disabledWeekendStyle)
disabled
.disabledWeekendStyle
- 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
if set or by weekendDays
otherwise.
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
if set or by weekendDays
otherwise.
public void setEndYear(int endYear) throws java.lang.IllegalStateException
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
- 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
- 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
- CSSStyleName . Default value is null
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
- 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
- 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.
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
- java.lang.IllegalStateException
- this property cannot be changed after the component has been createdCSSStyleName . Default value is "dateChooserMonthMenu"
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
- 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
- Default value is "[SKIN]arrow_right.gif"public java.lang.String getNextMonthIcon()
public void setNextMonthIconHeight(int nextMonthIconHeight)
nextMonthIconHeight
- Default value is 7public int getNextMonthIconHeight()
public void setNextMonthIconRTL(java.lang.String nextMonthIconRTL)
nextMonthIconRTL
- Default value is nullpublic java.lang.String getNextMonthIconRTL()
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
- 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
- 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()
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setNextYearIconHeight(int 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
- 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.com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setNextYearIconWidth(int nextYearIconWidth) throws java.lang.IllegalStateException
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.
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
- 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()
public void setPrevMonthIconHeight(int prevMonthIconHeight) throws java.lang.IllegalStateException
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
- 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.public void setPrevMonthIconWidth(int prevMonthIconWidth) throws java.lang.IllegalStateException
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
- 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()
com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setPrevYearIconHeight(int prevYearIconHeight) throws java.lang.IllegalStateException
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
- 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.com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon
public void setPrevYearIconWidth(int prevYearIconWidth) throws java.lang.IllegalStateException
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
- 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
- Default value is nullpublic java.lang.Boolean getShowApplyButton()
applyButton
will be displayed.public void setShowCancelButton(java.lang.Boolean showCancelButton)
showCancelButton
- Default value is falsepublic java.lang.Boolean getShowCancelButton()
public void setShowFiscalYearChooser(java.lang.Boolean 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
- 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
- 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
- Default value is truepublic java.lang.Boolean getShowTodayButton()
public void setShowWeekChooser(java.lang.Boolean showWeekChooser)
showFiscalYearChooser
.showWeekChooser
- 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
- 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
- Default value is "images/common/"Images overview and related methods
public java.lang.String getSkinImgDir()
getSkinImgDir
in class Canvas
Images overview and related methods
public void setStartYear(int startYear) throws java.lang.IllegalStateException
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
.
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
- 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
- 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
- Default value is nullpublic java.lang.Integer getTodayButtonHeight()
public void setTodayButtonTitle(java.lang.String todayButtonTitle)
todayButtonTitle
- 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
- 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
- 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
- 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
- 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
- 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
- CSSStyleName . Default value is null
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
- java.lang.IllegalStateException
- this property cannot be changed after the component has been createdCSSStyleName . Default value is "dateChooserWeekMenu"
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
- java.lang.IllegalStateException
- this property cannot be changed after the component has been createdCSSStyleName . Default value is "dateChooserYearMenu"
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