public static final class JavaScriptFunctions.DOJO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
dijit
"window.dijit" by default unless overridden by a djConfig/dojoConfig.scopemap.
|
static java.lang.String |
DIJIT_DEFAULT
"window.dijit"
|
static java.lang.String |
DIJIT_KEY
"dijit"
|
static java.lang.String |
dojo
"window.dojo" by default unless overridden by a djConfig/dojoConfig.scopemap.
|
static java.lang.String |
DOJO_DEFAULT
"window.dojo"
|
static java.lang.String |
DOJO_KEY
"dojo"
|
static java.lang.String |
dojox
"window.dojox" by default unless overridden by a djConfig/dojoConfig.scopemap.
|
static java.lang.String |
DOJOX_DEFAULT
"window.dojox"
|
static java.lang.String |
DOJOX_KEY
"dojox"
|
Constructor and Description |
---|
DOJO() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
dojo_dijit_layout_StackContainer_getSelectedIndex(boolean includeDependency)
Get the index of selected item in a StackContainer widget.
depending on: getDojoObject(boolean) depending level: 2 |
static java.lang.String |
dojo_dijit_layout_StackContainer_selectChild(boolean includeDependency)
Select a direct children of the StackContainer widget.
depending on: getDojoObject(boolean) depending level: 2 |
static java.lang.String |
dojo_dijit_layout_TabContainerBase_getChildren(boolean includeDependency)
Get direct children of the TabContainerBase widget.
depending on: dojo_dijit_WidgetBase_getChildren(boolean) dojo_initializeTabObject() depending level: 3 |
(package private) static java.lang.String |
dojo_dijit_WidgetBase_getChildren(boolean includeDependency)
Get direct children of the WidgetBase widget.
Should not be called by Selenium, it will cost long time to return dojo objects. depending on: getDojoObject(boolean) depending level: 2 |
static java.lang.String |
dojo_dijit_WidgetBase_on(boolean includeDependency,
java.lang.String handleVariable)
Attach a generic event callback to a javasript event for an object.
depending on: getDojoObject(boolean) JavaScriptFunctions.defineGenericEventCallBack(String) depending level: 2 |
static java.lang.String |
dojo_dijit_WidgetBase_set(boolean includeDependency)
According to the id or CSS Selector, find the dijit/_WidgetBase object, then call its
API set(property, value) to set value to a property. depending on: getDojoObject(boolean) depending level: 2 depended by: nothing. |
static java.lang.String |
dojo_FormSelectWidget_getOptions(boolean includeDependency)
According to the id or CSS Selector, find the dijit/_FormSelectWidget object, then call its
API getOptions(valueOrIdx) to get the option/options. depending on: getDojoObject(boolean) parse_dijit_form_Select_Option() depending level: 2 depended by: nothing. |
static java.lang.String |
dojo_get_property(boolean includeDependency)
get the value of an attribut of a dojo object.
depending on: getDojoObject(boolean) depending level: 2 |
static java.lang.String |
dojo_handle_remove(boolean includeDependency,
java.lang.String handleVariable)
Detach a generic event callback to a javasript event from an object.
depending on: JavaScriptFunctions.removeGlobalVariable(String) depending level: 1 |
static java.lang.String |
dojo_HasDropDown_closeDropDown(boolean includeDependency)
According to the id or CSS Selector, find the dijit/_HasDropDown object, then call its
API closeDropDown(boolean) to close the associated drop-down menu. The CSS Selector can be something like table[@class='dijitReset dijitStretch dijitButtonContents'] or #id depending on: getDojoObject(boolean) depending level: 2 depended by: nothing. |
static java.lang.String |
dojo_HasDropDown_isLoaded(boolean includeDependency)
According to the dom-element, find the dijit/_HasDropDown object, then call its
API isLoaded() and return the boolean result. The CSS Selector can be something like table[@class='dijitReset dijitStretch dijitButtonContents'] or #id depending on: getDojoObject(boolean) depending level: 2 depended by: nothing. |
static java.lang.String |
dojo_HasDropDown_loadAndOpenDropDown(boolean includeDependency)
According to the id or CSS Selector, find the dijit/_HasDropDown object, then call its
API loadAndOpenDropDown() to load the associated drop-down menu and open it. The CSS Selector can be something like table[@class='dijitReset dijitStretch dijitButtonContents'] or #id depending on: getDojoObject(boolean) depending level: 2 depended by: nothing. |
static java.lang.String |
dojo_HasDropDown_openDropDown(boolean includeDependency)
According to the id or CSS Selector, find the dijit/_HasDropDown object, then call its
API openDropDown() to open the associated drop-down menu. The CSS Selector can be something like table[@class='dijitReset dijitStretch dijitButtonContents'] or #id depending on: getDojoObject(boolean) depending level: 2 depended by: nothing. |
(package private) static java.lang.String |
dojo_initializeTabObject()
Convert the dojo tab object to a uniformed Tab object, which contains properties
like id, selected, disabled, label and index depending on: nothing depending level: 0 |
static java.lang.String |
dojo_objectIsInstanceof(boolean includeDependency)
Test if object is an instance of certain classes.
depending on: JavaScriptFunctions.objectIsInstanceof() getDojoObject(boolean) depending level: 1 |
static java.lang.String |
dojo_store_api_Store_query(boolean includeDependency)
According to the dom element, find a dojo object (for example dijit/form/FilteringSelect or dijit/form/ComboBox)
which contains a property 'store', and this property's value is an instance of dojo/store/api/Store or subclass, then call its API query(query, options) to get a set of data from the store. depending on: getDojoObject(boolean) parse_dijit_form_AutoCompleterMixin_Item(boolean) depending level: 2 depended by: nothing. |
static java.lang.String |
getDojoClassName(boolean includeDependency)
According to the dom element, find the Dojo Object and return its class name (declaredClass).
depending on: #getDojoObject() depending level: 1 depended by: nothing. |
static java.lang.String |
getDojoClassNameByCSSSelector(boolean includeDependency)
According to the CSS Selector, find the DOJO Object and return its class name (declaredClass).
The CSS Selector can be something like table[@class='dijitReset dijitStretch dijitButtonContents'] depending on: getDojoObjectsByCSSSelector(boolean) depending level: 2 depended by: nothing. |
static java.lang.String |
getDojoClassNameById(boolean includeDependency)
According to the id, find the Dojo Object and return its class name (declaredClass).
depending on: getDojoObjectById() depending level: 1 depended by: nothing. |
static java.lang.String |
getDojoObject(boolean includeDependency)
According to a dom object, find the related DOJO Object and return it.
depending on: getDojoObjectById() getDojoObjectByDomNode() depending level: 1 depended by: nothing. |
static java.lang.String |
getDojoObjectByDomNode()
According to the DOM node, find the DOJO Object and return it.
depending on: existing DOM and DOJO APIs only. depending level: 0 |
static java.lang.String |
getDojoObjectById()
According to the id, find the DOJO Object and return it.
depending on: existing DOM and DOJO APIs only. depending level: 0 |
static java.lang.String |
getDojoObjectsByCSSSelector(boolean includeDependency)
According to the CSS Selector, find the DOJO Objects and return them.
depending on: getDomNodesByCSSSelector() getDojoObjectByDomNode() depending level: 1 depended by: nothing. |
static java.lang.String |
getDojoScopemap()
When executed, should return a Map object with keys "dojo", "dijit", and "dojox".
Dojo libraries not present in the browser will not have keys in the Map. Values of these keys are usually "dojo", "dijit", and "dojox"; respectively. |
static java.lang.String |
getDomNodesByCSSSelector()
According to the CSS Selector, find the DOM Objects and return them.
The CSS Selector can be something like table[@class='dijitReset dijitStretch dijitButtonContents'] or #id This javascript use dojo.query() to get DOM node, please refer to link http://dojotoolkit.org/reference-guide/1.9/dojo/query.html depending on: existing DOM and DOJO APIs only. depending level: 0 |
(package private) static java.lang.String |
parse_dijit_form_AutoCompleterMixin_Item(boolean includeDependency)
Convert the dijit.form._AutoCompleterMixin's item object to a uniformed Option object, which contains properties
like id, selected, label, disabled and value depending on: nothing JavaScriptFunctions.compareObject(List) JavaScriptFunctions.isType() depending level: 1 |
(package private) static java.lang.String |
parse_dijit_form_Select_Option()
Convert the dijit.form.Select's option object to a uniformed Option object, which contains properties
like selected, label, disabled and value depending on: nothing depending level: 0 |
public static final java.lang.String DOJO_KEY
public static final java.lang.String DIJIT_KEY
public static final java.lang.String DOJOX_KEY
public static final java.lang.String DOJO_DEFAULT
public static final java.lang.String DIJIT_DEFAULT
public static final java.lang.String DOJOX_DEFAULT
public static java.lang.String dojo
public static java.lang.String dijit
public static java.lang.String dojox
public static java.lang.String getDojoScopemap()
public static java.lang.String getDojoObjectById()
id
- (Javascript) String, the html id of the DOJO object.public static java.lang.String getDojoObjectByDomNode()
domNode
- (Javascript) Object, the DOM Object of the DOJO object.public static java.lang.String getDomNodesByCSSSelector()
cssselector
- (Javascript) String, the 'css selector' used to search the DOJO object.context
- (Javascript) String/Object, An optional context to limit the searching scope.public static java.lang.String getDojoObject(boolean includeDependency)
getDojoObjectById()
getDojoObjectByDomNode()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domElement
- (Javascript) Object (WebElement), the dom object of the DOJO object.public static java.lang.String dojo_objectIsInstanceof(boolean includeDependency)
JavaScriptFunctions.objectIsInstanceof()
getDojoObject(boolean)
domelement
- (Javascript) Object, dom-element used to find a javascript object.clazzes
- (Javascript) Arraypublic static java.lang.String getDojoObjectsByCSSSelector(boolean includeDependency)
getDomNodesByCSSSelector()
getDojoObjectByDomNode()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.cssselector
- (Javascript) String, the 'css selector' used to search the DOJO object.context
- (Javascript) String/Object, An optional context to limit the searching scope.public static java.lang.String getDojoClassName(boolean includeDependency)
#getDojoObject()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom element of the DOJO object.public static java.lang.String getDojoClassNameById(boolean includeDependency)
getDojoObjectById()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.id
- (Javascript) String, the html id of the DOJO object.public static java.lang.String getDojoClassNameByCSSSelector(boolean includeDependency)
getDojoObjectsByCSSSelector(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.cssselector
- (Javascript) String, the 'css selector' used to search the DOJO object.context
- (Javascript) String/Object, An optional context to limit the searching scope.public static java.lang.String dojo_get_property(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO object.property
- (Javascript) String, the property namepublic static java.lang.String dojo_HasDropDown_closeDropDown(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO dijit._HasDropDown object.focusButton
- (Javascript) boolean, If true, refocuses the button widgetpublic static java.lang.String dojo_HasDropDown_isLoaded(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO dijit._HasDropDown object.public static java.lang.String dojo_HasDropDown_loadAndOpenDropDown(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO dijit._HasDropDown object.public static java.lang.String dojo_HasDropDown_openDropDown(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO dijit._HasDropDown object.public static java.lang.String dojo_FormSelectWidget_getOptions(boolean includeDependency)
getDojoObject(boolean)
parse_dijit_form_Select_Option()
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO dijit._HasDropDown object.valueOrIdx
- (Javascript) anything, static java.lang.String parse_dijit_form_Select_Option()
optionObject
- (Javascript) Object, the dijit.form.Select's option object.index
- (Javascript) int, the index of the DOJO option object within the Select object.public static java.lang.String dojo_dijit_WidgetBase_set(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of the DOJO dijit._HasDropDown object.property
- (Javascript) String, the property namevalue
- (Javascript) anything, the value to set to the propertypublic static java.lang.String dojo_store_api_Store_query(boolean includeDependency)
getDojoObject(boolean)
parse_dijit_form_AutoCompleterMixin_Item(boolean)
includeDependency
- boolean, if true the output string will contain the depending javascript functions.domelement
- (Javascript) Object, the dom-element of of the DOJO dijit._HasDropDown object.query
- (Javascript) String|Object|Function, The query to use for retrieving objects from the store.options
- (Javascript) dojo/store/api/Store.QueryOptions, Optional, The optional arguments to apply to the resultset.static java.lang.String parse_dijit_form_AutoCompleterMixin_Item(boolean includeDependency)
JavaScriptFunctions.compareObject(List)
JavaScriptFunctions.isType()
optionObject
- (Javascript) Object, the dijit.form._AutoCompleterMixin's item object.index
- (Javascript) int, the index of the DOJO item object within the Store object.selectedItemArray
- (Javascript) Array, an array of selected dijit.form._AutoCompleterMixin's item object.public static java.lang.String dojo_dijit_WidgetBase_on(boolean includeDependency, java.lang.String handleVariable)
getDojoObject(boolean)
JavaScriptFunctions.defineGenericEventCallBack(String)
includeDependency
- boolean, if true, will return the depended js as part of result.handleVariable
- String, the javascript global variable name, used by the 'generic event callback'.
It will also be used to generate the 'callback function name' and 'callback handle variable name'domelement
- (Javascript) Object, the dom-element of DOJO object.eventname
- (Javascript) String, the event name, like 'click', 'blur' or 'mousedown' etc.public static java.lang.String dojo_handle_remove(boolean includeDependency, java.lang.String handleVariable)
JavaScriptFunctions.removeGlobalVariable(String)
includeDependency
- boolean, if true, will return the depended js as part of result.variable
- String, the javascript global variable name, used to store the event-listener handle.static java.lang.String dojo_dijit_WidgetBase_getChildren(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true, will return the depended js as part of result.domelement
- (Javascript) Object, the dom-element of DOJO object.static java.lang.String dojo_initializeTabObject()
tabobject
- (Javascript) Object, the DOJO tab object.index
- (Javascript) int, the index of the DOJO tab object.public static java.lang.String dojo_dijit_layout_TabContainerBase_getChildren(boolean includeDependency)
dojo_dijit_WidgetBase_getChildren(boolean)
dojo_initializeTabObject()
includeDependency
- boolean, if true, will return the depended js as part of result.domelement
- (Javascript) Object, the dom-element of DOJO object.public static java.lang.String dojo_dijit_layout_StackContainer_selectChild(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true, will return the depended js as part of result.container
- (Javascript) Object, the dom-element of DOJO object.childId
- (Javascript) String, the id of the child to select.public static java.lang.String dojo_dijit_layout_StackContainer_getSelectedIndex(boolean includeDependency)
getDojoObject(boolean)
includeDependency
- boolean, if true, will return the depended js as part of result.container
- (Javascript) Object, the dom-element of DOJO object.Copyright © SAS Institute. All Rights Reserved.