Class Trigger

java.lang.Object
org.eclnt.jsfserver.elements.util.Trigger
All Implemented Interfaces:
Serializable

public class Trigger extends Object implements Serializable
Certain client side components provide some trigger to activate certain functions one time. The corresponding *TRIGGER attribute of the component is implemented by an instance of this Trigger class.

Example: an animation component (e.g. CAPTUREANIMITOR) requires a trigger to start the animation.

Remember that the UI processing is happending on client side! The Trigger-instance provides an internal trigger value (long value) which is automatically changed when calling the method trigger() - so that the response to the client side is containing an updated value. The component checks the value for not being 0 and for having changed. If there was a change of the trigger value then this is the signal for the component to execute its function (e.g. in case of the animation component: to execute the animation.

The trigger value is automatically set back to 0 after the response processing phase.
See Also:
  • Constructor Details

    • Trigger

      public Trigger()
  • Method Details

    • trigger

      public void trigger()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTriggerValue

      public Long getTriggerValue()