Class TagCellRenderer

    • Constructor Detail

      • TagCellRenderer

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

      • 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