Class TagCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer

public class TagCellRenderer extends JLabel implements TableCellRenderer
This is the table cell renderer for cells for the table of tags in the tag editor dialog.
See Also:
  • Field Details

  • Constructor Details

    • TagCellRenderer

      public TagCellRenderer()
      Constructs a new TagCellRenderer.
  • Method Details

    • renderTagName

      protected void renderTagName(TagModel tag)
      renders the name of a tag in the second column of the table
      Parameters:
      tag - the tag
    • renderTagValue

      protected void renderTagValue(TagModel tag)
      renders the value of a a tag in the third column of the table
      Parameters:
      tag - the tag
    • resetRenderer

      protected void resetRenderer()
      resets the renderer
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex)
      replies the cell renderer component for a specific cell
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Parameters:
      table - the table
      value - the value to be rendered
      isSelected - true, if the value is selected
      hasFocus - true, if the cell has focus
      rowIndex - the row index
      vColIndex - the column index
      Returns:
      the renderer component