|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro TimedTrigger API. UI element that automatically and periodically triggers a UI element event with a defined delay. TimedTrigger is currently invisible like InvisibleElement, thus it ignores both its tooltip and its visibility. Nevertheless it occupies a cell in certain layouts like MatrixLayout. To use a timed trigger you have to bind its "onAction" event to an action and set its "delay" property to the desired delay in seconds. There are several ways to turn off a timed trigger. The most convenient way is to disable the action this trigger is bound to (like you would do with a button). Other possibilities are setting the delay to 0 or disabling the timed trigger like any other UI element. Caution: Triggering the action rudely interrupts user interactions!
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Field Summary | |
static int |
DEFAULT_DELAY
Default value of property delay. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
bindDelay(IWDAttributeInfo attributeInfo)
Binds property delay to the context attribute
specified by the given attribute info. |
void |
bindDelay(java.lang.String path)
Binds property delay to the context attribute
specified by path. |
java.lang.String |
bindingOfDelay()
Binding path of property delay. |
int |
getDelay()
Returns the value of the delay property. |
IWDAction |
getOnAction()
Returns the action to which the event onAction is mapped. |
IWDParameterMapping |
mappingOfOnAction()
Returns the parameter mapping of event onAction. |
void |
setDelay(int value)
Sets property delay to the new value. |
void |
setOnAction(IWDAction action)
Maps the event onAction to the given action. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Field Detail |
public static final int DEFAULT_DELAY
delay.| Method Detail |
public IWDAction getOnAction()
onAction is mapped.
The action to be triggered when the specified delay has passed.mappingOfOnAction()public void setOnAction(IWDAction action)
onAction to the given action.action - the action for the eventgetOnAction()public IWDParameterMapping mappingOfOnAction()
onAction.
To be accessible in a view controller, a UI element event parameter has to be mapped to a controller event handler parameter. This is done by defining a parameter mapping.
Event parameters:getOnAction()public void bindDelay(java.lang.String path)
delay to the context attribute
specified by path.path - the path of the context attribute to which the delay
property is boundpublic void bindDelay(IWDAttributeInfo attributeInfo)
delay to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
delay property is boundpublic java.lang.String bindingOfDelay()
delay.public int getDelay()
delay property.
The initial value is 0.
The delay in seconds before the specified action is fired; must not be negative. A delay of 0 means that the timer is off and no action is triggered. The delay counts from the moment the response is received by the client. Thus the timer is restarted on every roundtrip to the server, e.g. due to a user interaction.
Very short delays (e.g. below 5 seconds) must be handled with extreme care and might be deprecated in the future.setDelay(int)public void setDelay(int value)
delay to the new value.value - the new value of the delay propertygetDelay()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||