Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Migrated to Confluence 5.3

...

Optionally, you may define the reverse action. It is implemented only if the formulated condition has not been met and the condition permits that the reverse action may be implemented (useInverse = true).


Image RemovedImage Added

XUI schema - Action

...

Type of action

Description

Change of model Property change action (propertyChange)

Sets the value of a data element anew. With the indication of a target in XPath statements, refers to a data element of a simple type. Thus, the new value is setformula result to every action target element. The model changes can be made on leaf nodes are applied on simple types only. If the XPath addresses a complex node, the action is ignored.

Visual event (uiAction) UI action

Triggers visual actions. That is, it displays (fades in) or hides (fades out) components, color changes and so on. A target is indicated by an XPath statement. The statement refers to a data element and consequently its representation types. Then, the method (methodName) is executed. The definition of the method name is compliant with the Java Beans Definition

General Action Formula action (generalAction)

Triggers any kind of action.

Java Action Implementation action  (javaActionImpl)Calls a java action implementation (must implement Action interface) through java reflection api. Be sure this class implmenents the jaxfront action interface (com.jaxfront.core.rule.Action)

...

Codeblock
languagehtml/xml
titleThe following example shows an action with a visual event
<javaActionImpl className="com.mypackage.myClass">
<param name="name1" type="String">my String<param/>
</javaActionImpl> 

Hinweis

The parameters are used to find an according constructor in your action implementation class. In the case above the must be a constructor with on string parameter value:

Codeblock
themeEclipse
languagejava
linenumberstrue
package com.mypackage
import com.jaxfront.core.rule.Action;

public class MyClass implements Action
	public MyClass(String anyString) {
		
	}
}