Class AbstractDoubleClickableComponentWithButtons<T extends Component>

    • Field Detail

      • m_DoubleClickButton

        protected BaseButton m_DoubleClickButton
        button that gets clicked when double-clicking list element.
      • m_DoubleClickAction

        protected BaseAction m_DoubleClickAction
        action that gets executed when double-clicking list element.
    • Constructor Detail

      • AbstractDoubleClickableComponentWithButtons

        public AbstractDoubleClickableComponentWithButtons()
    • Method Detail

      • isValidDoubleClick

        protected abstract boolean isValidDoubleClick​(MouseEvent e)
        Checks whether the double click is valid for this component.
        Parameters:
        e - the mouse event of the double click
        Returns:
        true if valid double click
      • setDoubleClickButton

        public void setDoubleClickButton​(BaseButton value)
        Sets the button that gets clicked when a double-click on a list element occurs. Use null to deactivate.
        Parameters:
        value - the button
      • getDoubleClickButton

        public BaseButton getDoubleClickButton()
        Returns the current button that gets clicked when a list element is double-clicked.
        Returns:
        the button, null if not set
      • setDoubleClickAction

        public void setDoubleClickAction​(BaseAction value)
        Sets the action that gets executed when a double-click on a list element occurs. Use null to deactivate.
        Parameters:
        value - the action
      • getDoubleClickAction

        public BaseAction getDoubleClickAction()
        Returns the current action that gets executed when a list element is double-clicked.
        Returns:
        the action, null if not set