public class SapCalendar extends SapShell implements ISapContextMenuable
Modifier | Constructor and Description |
---|---|
protected |
SapCalendar(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapCalendar。
|
Modifier and Type | Method and Description |
---|---|
void |
contextMenu(CalendarCellType contextMenuId,
int contextMenuCellRow,
int contextMenuCellColumn,
String startDate,
String endDate)
打开上下文菜单。
|
SapContextMenu |
getCurrentContextMenu()
获取 当前上下文菜单。
|
int |
getDay()
获取 当前选择的月日。
|
String |
getEndSelection()
获取 选择间隔的末尾。
|
String |
getFirstVisibleDate()
获取 Calendar 控件中可见的最早日期。
|
String |
getLastVisibleDate()
获取 Calendar 控件中可见的最晚日期。
|
int |
getMonth()
获取 当前选择的年度月份。
|
String |
getSelectionInterval()
获取 当前选择的间隔。
|
String |
getStartSelection()
获取 选择间隔的开头。
|
int |
getWeek()
获取 当前选择的年度周数。
|
int |
getYear()
获取 当前选择的年份。
|
void |
selectContextMenuItem(String functionCode)
选择控件上下文菜单中的项目。
|
void |
selectContextMenuItemByPosition(String positionDescription)
利用此方法可通过项目位置选择上下文菜单项目。
|
void |
selectContextMenuItemByText(String text)
使用项目文本和可能的更高层菜单选择上下文菜单的菜单项目。
|
void |
setFirstVisibleDate(String firstVisibleDate)
设置 Calendar 控件中可见的最早日期。
|
void |
setFocusDate(String focusDate)
设置要关注的日期。
|
void |
setSelectionInterval(String 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
- 可确定 SapCalendar 的句柄desktop
- 此对象所在的桌面public void contextMenu(CalendarCellType contextMenuId, int contextMenuCellRow, int contextMenuCellColumn, String startDate, String endDate)
contextMenuId
- 表示单元格类型,在此单元格中打开了上下文菜单contextMenuCellRow
- 上下文菜单单元格行。. The value is zero-based.contextMenuCellColumn
- 上下文菜单单元格列。. The value is zero-based.startDate
- 开始日期endDate
- 结束日期public void selectContextMenuItem(String functionCode)
selectContextMenuItem
in interface ISapContextMenuable
functionCode
- 函数代码public void selectContextMenuItemByPosition(String positionDescription)
selectContextMenuItemByPosition
in interface ISapContextMenuable
positionDescription
- 包含项目路径的字符串。如果上下文菜单项目在顶层菜单中,则这仅是项目的零基索引。否则,菜单中的位置和各自子菜单应用“|”分隔串联。public void selectContextMenuItemByText(String text)
selectContextMenuItemByText
in interface ISapContextMenuable
text
- 菜单项目文本public void setFirstVisibleDate(String firstVisibleDate)
firstVisibleDate
- 以字符串表示的日期。例如:“20020228”。public void setFocusDate(String focusDate)
focusDate
- 要作为字符串关注的日期 (YYYYMMDD)public void setSelectionInterval(String interval)
interval
- 通过两个用逗号分隔的串联日期字符串 (YYYYMMDD) 表示的间隔public 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.