Class FlatListCellBorder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FlatListCellBorder.Default
      Border for unselected cell that uses margins, but does not paint focus indicator border.
      static class  FlatListCellBorder.Focused
      Border for focused unselected cell that uses margins and paints focus indicator border.
      static class  FlatListCellBorder.Selected
      Border for selected cell that uses margins and paints focus indicator border if enabled (List.showCellFocusIndicator=true) and multiple items are selected.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Component c  
      protected boolean showCellFocusIndicator  
      • Fields inherited from class javax.swing.border.EmptyBorder

        bottom, left, right, top
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FlatListCellBorder()  
    • Field Detail

      • showCellFocusIndicator

        protected boolean showCellFocusIndicator
        Since:
        2
      • c

        private java.awt.Component c
    • Constructor Detail

      • FlatListCellBorder

        protected FlatListCellBorder()
    • Method Detail

      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Overrides:
        getBorderInsets in class FlatEmptyBorder
      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class FlatLineBorder
      • getStyleFromListUI

        static <T> T getStyleFromListUI​(java.awt.Component c,
                                        java.util.function.Function<FlatListUI,​T> f)
        Because this border is always shared for all lists, get border specific style from FlatListUI.