Class AbstractTableCellItemIconHighlighter

    • Field Summary

      • Fields inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter

        listenerList
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canHighlight​(java.awt.Component component, org.jdesktop.swingx.decorator.ComponentAdapter adapter)
      protected java.awt.Component doHighlight​(java.awt.Component component, org.jdesktop.swingx.decorator.ComponentAdapter adapter)  
      protected abstract javax.swing.Icon getIcon​(java.lang.Object cellItem)  
      protected abstract boolean isHighlighted​(java.lang.Object cellItem)  
      • Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter

        addChangeListener, areEqual, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractTableCellItemIconHighlighter

        public AbstractTableCellItemIconHighlighter​(int columnIndex)
    • Method Detail

      • doHighlight

        protected java.awt.Component doHighlight​(java.awt.Component component,
                                                 org.jdesktop.swingx.decorator.ComponentAdapter adapter)
        Specified by:
        doHighlight in class org.jdesktop.swingx.decorator.AbstractHighlighter
      • getIcon

        protected abstract javax.swing.Icon getIcon​(java.lang.Object cellItem)
      • isHighlighted

        protected abstract boolean isHighlighted​(java.lang.Object cellItem)
      • canHighlight

        protected boolean canHighlight​(java.awt.Component component,
                                       org.jdesktop.swingx.decorator.ComponentAdapter adapter)

        Overridden to return true if the component is of type IconAware or of type JLabel, false otherwise.

        Note: special casing JLabel is for backward compatibility - application highlighting code which doesn't use the Swingx renderers would stop working otherwise.

        Overrides:
        canHighlight in class org.jdesktop.swingx.decorator.AbstractHighlighter