Package 

Interface ButtonGroupAction

  • All Implemented Interfaces:

    
    public interface ButtonGroupAction
    
                        

    implement this interface to tell a button group what action to perform

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit execute(List<Object> data, Object selectedButtonData, Object deselectedButtonData) this method will get called when a button in this button group gets clicked by the user
      Unit onHover() Override this function to perform some kind of action when a button of the group is hovered over
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • execute

         abstract Unit execute(List<Object> data, Object selectedButtonData, Object deselectedButtonData)

        this method will get called when a button in this button group gets clicked by the user

        Parameters:
        data - list of data of all currently active buttons (maybe empty)
        selectedButtonData - data of the button that was clicked if it was selected (null if button was deselected)
        deselectedButtonData - data of the button that was clicked if it was deselected (null if button was selected)
      • onHover

         Unit onHover()

        Override this function to perform some kind of action when a button of the group is hovered over