org.zkoss.zkplus.databind
Class BindingSaveEvent

java.lang.Object
  extended by org.zkoss.zk.ui.event.Event
      extended by org.zkoss.zkplus.databind.BindingSaveEvent
All Implemented Interfaces:
java.io.Serializable

public class BindingSaveEvent
extends Event

Event used when DataBinder send "onBindingSave" events.

Since:
3.0.0
Author:
henrichen
See Also:
Serialized Form

Constructor Summary
BindingSaveEvent(java.lang.String name, Component target, Component reference, Binding binding, java.lang.Object value)
          Constructs a binding-relevant event.
 
Method Summary
 Binding getBinding()
          Gets the associate binding of this event.
 Component getReference()
          Gets the reference component that "trigger" sending of this event.
 java.lang.Object getValue()
          Gets the value to be saved after "onBindingSave" event.
 
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingSaveEvent

public BindingSaveEvent(java.lang.String name,
                        Component target,
                        Component reference,
                        Binding binding,
                        java.lang.Object value)
Constructs a binding-relevant event.

Parameters:
name - the event name
target - the target that receive the event
reference - the reference component that "trigger" the event
binding - the associated binding of this event.
value - the value associated with the binding.
Method Detail

getReference

public Component getReference()
Gets the reference component that "trigger" sending of this event.


getBinding

public Binding getBinding()
Gets the associate binding of this event. The property that causes the binding can be found by use of Binding.getExpression(). Furthermore, the bean can be retrieved by use of Binding.getBean(org.zkoss.zk.ui.Component).


getValue

public java.lang.Object getValue()
Gets the value to be saved after "onBindingSave" event.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo