Class RadiancePanelListCellRenderer<T>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.pushingpixels.radiance.theming.api.renderer.RadiancePanelListCellRenderer<T>
Type Parameters:
T - Data model class.
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer<T>

public abstract class RadiancePanelListCellRenderer<T> extends JPanel implements ListCellRenderer<T>
Base class for list renderers that are more complex than what is provided by RadianceDefaultListCellRenderer. Extend this class to have consistent highlight visuals and animations under all Radiance skins. The flow of layout and data is: Note that getListCellRendererComponent(JList, Object, int, boolean, boolean) in this class is marked as final and can not be overriden in the application code.
See Also:
  • Field Details

  • Constructor Details

    • RadiancePanelListCellRenderer

      public RadiancePanelListCellRenderer()
  • Method Details

    • registerThemeAwareLabelsWithText

      protected void registerThemeAwareLabelsWithText(JLabel... labels)
    • unregisterThemeAwareLabelsWithText

      protected void unregisterThemeAwareLabelsWithText(JLabel... labels)
    • registerThemeAwareLabelWithIcon

      protected void registerThemeAwareLabelWithIcon(JLabel label, RadianceIcon.Factory radianceIconFactory, Dimension iconDimension)
    • unregisterThemeAwareLabelWithIcon

      protected void unregisterThemeAwareLabelWithIcon(JLabel label)
    • getListCellRendererComponent

      public final Component getListCellRendererComponent(JList<? extends T> list, T value, int index, boolean isSelected, boolean cellHasFocus)
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer<T>
    • bindData

      protected abstract void bindData(JList<? extends T> list, T value, int index)
    • onPreRender

      protected void onPreRender(JList<? extends T> list, T value, int index)
    • getColorSchemeForState

      private RadianceColorScheme getColorSchemeForState(JList list, RadianceListUI ui, ComponentState state)