public class SLCalendar extends SLBase
| Modifier | Constructor and Description |
|---|---|
protected |
SLCalendar(JtfObjectHandle handle,
Desktop desktop)
Creates a new SLCalendar with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSelectMultiple()
Gets whether multiple dates can be selected.
|
SLCalendarMode |
getDisplayMode()
Gets a value that indicates whether the calendar displays a month, year, or decade.
|
Date |
getSelectedDate()
Gets the currently selected date in the currently displayed view.
|
List<Date> |
getSelectedDates()
Gets a list of selected dates in the currently displayed view.
|
List<SLCalendarMode> |
getSupportedDisplayModes()
Gets a list of supported display modes.
|
boolean |
isSelectionRequired()
Gets whether at least one date has to be selected.
|
void |
selectDate(Date dateToSelect)
Selects the given date.
|
void |
selectDates(List<Date> dates)
Selects the given dates.
|
void |
selectRange(Date startDate,
Date endDate)
Selects a range of dates.
|
void |
switchToDecadeView()
Switches the calendar display mode to 'decade', if supported.
|
void |
switchToMonthView()
Switches the calendar display mode to 'month', if supported.
|
void |
switchToYearView()
Switches the calendar display mode to 'year', if supported.
|
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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected SLCalendar(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the SLCalendardesktop - the desktop on which this object livespublic void selectDate(Date dateToSelect)
dateToSelect - the date to selectpublic void selectDates(List<Date> dates)
This method will only work if the calendar supports the MultipleRange selection mode.
dates - the dates to selectpublic void selectRange(Date startDate, Date endDate)
startDate - the start date of the selectionendDate - the end date of the selectionpublic void switchToDecadeView()
public void switchToMonthView()
public void switchToYearView()
public boolean canSelectMultiple()
public SLCalendarMode getDisplayMode()
public boolean isSelectionRequired()
public Date getSelectedDate()
public List<Date> getSelectedDates()
public List<SLCalendarMode> getSupportedDisplayModes()
Copyright 2009-2012 Micro Focus. All Rights Reserved.