Interface HighlightPredicate

    • Field Detail

      • READ_ONLY

        static final HighlightPredicate READ_ONLY
        Convenience for read-only (same as !editable).
      • IS_FOLDER

        static final HighlightPredicate IS_FOLDER
        Folder predicate - convenience: same as !IS_LEAF.
      • EVEN

        static final HighlightPredicate EVEN
        Even rows. PENDING: this is zero based (that is "really" even 0, 2, 4 ..), differing from the old AlternateRowHighlighter.
      • ODD

        static final HighlightPredicate ODD
        Odd rows. PENDING: this is zero based (that is 1, 3, 4 ..), differs from the old implementation which was one based?
      • BIG_DECIMAL_NEGATIVE

        static final HighlightPredicate BIG_DECIMAL_NEGATIVE
        Negative BigDecimals.
      • EMPTY_OBJECT_ARRAY

        static final java.lang.Object[] EMPTY_OBJECT_ARRAY
      • EMPTY_INTEGER_ARRAY

        static final java.lang.Integer[] EMPTY_INTEGER_ARRAY
    • Method Detail

      • isHighlighted

        boolean isHighlighted​(java.awt.Component renderer,
                              ComponentAdapter adapter)
        Returns a boolean to indicate whether the component should be highlighted.

        Note: both parameters should be considered strictly read-only!

        Parameters:
        renderer - the cell renderer component that is to be decorated, must not be null
        adapter - the ComponentAdapter for this decorate operation, most not be null
        Returns:
        a boolean to indicate whether the component should be highlighted.