public static final class JavaScriptFunctions.SAP
extends java.lang.Object
Constructor and Description |
---|
SAP() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getSAPClassNameById(boolean includeDependency)
According to the id, find the SAP Object and return its class name
depending on: sap_getObjectById() depending level: 1 depended by: nothing. |
(package private) static java.lang.String |
getSAPClassNames()
Recurrsiv function to get class name from metadata of an UI element.
The second parameter 'buffer' will contain all the class names. depending on: existing DOM and SAP APIs only. depending level: 0 |
static java.lang.String |
getSAPClassNamesById(boolean includeDependency)
According to the id, find the SAP Object and return its class name and super class names.
depending on: sap_getObjectById() getSAPClassNames() depending level: 1 depended by: nothing. |
(package private) static java.lang.String |
parse_sap_m_ListItemBase()
Convert a sap.m.ListItemBase object to a standard Item object with known properties
like id, disabled, label, value, selected and index depending on: nothing depending level: 0 |
(package private) static java.lang.String |
parse_sap_ui_commons_Tab()
Convert the sap.ui.commons.Tab object to a uniformed Tab object, which contains properties
like id, selected, label, disabled and index depending on: nothing depending level: 0 |
(package private) static java.lang.String |
parse_sap_ui_commons_TreeNode()
Convert a sap.ui.commons.TreeNode object to a standard TreeNode object with known properties
like id, disabled, label, expanded, selected depending on: nothing depending level: 0 |
(package private) static java.lang.String |
parse_sap_ui_core_Item()
Convert a sap.ui.core.Item object to a standard Item object with known properties
like id, disabled, label, value, selected and index depending on: nothing depending level: 0 |
static java.lang.String |
sap_ComboBox_getItems(boolean includeDependency)
Get a set of combo box options.
supported sap classes: ComboBox.SapSelect_ComboBox.supportedClazzes depending on: sap_getObject() parse_sap_ui_core_Item() JavaScriptFunctions.objectIsInstanceof() depending level: 1 |
static java.lang.String |
sap_ComboBox_setSelectedKey(boolean includeDependency)
Select a combo box option indicated by key.
supported sap classes: ComboBox.SapSelect_ComboBox.supportedClazzes depending on: sap_getObject() JavaScriptFunctions.objectIsInstanceof() depending level: 1 |
static java.lang.String |
sap_getDOMRef()
According to a sap object, find the related DOM Object and return it.
depending on: existing DOM and SAP APIs only. depending level: 0 |
static java.lang.String |
sap_getObject()
According to a dom object, find the related SAP Object and return it.
depending on: existing DOM and SAP APIs only. depending level: 0 |
static java.lang.String |
sap_getObjectById()
According to the id, find the SAP Object and return it.
depending on: existing DOM and SAP APIs only. depending level: 0 |
static java.lang.String |
sap_getProperty(boolean includeDependency,
java.lang.String propertyName)
Get the value of a property for the sap object and return it.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_m_List_getItems(boolean includeDependency)
Get a set of list box options for sap_m_List.
If some exception happens, this function will set the global errorcode and errormessage, in the java code, user can detect the global errorcode and errormessage to do some necessary work. depending on: sap_getObject() parse_sap_m_ListItemBase() JavaScriptFunctions.throw_error() depending level: 1 |
static java.lang.String |
sap_m_List_getSelectedItems(boolean includeDependency)
Get selected items for a List.
depending on: sap_getObject() parse_sap_m_ListItemBase() depending level: 1 |
static java.lang.String |
sap_m_List_setSelectedItemById(boolean includeDependency)
Set selected item by id for a listbox and fire the 'SelectionChange' event.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_m_SelectList_getItems(boolean includeDependency)
Get a set of list box options for sap_m_SelectList.
If some exception happens, this function will set the global errorcode and errormessage, in the java code, user can detect the global errorcode and errormessage to do some necessary work. depending on: sap_getObject() parse_sap_ui_core_Item() JavaScriptFunctions.throw_error() depending level: 1 |
static java.lang.String |
sap_m_SelectList_getSelectedItems(boolean includeDependency)
Get selected items for a SelectList.
depending on: sap_getObject() #parse_sap_ui.core.Item() depending level: 1 |
static java.lang.String |
sap_m_SelectList_setSelectedItemById(boolean includeDependency)
Set selected item by id for a SelectList and fire the 'SelectionChange' event.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_objectIsInstanceof(boolean includeDependency)
Test if object is an instance of certain classes.
depending on: JavaScriptFunctions.objectIsInstanceof() sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_commons_CheckBox_getChecked(boolean includeDependency)
Get the value of property 'checked'.
depending on: sap_getObject() JavaScriptFunctions.objectIsInstanceof()
depending level: 1 |
static java.lang.String |
sap_ui_commons_CheckBox_setChecked(boolean includeDependency)
Set the value of property 'checked'.
depending on: sap_getObject() JavaScriptFunctions.objectIsInstanceof()
depending level: 1 |
static java.lang.String |
sap_ui_commons_ListBox_getItems(boolean includeDependency)
Get a set of list box options for sap_ui_commons_ListBox
depending on: JavaScriptFunctions.throw_error() sap_getObject() parse_sap_ui_core_Item() depending level: 1 |
static java.lang.String |
sap_ui_commons_ListBox_getSelectedIndices(boolean includeDependency)
Get selected indices for a ListBox, the index is 0-based.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_commons_ListBox_scrollToIndex(boolean includeDependency)
Scroll to the item indicated by index in the list box.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_commons_ListBox_setSelectedIndex(boolean includeDependency)
Set selected index for a listbox and fire the 'select' event.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_commons_Menu_getItems(boolean includeDependency)
Get a hierarchical structure representing a Menu.
depending on: sap_getObject() sap_ui_commons_Menu_getItems_Rec(boolean) depending level: 2 |
static java.lang.String |
sap_ui_commons_TabStrip_getTabs(boolean includeDependency)
Get selected index for a tabcontrol.
depending on: sap_getObject() #sap_initializeTabObject() depending level: 1 |
static java.lang.String |
sap_ui_commons_TabStrip_setSelectedIndex(boolean includeDependency)
Set selected index for a tabcontrol and fire the 'select' event.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_commons_Tree_collapseAll(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_Tree_expandAll(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_Tree_getNodes_Rec(boolean includeDependency)
Generate a tree hierarchy structure from a sap tree object.
|
static java.lang.String |
sap_ui_commons_Tree_getNodes(boolean includeDependency)
Get all nodes content of a tree, the result is a tree hierarchy structure.
each tree node will contain 2 properties, children and parent. |
static java.lang.String |
sap_ui_commons_TreeNode_collapse(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_TreeNode_expand(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_TreeNode_getExpanded(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_TreeNode_getIsSelected(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_TreeNode_getSelectable(boolean includeDependency)
|
static java.lang.String |
sap_ui_commons_TreeNode_refresh(boolean includeDependency)
Get a sap.ui.commons.TreeNode object and covert it to a org.safs.selenium.webdriver.lib.model.TreeNode object.
depending on: sap_getObjectById() parse_sap_ui_commons_TreeNode() depending level: 1 |
static java.lang.String |
sap_ui_commons_TreeNode_select(boolean includeDependency)
Select a certain tree node, show it on the page and fire the related 'Select' event.
NOTE: Remember to call sap_ui_commons_Tree_expandAll() firstly!!! depending on: sap_getObjectById() depending level: 1 |
static java.lang.String |
sap_ui_commons_TreeNode_showOnPage(boolean includeDependency)
Show a tree node on the page.
NOTE: Remember to call sap_ui_commons_Tree_expandAll() firstly!!! depending on: sap_getObjectById() depending level: 1 |
static java.lang.String |
sap_ui_commons_xxx_getSelectedIndex(boolean includeDependency)
Get selected index for a ListBox or a TabStrip, the index is 0-based.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_core_Control_attachBrowserEvent(boolean includeDependency,
java.lang.String variable)
Attach a generic event callback to a javasript event for an object.
depending on: sap_getObject() JavaScriptFunctions.defineGenericEventCallBack(String) depending level: 1 |
static java.lang.String |
sap_ui_core_Control_detachBrowserEvent(boolean includeDependency,
java.lang.String variable)
Detach a generic event callback to a javasript event from an object.
depending on: sap_getObject() JavaScriptFunctions.removeGlobalVariable(String) depending level: 1 |
static java.lang.String |
sap_ui_core_ScrollBar_page(boolean includeDependency)
Pageup/PageDown the scrollbar according to the pages.
depending on: sap_getObject() depending level: 1 |
static java.lang.String |
sap_ui_core_ScrollBar_scroll(boolean includeDependency)
|
static java.lang.String |
sas_hc_ui_commons_pushmenu_PushMenu_getItems(boolean includeDependency)
Get a hierarchical structure representing a Menu.
depending on: sap_getObject() sas_hc_ui_commons_pushmenu_PushMenu_getItems_Rec(boolean) depending level: 2 |
static java.lang.String |
sas_hc_ui_commons_pushmenu_PushMenu_goHome(boolean includeDependency) |
public static java.lang.String sap_getProperty(boolean includeDependency, java.lang.String propertyName)
sap_getObject()
propertyName
- (Java) String, the property name.domelement
- (Javascript) Object, the dom-element used to find a SAP object.property
- (Javascript) String, the property name.public static java.lang.String sap_getDOMRef()
sapElement
- (Javascript) Object, the SAP object.public static java.lang.String sap_getObject()
domElement
- (Javascript) Object (WebElement), the dom object of the SAP object.public static java.lang.String sap_getObjectById()
id
- (Javascript) String, the html id of the SAP object.static java.lang.String getSAPClassNames()
buffer
- (Javascript) Array, a javascript array to contain class names.metadata
- (Javascript) sap.ui.base.Metadata, the runtime metadata for an UI element.public static java.lang.String sap_objectIsInstanceof(boolean includeDependency)
JavaScriptFunctions.objectIsInstanceof()
sap_getObject()
domelement
- (Javascript) Object, dom-element used to find a javascript object.clazzes
- (Javascript) Arraypublic static java.lang.String getSAPClassNamesById(boolean includeDependency)
sap_getObjectById()
getSAPClassNames()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.id
- (Javascript) String, the html id of the SAP object.classNames
- (Javascript) Array (out) , a javascript array to contain class names.public static java.lang.String getSAPClassNameById(boolean includeDependency)
sap_getObjectById()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.id
- (Javascript) String, the html id of the SAP object.public static java.lang.String sap_ComboBox_setSelectedKey(boolean includeDependency)
ComboBox.SapSelect_ComboBox.supportedClazzes
sap_getObject()
JavaScriptFunctions.objectIsInstanceof()
domelement
- (Javascript) Object, Dom Object is used to find a SAP object.key
- (Javascript) String, the option's key to set.public static java.lang.String sap_ComboBox_getItems(boolean includeDependency)
ComboBox.SapSelect_ComboBox.supportedClazzes
sap_getObject()
parse_sap_ui_core_Item()
JavaScriptFunctions.objectIsInstanceof()
domelement
- (Javascript) Object, Dom Object is used to find a SAP object.public static java.lang.String sap_ui_commons_xxx_getSelectedIndex(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.public static java.lang.String sap_ui_commons_ListBox_getSelectedIndices(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.public static java.lang.String sap_ui_commons_ListBox_setSelectedIndex(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.index
- (Javascript) int, the index to select, 0-based.public static java.lang.String sap_ui_commons_ListBox_scrollToIndex(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.index
- (Javascript) int, the index to scroll to, 0-based.public static java.lang.String sap_m_List_getItems(boolean includeDependency)
sap_getObject()
parse_sap_m_ListItemBase()
JavaScriptFunctions.throw_error()
domelement
- (Javascript) Object, List Dom Object is used to find a SAP object.public static java.lang.String sap_m_SelectList_getItems(boolean includeDependency)
sap_getObject()
parse_sap_ui_core_Item()
JavaScriptFunctions.throw_error()
domelement
- (Javascript) Object, List Dom Object is used to find a SAP object.public static java.lang.String sap_m_SelectList_getSelectedItems(boolean includeDependency)
sap_getObject()
#parse_sap_ui.core.Item()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.public static java.lang.String sap_m_SelectList_setSelectedItemById(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.id
- (Javascript) String, the id of the item to be selected.public static java.lang.String sap_m_List_getSelectedItems(boolean includeDependency)
sap_getObject()
parse_sap_m_ListItemBase()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.public static java.lang.String sap_m_List_setSelectedItemById(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.id
- (Javascript) String, the id of the item to be selected.public static java.lang.String sap_ui_commons_ListBox_getItems(boolean includeDependency)
JavaScriptFunctions.throw_error()
sap_getObject()
parse_sap_ui_core_Item()
domelement
- (Javascript) Object, List Dom Object is used to find a SAP object.public static java.lang.String sap_ui_commons_Menu_getItems(boolean includeDependency)
sap_getObject()
sap_ui_commons_Menu_getItems_Rec(boolean)
domelement
- (Javascript) Object, MenuBar Dom Object is used to find a SAP object.public static java.lang.String sas_hc_ui_commons_pushmenu_PushMenu_goHome(boolean includeDependency)
public static java.lang.String sas_hc_ui_commons_pushmenu_PushMenu_getItems(boolean includeDependency)
sap_getObject()
sas_hc_ui_commons_pushmenu_PushMenu_getItems_Rec(boolean)
domelement
- (Javascript) Object, PushMenu DOM Object is used to find a SAP object.public static java.lang.String sap_ui_commons_Tree_getNodes(boolean includeDependency)
sap_getObject()
sap_ui_commons_Tree_getNodes_Rec(boolean)
domelement
- (Javascript) Object, Tree Dom Object is used to find a SAP object.public static java.lang.String sap_ui_commons_Tree_getNodes_Rec(boolean includeDependency)
#parse_sap_ui_commons_TreeNode(boolean)
nodeObject
- (Javascript) Object, SAP Tree/TreeNode Object.node
- (Javascript) Object, has structure of org.safs.selenium.webdriver.lib.model.TreeNode
and represents the first parameter nodeObject, it will contain
all children of nodeObject.public static java.lang.String sap_ui_commons_Tree_collapseAll(boolean includeDependency)
treeId
- (Javascript) String, SAP Tree's ID.public static java.lang.String sap_ui_commons_Tree_expandAll(boolean includeDependency)
treeId
- (Javascript) String, SAP Tree's ID.public static java.lang.String sap_ui_commons_TreeNode_collapse(boolean includeDependency)
treeNodeId
- (Javascript) String, SAP Tree Node's ID.bCollapseChildren
- (Javascript) Boolean, if collapse the children of this node.public static java.lang.String sap_ui_commons_TreeNode_expand(boolean includeDependency)
treeNodeId
- (Javascript) String, SAP Tree Node's ID.bExpandChildren
- (Javascript) Boolean, if expand the children of this node.public static java.lang.String sap_ui_commons_TreeNode_select(boolean includeDependency)
sap_getObjectById()
treeId
- (Javascript) String, SAP Tree's ID.treeNodeId
- (Javascript) String, SAP Tree Node's ID.public static java.lang.String sap_ui_commons_TreeNode_showOnPage(boolean includeDependency)
sap_getObjectById()
treeNodeId
- (Javascript) String, SAP Tree Node's ID.public static java.lang.String sap_ui_commons_TreeNode_getIsSelected(boolean includeDependency)
treeNodeId
- (Javascript) String, SAP Tree Node's ID.public static java.lang.String sap_ui_commons_TreeNode_getExpanded(boolean includeDependency)
treeNodeId
- (Javascript) String, SAP Tree Node's ID.public static java.lang.String sap_ui_commons_TreeNode_getSelectable(boolean includeDependency)
treeNodeId
- (Javascript) String, SAP Tree Node's ID.public static java.lang.String sap_ui_commons_TreeNode_refresh(boolean includeDependency)
sap_getObjectById()
parse_sap_ui_commons_TreeNode()
treeNodeId
- (Javascript) String, SAP Tree Node's ID.static java.lang.String parse_sap_ui_core_Item()
itemobject
- (Javascript) Object, sap.ui.core.Item object or its subclass.index
- (Javascript) int, the index of the item within a combobox/list.selectedKeyArray
- (Javascript) Array, an array of 'selected key'. To compare with item's key.static java.lang.String parse_sap_m_ListItemBase()
itemobject
- (Javascript) Object, sap.m.ListItemBase object or its subclass.index
- (Javascript) int, the index of the item within a list.error
- (Javascript) Error, if some exception occursstatic java.lang.String parse_sap_ui_commons_TreeNode()
itemobject
- (Javascript) Object, sap.ui.commons.TreeNode object.public static java.lang.String sap_ui_core_ScrollBar_page(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.pages
- (Javascript) int, the pages to move for scrollbar.
positive --> pagedown; negative --> pageuppublic static java.lang.String sap_ui_core_ScrollBar_scroll(boolean includeDependency)
domelement
- (Javascript) Object, the dom-element used to find a SAP object.steps
- (Javascript) int, the steps to move for scrollbar.public static java.lang.String sap_ui_commons_CheckBox_setChecked(boolean includeDependency)
sap_getObject()
JavaScriptFunctions.objectIsInstanceof()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.bChecked
- (Javascript) boolean, the value to set.public static java.lang.String sap_ui_commons_CheckBox_getChecked(boolean includeDependency)
sap_getObject()
JavaScriptFunctions.objectIsInstanceof()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.public static java.lang.String sap_ui_core_Control_attachBrowserEvent(boolean includeDependency, java.lang.String variable)
sap_getObject()
JavaScriptFunctions.defineGenericEventCallBack(String)
includeDependency
- boolean, if true, will return the depended js as part of result.variable
- String, the javascript global variable name, used by the 'generic event callback'.domNode
- (Javascript) Object (WebElement), used to find a SAP object.eventname
- (Javascript) String, the event name, like 'click', 'blur' or 'mousedown' etc.public static java.lang.String sap_ui_core_Control_detachBrowserEvent(boolean includeDependency, java.lang.String variable)
sap_getObject()
JavaScriptFunctions.removeGlobalVariable(String)
includeDependency
- boolean, if true, will return the depended js as part of result.variable
- String, the javascript global variable name, used by the 'generic event callback'.domNode
- (Javascript) Object (WebElement), used to find a SAP object.eventname
- (Javascript) String, the event name, like 'click', 'blur' or 'mousedown' etc.public static java.lang.String sap_ui_commons_TabStrip_setSelectedIndex(boolean includeDependency)
sap_getObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.index
- (Javascript) int, the index to select, 0-based.static java.lang.String parse_sap_ui_commons_Tab()
tabobject
- (Javascript) Object, the SAP sap.ui.commons.Tab object.index
- (Javascript) int, the index of the SAP tab object within the tabcontrol.public static java.lang.String sap_ui_commons_TabStrip_getTabs(boolean includeDependency)
sap_getObject()
#sap_initializeTabObject()
domelement
- (Javascript) Object, the dom-element used to find a SAP object.Copyright © SAS Institute. All Rights Reserved.