Class IdentifiedEvent

java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.IdentifiedEvent
All Implemented Interfaces:
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:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    idsMatch(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 Details

    • IdentifiedEvent

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

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

    • idsMatch

      public boolean idsMatch(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