public class FlexDateField extends FlexComboBase
当用户单击控件边界框内的任意位置时,DateChooser 控件将弹出并显示当天所属月份的日期。如果未选择任何日期,则文本字段为空,同时 DateChooser 控件中显示当天日期所属月份。
Modifier | Constructor and Description |
---|---|
protected |
FlexDateField(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexDateField。
|
Modifier and Type | Method and Description |
---|---|
void |
change(Date newDate)
选择或更改日期且 DateChooser 控件关闭时发送。
|
List<String> |
getDisabledDays()
获取 一周中可禁用的天。
|
List<String> |
getDisabledRanges()
获取 禁用的一天或多天。
|
int |
getDisplayedMonth()
获取 DateChooser 控件中显示的月份。
|
int |
getDisplayedYear()
获取 DateChooser 控件中显示的年份。
|
int |
getFirstDayOfWeek()
获取 可在 DateChooser 控件的第一列显示的星期(0-6,其中 0 为 dayNames 数组的第一个元素)。
|
List<Color> |
getHeaderColors()
获取 DateChooser 控件顶部区段的颜色。
|
int |
getMaxYear()
获取 控件中可选的最近年份。
|
int |
getMinYear()
获取 控件中可选的第一个年份。
|
Color |
getRollOverColor()
获取 用户将鼠标指针放在 DateChooser 控件中的日期上方时日期的突出显示区域的颜色。
|
Date |
getSelectedDate()
获取 日期与在 DateChooser 控件中选择的日期相同。
|
Color |
getTodayColor()
获取 DateChooser 控件中今日日期的突出显示颜色。
|
boolean |
isShowToday()
获取 DateChooser 控件中突出显示的日期。
|
boolean |
isYearNavigationEnabled()
获取 是否有可用的年份向上和向下按钮以进行导航。
|
void |
scrollDate(FlexDateScrollDetail detail)
DateChooserEvent.SCROLL 常数定义了滚动事件的事件对象的类型属性值。
|
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
- 可确定 FlexDateField 的句柄desktop
- 此对象所在的桌面public void change(Date newDate)
newDate
- 控件中选择的日期public void scrollDate(FlexDateScrollDetail detail)
detail
- 滚动方向public int getDisplayedMonth()
public int getDisplayedYear()
public int getFirstDayOfWeek()
public List<Color> getHeaderColors()
自 3.0 版本开始不再使用:使用 dateChooserStyleName
public int getMaxYear()
public int getMinYear()
public Color getRollOverColor()
public Date getSelectedDate()
public boolean isShowToday()
如果为 true,则指定 DateChooser 控件中突出显示此今日。此属性的设置操作会立即更改 DateChooser 控件的外观。默认值为 true。
public Color getTodayColor()
public boolean isYearNavigationEnabled()
如果为 true,则向上和向下按钮显示在所显示年份的右侧。您可使用这些按钮更改当前年份。这些按钮显示在区域设置中年份(日期格式为年在月前)的左侧。默认值为 false。
Copyright 2009-2012 Micro Focus. All Rights Reserved.