Class MultiPagePane.TitleRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer<Object>, SwingConstants
Enclosing class:
MultiPagePane

public static class MultiPagePane.TitleRenderer extends DefaultListCellRenderer
The cell renderer.
See Also:
  • Field Details

    • m_Owner

      protected MultiPagePane m_Owner
      the owner.
    • m_BorderNoFocus

      protected Border m_BorderNoFocus
      the border for no focus.
    • m_BorderFocused

      protected Border m_BorderFocused
      the border for focused.
  • Constructor Details

    • TitleRenderer

      public TitleRenderer(MultiPagePane owner)
      Initializes the renderer with the owner.
      Parameters:
      owner - the owner
  • Method Details

    • getOwner

      public MultiPagePane getOwner()
      Returns the owner.
      Returns:
      the pane this renderer belongs to
    • getListCellRendererComponent

      public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)
      Returns the rendering component.
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer<Object>
      Overrides:
      getListCellRendererComponent in class DefaultListCellRenderer
      Parameters:
      list - the list this renderer is for
      value - the current list value
      index - the index of the value
      isSelected - whether the item is selected
      cellHasFocus - whether the cell has the focus
      Returns:
      the rendering component