Documentation of 'org.jdesktop.swingx.decorator.CompoundHighlighter' Java class
CompoundHighlighter
org.jdesktop.swingx.decorator

Class CompoundHighlighter

    • Field Detail

      • EMPTY_HIGHLIGHTERS

        public static final Highlighter[] EMPTY_HIGHLIGHTERS
    • Constructor Detail

      • CompoundHighlighter

        public CompoundHighlighter(Highlighter... inList)
        Instantiates a CompoundHighlighter containing the given Highlighters.
        Parameters:
        inList - zero or more not-null Highlighters to manage by this CompoundHighlighter.
        Throws:
        java.lang.NullPointerException - if array is null or array contains null values.
      • CompoundHighlighter

        public CompoundHighlighter(HighlightPredicate predicate,
                                   Highlighter... inList)
        Instantiates a CompoundHighlighter with the given predicate containing the given Highlighters.
        Parameters:
        predicate - the highlightPredicate to use
        inList - zero or more not-null Highlighters to manage by this CompoundHighlighter.
        Throws:
        java.lang.NullPointerException - if array is null or array contains null values.
    • Method Detail

      • setHighlighters

        public void setHighlighters(Highlighter... inList)
        Sets the given Highlighters.
        Parameters:
        inList - zero or more not-null Highlighters to manage by this CompoundHighlighter.
        Throws:
        java.lang.NullPointerException - if array is null or array contains null values.
      • addHighlighter

        public void addHighlighter(Highlighter highlighter)
        Appends a highlighter to the pipeline.
        Parameters:
        highlighter - highlighter to add
        Throws:
        java.lang.NullPointerException - if highlighter is null.
      • addHighlighter

        public void addHighlighter(Highlighter highlighter,
                                   boolean prepend)
        Adds a highlighter to the pipeline. PENDING: Duplicate inserts?
        Parameters:
        highlighter - highlighter to add
        prepend - prepend the highlighter if true; false will append
        Throws:
        java.lang.NullPointerException - if highlighter is null.
      • removeHighlighter

        public void removeHighlighter(Highlighter hl)
        Removes a highlighter from the pipeline.
        Parameters:
        hl - highlighter to remove
      • getHighlighters

        public Highlighter[] getHighlighters()
        Returns an array of contained Highlighters.
        Returns:
        the contained Highlighters, might be empty but never null.
      • updateUI

        public void updateUI()
        Updates all internal visuals after changing a UI-delegate.

        Implemented to call updateUI on contained Highlighters.

        Specified by:
        updateUI in interface UIDependent
        See Also:
        JComponent.updateUI()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.