Class WindowGroupChangeEvent


  • public class WindowGroupChangeEvent
    extends java.lang.Object
    Helper class for Populating values from the ACK of a window 'group-changed' payload
    Since:
    9/4/14
    Author:
    wche
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMemberOf()
      Which group array the window that the event listener was registered on is included in.
      java.lang.String getName()
      Name of the window
      java.lang.String getReason()
      The reason this event was triggered.
      java.util.List<Window> getSourceGroup()
      All the windows in the group the sourceWindow originated from
      java.lang.String getSourceWindowAppUuid()
      The UUID of the application the sourceWindow belongs to.
      java.lang.String getSourceWindowName()
      The name of the sourcewindow.
      java.util.List<Window> getTargetGroup()
      All the windows in the group the targetWindow orginated from
      java.lang.String getTargetWindowAppUuid()
      The UUID of the application the targetWindow belongs to.
      java.lang.String getTargetWindowName()
      The name of the targetWindow.
      java.lang.String getUuid()
      The UUID of the application the window belongs to
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WindowGroupChangeEvent

        public WindowGroupChangeEvent​(Ack payload,
                                      DesktopConnection desktopConnection)
                               throws org.json.JSONException
        Constructor
        Parameters:
        payload - JSONObject payload
        desktopConnection - desktop connection
        Throws:
        org.json.JSONException
    • Method Detail

      • getMemberOf

        public java.lang.String getMemberOf()
        Which group array the window that the event listener was registered on is included in. Possible values: 'source' The window is included in sourceGroup 'target' The window is included in targetGroup 'nothing' The window is not included in sourceGroup nor targetGroup,
        Returns:
        value of memberOf
      • getName

        public java.lang.String getName()
        Name of the window
        Returns:
        value of name
      • getReason

        public java.lang.String getReason()
        The reason this event was triggered. Possible values: 'leave' A window has left the group due to a leave or merge with group. 'join' A window has joined the group. 'merge' Two groups have been merged together. 'disband' There are no other windows in the group
        Returns:
        value of reason
      • getSourceGroup

        public java.util.List<Window> getSourceGroup()
        All the windows in the group the sourceWindow originated from
        Returns:
        list of Windows
      • getSourceWindowAppUuid

        public java.lang.String getSourceWindowAppUuid()
        The UUID of the application the sourceWindow belongs to. The source window is the window in which (merge/join/leave)group(s) was called.
        Returns:
        value of sourceWindowAppUuid
      • getSourceWindowName

        public java.lang.String getSourceWindowName()
        The name of the sourcewindow. The source window is the window in which (merge/join/leave)group(s) was called.
        Returns:
        value of sourceWindowName
      • getTargetGroup

        public java.util.List<Window> getTargetGroup()
        All the windows in the group the targetWindow orginated from
        Returns:
        list of Windows
      • getTargetWindowAppUuid

        public java.lang.String getTargetWindowAppUuid()
        The UUID of the application the targetWindow belongs to. The target window is the window that was passed into (merge/join)group(s).
        Returns:
        value of targetWindowAppUuid
      • getTargetWindowName

        public java.lang.String getTargetWindowName()
        The name of the targetWindow. The target window is the window that was passed into (merge/join)group(s)
        Returns:
        value of targetWindowName
      • getUuid

        public java.lang.String getUuid()
        The UUID of the application the window belongs to
        Returns:
        application UUID