Class ActionButton

    • Constructor Detail

      • ActionButton

        public ActionButton​(Action action)
        Creates a button associated with the provided action.
        Parameters:
        action - the action.
    • Method Detail

      • actionPerformed

        public void actionPerformed​(ActionEvent ev)
        Callback when an action has been performed.
        Parameters:
        ev - the action event
      • mousePressed

        public void mousePressed​(MouseEvent e)
        Callback when a mouse button has been pressed.
        Parameters:
        e - the mouse event
      • mouseReleased

        public void mouseReleased​(MouseEvent e)
        Callback when a mouse button has been released.
        Parameters:
        e - the mouse event
      • mouseExited

        public void mouseExited​(MouseEvent e)
        Callback when mouse exited a component.
        Parameters:
        e - the mouse event
      • mouseEntered

        public void mouseEntered​(MouseEvent e)
        Callback when mouse entered a component.
        Parameters:
        e - the mouse event
      • getActionObject

        public Action getActionObject()
        Returns the action associated with this button.
        Returns:
        the action associated with this button.