public class SLCalendar extends SLBase
Modifier | Constructor and Description |
---|---|
protected |
SLCalendar(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SLCalendar。
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSelectMultiple()
获取 是否可以选择多个日期。
|
SLCalendarMode |
getDisplayMode()
获取 表示日历是否显示月份、年份或旬的值。
|
Date |
getSelectedDate()
获取 当前所示视图中的当前所选日期。
|
List<Date> |
getSelectedDates()
获取 当前所示视图中的所选日期列表。
|
List<SLCalendarMode> |
getSupportedDisplayModes()
获取 受支持显示模式的列表。
|
boolean |
isSelectionRequired()
获取 是否至少选择一个日期。
|
void |
selectDate(Date dateToSelect)
选择指定日期。
|
void |
selectDates(List<Date> dates)
选择指定日期。
|
void |
selectRange(Date startDate,
Date endDate)
选择一系列日期。
|
void |
switchToDecadeView()
将日历显示模式切换为“十年”(如支持)。
|
void |
switchToMonthView()
将日历显示模式切换为“月”(如支持)。
|
void |
switchToYearView()
将日历显示模式切换为“年”(如支持)。
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAutomationId, getClassName, getName, getRawChildren, getRawChildren, isEnabled, isFocused, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, 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 SLCalendar(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SLCalendar 的句柄desktop
- 此对象所在的桌面public void selectDate(Date dateToSelect)
dateToSelect
- 可选择的日期public void selectDates(List<Date> dates)
此方法仅在日历支持 MultipleRange 选择模式时适用。
dates
- 可选择的日期public void selectRange(Date startDate, Date endDate)
startDate
- 选择的开始日期endDate
- 选择的结束日期public void switchToDecadeView()
public void switchToMonthView()
public void switchToYearView()
public boolean canSelectMultiple()
public SLCalendarMode getDisplayMode()
public boolean isSelectionRequired()
public Date getSelectedDate()
public List<SLCalendarMode> getSupportedDisplayModes()
Copyright 2009-2012 Micro Focus. All Rights Reserved.