Class ExpandEvent<T>

    • Constructor Detail

      • ExpandEvent

        public ExpandEvent​(Component source,
                           T expandedItem,
                           boolean userOriginated)
        Construct an expand event.
        Parameters:
        source - the hierarchical component this event originated from
        expandedItem - the item that was expanded
        userOriginated - whether the expand was triggered by a user interaction or the server
    • Method Detail

      • getExpandedItem

        public T getExpandedItem()
        Get the expanded item that triggered this event.
        Returns:
        the expanded item
      • isUserOriginated

        public boolean isUserOriginated()
        Description copied from interface: HasUserOriginated
        Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.
        Specified by:
        isUserOriginated in interface HasUserOriginated
        Returns:
        true if this event originates from the client, false otherwise.