public class FlexDateField extends FlexComboBase
When the user clicks anywhere inside the bounding box of the control, a DateChooser control pops up and shows the dates in the month of the current date. If no date is selected, the text field is blank and the month of the current date is displayed in the DateChooser control.
Modifier | Constructor and Description |
---|---|
protected |
FlexDateField(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexDateField with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
change(Date newDate)
Dispatched when a date is selected or changed, and the DateChooser control closes.
|
List<String> |
getDisabledDays()
Gets the days to disable in a week.
|
List<String> |
getDisabledRanges()
Gets the disabled single and multiple days.
|
int |
getDisplayedMonth()
Gets the month that is displayed in the DateChooser control.
|
int |
getDisplayedYear()
Gets the year that is displayed in the DateChooser control.
|
int |
getFirstDayOfWeek()
Gets the day of the week (0-6, where 0 is the first element of the dayNames Array) to display in the first column of the DateChooser control.
|
List<Color> |
getHeaderColors()
Gets the colors of the band at the top of the DateChooser control.
|
int |
getMaxYear()
Gets the last year selectable in the control.
|
int |
getMinYear()
Gets the first year selectable in the control.
|
Color |
getRollOverColor()
Gets the color of the highlight area of the date when the user holds the mouse pointer over a date in the DateChooser control.
|
Date |
getSelectedDate()
Gets the date as selected in the DateChooser control.
|
Color |
getTodayColor()
Gets the color of the highlight of today's date in the DateChooser control.
|
boolean |
isShowToday()
Gets the day highlighted in the DateChooser control.
|
boolean |
isYearNavigationEnabled()
Gets whether the year up and down buttons are available for navigation.
|
void |
scrollDate(FlexDateScrollDetail detail)
The DateChooserEvent.SCROLL constant defines the value of the type property of the event object for a scrollevent.
|
close, close, getBackgroundAlpha, getBackgroundColor, getBackgroundImage, getBackgroundSize, getColor, getDisabledColor, getFillAlphas, getFillColors, getFontFamily, getFontSize, getFontStyle, getFontWeight, getHighlightColor, getRestrict, getSelectedIndex, getText, getTextAlign, getTextDecoration, getTextIndent, input, isDropShadowEnabled, isEditable, open, open, scroll, selectText, type, type
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected FlexDateField(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexDateFielddesktop
- the desktop on which this object livespublic void change(Date newDate)
newDate
- the date selected in the controlpublic void scrollDate(FlexDateScrollDetail detail)
detail
- the scroll directionpublic List<String> getDisabledRanges()
public int getDisplayedMonth()
public int getDisplayedYear()
public int getFirstDayOfWeek()
public List<Color> getHeaderColors()
Deprecated Since 3.0: Use dateChooserStyleName
public int getMaxYear()
public int getMinYear()
public Color getRollOverColor()
public Date getSelectedDate()
public boolean isShowToday()
If true, specifies that today is highlighted in the DateChooser control. Setting this property immediately changes the appearance of the DateChooser control. The default value is true.
public Color getTodayColor()
public boolean isYearNavigationEnabled()
When true an up and down button appear to the right of the displayed year. You can use these buttons to change the current year. These button appear to the left of the year in locales where year comes before the month in the date format. The default value is false.
Copyright 2009-2012 Micro Focus. All Rights Reserved.