public class SapCalendar extends SapShell implements ISapContextMenuable
Modifier | Constructor and Description |
---|---|
protected |
SapCalendar(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapCalendar with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
contextMenu(CalendarCellType contextMenuId,
int contextMenuCellRow,
int contextMenuCellColumn,
String startDate,
String endDate)
Opens a context menu.
|
SapContextMenu |
getCurrentContextMenu()
Gets the current context menu.
|
int |
getDay()
Gets the day of the month that is currently selected.
|
String |
getEndSelection()
Gets the end of the selection interval.
|
String |
getFirstVisibleDate()
Gets the earliest date visible in the calendar control.
|
String |
getLastVisibleDate()
Gets the last date visible in the calendar control.
|
int |
getMonth()
Gets the month of the year that is currently selected.
|
String |
getSelectionInterval()
Gets the interval that is currently selected.
|
String |
getStartSelection()
Gets the start of the selection interval.
|
int |
getWeek()
Gets the week of the year that is currently selected.
|
int |
getYear()
Gets the year that is currently selected.
|
void |
selectContextMenuItem(String functionCode)
Select an item from the controls context menu.
|
void |
selectContextMenuItemByPosition(String positionDescription)
This method allows you to select a context menu item using the position of the item.
|
void |
selectContextMenuItemByText(String text)
Select a menu item of a context menu using the text of the item and possible higher level menus.
|
void |
setFirstVisibleDate(String firstVisibleDate)
Sets the earliest date visible in the calendar control.
|
void |
setFocusDate(String focusDate)
Sets the date to be focused.
|
void |
setSelectionInterval(String interval)
Selects the specified interval.
|
isDragDropSupported
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenu
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 SapCalendar(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SapCalendardesktop
- the desktop on which this object livespublic void contextMenu(CalendarCellType contextMenuId, int contextMenuCellRow, int contextMenuCellColumn, String startDate, String endDate)
contextMenuId
- indicates the cell type of the cell in which the context menu was openedcontextMenuCellRow
- the context menu cell row. The value is zero-based.contextMenuCellColumn
- the context menu cell column. The value is zero-based.startDate
- the begin dateendDate
- the end datepublic void selectContextMenuItem(String functionCode)
selectContextMenuItem
in interface ISapContextMenuable
functionCode
- the function codepublic void selectContextMenuItemByPosition(String positionDescription)
selectContextMenuItemByPosition
in interface ISapContextMenuable
positionDescription
- a string containing the path to the item. If the context menu item is on the top level menu, this is just the zero-base index of the item. Otherwise, the positions on the menu and respective submenus should be concatenated, separated by "|".public void selectContextMenuItemByText(String text)
selectContextMenuItemByText
in interface ISapContextMenuable
text
- the menu item textpublic void setFirstVisibleDate(String firstVisibleDate)
firstVisibleDate
- the date as string. example: "20020228".public void setFocusDate(String focusDate)
focusDate
- the date to be focused as string (YYYYMMDD)public void setSelectionInterval(String interval)
interval
- the interval represented by two concatenated date strings (YYYYMMDD) separated by a commapublic SapContextMenu getCurrentContextMenu()
public int getDay()
public String getEndSelection()
public String getFirstVisibleDate()
public String getLastVisibleDate()
public int getMonth()
public String getSelectionInterval()
public String getStartSelection()
public int getWeek()
public int getYear()
Copyright 2009-2012 Micro Focus. All Rights Reserved.