Class ProjectListItem

    • Constructor Detail

      • ProjectListItem

        public ProjectListItem​(IndexEntry indexEntry)
        Create a project list item from an index entry.
        Parameters:
        indexEntry - index entry to display
    • Method Detail

      • main

        public static void main​(String[] args)
        Test program entry point.
        Parameters:
        args - cli args (ignored)
      • bindDeleteEvent

        public void bindDeleteEvent​(ActionListener actionListener)
        Bind a given deletion event listener to the delete button.
        Parameters:
        actionListener - deletion event listener
      • bindSelectionEvent

        public void bindSelectionEvent​(Consumer<IndexEntry> projectSelection)
        Bind a given selection event listener to the click event of the item.
        Parameters:
        projectSelection - selection event listener
      • getNameLabel

        public JLabel getNameLabel()
        Label to display the project's name.