Class ButtonReference
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ElementReference
com.aquima.interactions.test.templates.composer.ButtonReference
Template for a reference to a button.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionButtonReference
(ButtonTemplate element) Constructs a button reference to the specified template. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method may be used to add an action to a button.protected String[]
This method returns the button template that is referred to.protected String
getEvent()
protected boolean
void
This method may be used to override the button event.void
setRefreshButton
(boolean isRefresh) This method may be used to indicate if the button should trigger a refresh event.com.aquima.interactions.composer.ds.IReferenceDS
This method converts the template to a data source that can be used to initialize a containment reference.Methods inherited from class com.aquima.interactions.test.templates.composer.ElementReference
addPresentationStyle, addPresentationStyle, getCondition, getContentStyle, getName, getPresentationStyleCondition, getPresentationStyles, getReadonlyCondition, setCondition, setPresentationStyle, setPresentationStyle, setReadonly, setReadonlyCondition
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ButtonReference
Constructs a button reference to the specified template.- Parameters:
element
- The button template the reference is defined for.
-
-
Method Details
-
getButton
This method returns the button template that is referred to.- Returns:
- the button template that is referred to.
-
addAction
This method may be used to add an action to a button.
- Parameters:
action
- The action that should be added to the button.
-
getActions
-
getEvent
-
setEvent
This method may be used to override the button event.- Parameters:
buttonEvent
- the button event.
-
setRefreshButton
public void setRefreshButton(boolean isRefresh) This method may be used to indicate if the button should trigger a refresh event.- Parameters:
isRefresh
- Boolean indicating if the button should trigger a refresh event.
-
isRefresh
protected boolean isRefresh() -
toDataSource
public com.aquima.interactions.composer.ds.IReferenceDS toDataSource()Description copied from class:ElementReference
This method converts the template to a data source that can be used to initialize a containment reference.- Specified by:
toDataSource
in classElementReference
- Returns:
- a data source that can be used to initialize a containment reference.
-