Module org.jpo

Class CategoryJScrollPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class CategoryJScrollPane extends JScrollPane
CategoryJScrollPane.java: Creates a JPanel in a JScrollPane that lists categories
See Also:
  • Constructor Details

    • CategoryJScrollPane

      public CategoryJScrollPane()
      Creates a JPanel that lists the categories
  • Method Details

    • getDefaultListModel

      public DefaultListModel<Category> getDefaultListModel()
      Returns the List Model used for this list
      Returns:
      the List Model used for this list
    • getJList

      public JList<Category> getJList()
      Returns the JList used for this list
      Returns:
      the JList
    • loadCategories

      public void loadCategories(Iterator<Integer> i)
      Load Categories
      Parameters:
      i - the categories
    • getSelectedCategories

      public Collection<Integer> getSelectedCategories()
      Returns a Collection of the selected Categories
      Returns:
      the hash set of the selected categories