Module org.jpo

Class CategoryButton

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CategoryButton extends JPanel
A widget to show the category
See Also:
  • Constructor Details

    • CategoryButton

      public CategoryButton(String categoryDescription)
      Constructs the category button.
      Parameters:
      categoryDescription - The description of the category
  • Method Details

    • addRemovalListener

      public void addRemovalListener(ActionListener actionListener)
      Connects a RemovalListener to the button so that it can find out that the user clicked the remove icon
      Parameters:
      actionListener - the Listener for the event
    • addClickListener

      public void addClickListener(ActionListener actionListener)
      Connects a Listener to handle the click events ont the button
      Parameters:
      actionListener - The Listener to handle the click events on the button.
    • setRemoveButtonVisibility

      public void setRemoveButtonVisibility()