Class TreeModifyEvent

  • All Implemented Interfaces:
    IEvent

    public class TreeModifyEvent
    extends Object
    implements IEvent
    Event triggered on delete or insert keys pressed on the tree item.
    • Constructor Detail

      • TreeModifyEvent

        public TreeModifyEvent​(TreeItemViewModel itemViewModel,
                               int keyCode)
        Creates a new instance.
        Parameters:
        itemViewModel - the item view model clicked, cannot be null
        keyCode - the key code of the button, can be either SWT.INSERT or SWT.DEL
    • Method Detail

      • getItemViewModel

        public TreeItemViewModel getItemViewModel()
        Returns the item view model clicked.
        Returns:
        the item view model clicked, cannot be null
      • getKeyCode

        public int getKeyCode()
        Returns the current event keyCode
        Returns:
        the event keyCode