Class CategoryPane<T extends ILightObject>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jdesktop.swingx.JXTaskPane
be.gaudry.swing.bibliobrol.control.CategoryPane<T>
Type Parameters:
T - type of the categories (e.g. ActorRole)
All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, org.jdesktop.swingx.JXCollapsiblePane.CollapsiblePaneContainer

public class CategoryPane<T extends ILightObject> extends org.jdesktop.swingx.JXTaskPane implements PropertyChangeListener
Since:
1.0 Jul 1, 2009, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • addAction

      public void addAction(AutoLocalizedAction action)
    • addMinimumAction

      public void addMinimumAction(AutoLocalizedAction action)
    • init

      public void init()
    • getCategoryImage

      protected Icon getCategoryImage(T cat)
      Override this method to use category depending icons
      Parameters:
      cat - category
      Returns:
    • loadCategoriesList

      protected void loadCategoriesList()
    • loadItemsList

      protected void loadItemsList()
    • getCategory

      public T getCategory()
      Returns:
      the category
    • isAddToList

      public boolean isAddToList()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener