Class IdentifiedEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    IndexResultItemEvent

    public class IdentifiedEvent
    extends org.zkoss.zk.ui.event.Event
    Event that stores the id of the sender. To be extended by other events.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IdentifiedEvent​(java.lang.String name, org.zkoss.zk.ui.Component target, java.lang.Object data, java.lang.String componentId)
      Constructor.
      IdentifiedEvent​(java.lang.String name, org.zkoss.zk.ui.Component target, java.lang.String componentId)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean idsMatch​(java.lang.String otherId)
      Checks if the specified id matches the id of the component that sent this 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

      • IdentifiedEvent

        public IdentifiedEvent​(java.lang.String name,
                               org.zkoss.zk.ui.Component target,
                               java.lang.String componentId)
        Constructor.
        Parameters:
        name - event name
        target - event target
        componentId - sender component id
      • IdentifiedEvent

        public IdentifiedEvent​(java.lang.String name,
                               org.zkoss.zk.ui.Component target,
                               java.lang.Object data,
                               java.lang.String componentId)
        Constructor.
        Parameters:
        name - event name
        target - event target
        data - event data
        componentId - sender component id
    • Method Detail

      • idsMatch

        public boolean idsMatch​(java.lang.String otherId)
        Checks if the specified id matches the id of the component that sent this event.
        Parameters:
        otherId - other id
        Returns:
        true, if ids match