Package com.formdev.flatlaf.ui
Class FlatTableHeaderUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TableHeaderUI
-
- javax.swing.plaf.basic.BasicTableHeaderUI
-
- com.formdev.flatlaf.ui.FlatTableHeaderUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
public class FlatTableHeaderUI extends BasicTableHeaderUI implements FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate forJTableHeader
.- UiDefault:
- TableHeader.font Font, TableHeader.background Color, TableHeader.foreground Color , TableHeader.bottomSeparatorColor Color, TableHeader.height int, TableHeader.sortIconPosition String right (default), left, top or bottom , TableHeader.cellMargins Insets, TableHeader.separatorColor Color, TableHeader.bottomSeparatorColor Color, TableHeader.showTrailingVerticalLine boolean , Component.arrowType String chevron (default) or triangle, Table.sortIconColor Color
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
FlatTableHeaderUI.FlatMouseInputHandler
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
-
-
Field Summary
Fields Modifier and Type Field Description String
arrowType
protected Color
bottomSeparatorColor
protected Insets
cellMargins
protected int
height
protected Color
separatorColor
protected Boolean
showTrailingVerticalLine
Color
sortIconColor
protected int
sortIconPosition
-
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
-
-
Constructor Summary
Constructors Constructor Description FlatTableHeaderUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(Object style)
protected Object
applyStyleProperty(String key, Object value)
protected MouseInputListener
createMouseInputListener()
static ComponentUI
createUI(JComponent c)
Dimension
getPreferredSize(JComponent c)
int
getRolloverColumn()
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
protected void
installDefaults()
protected void
installListeners()
protected void
installStyle()
void
installUI(JComponent c)
void
paint(Graphics g, JComponent c)
protected void
paintBottomSeparator(Graphics g, JComponent c, int x, int w)
protected void
uninstallDefaults()
protected void
uninstallListeners()
-
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
getBaseline, getMaximumSize, getMinimumSize, installKeyboardActions, rolloverColumnUpdated, uninstallKeyboardActions, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, update
-
-
-
-
Field Detail
-
bottomSeparatorColor
protected Color bottomSeparatorColor
-
height
protected int height
-
sortIconPosition
protected int sortIconPosition
-
cellMargins
protected Insets cellMargins
- Since:
- 2
-
separatorColor
protected Color separatorColor
- Since:
- 2
-
showTrailingVerticalLine
protected Boolean showTrailingVerticalLine
- Since:
- 2
-
arrowType
public String arrowType
- Since:
- 2
-
sortIconColor
public Color sortIconColor
- Since:
- 2
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicTableHeaderUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classBasicTableHeaderUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classBasicTableHeaderUI
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classBasicTableHeaderUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in classBasicTableHeaderUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
createMouseInputListener
protected MouseInputListener createMouseInputListener()
- Overrides:
createMouseInputListener
in classBasicTableHeaderUI
-
getRolloverColumn
public int getRolloverColumn()
- Overrides:
getRolloverColumn
in classBasicTableHeaderUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paint
in classBasicTableHeaderUI
-
paintBottomSeparator
protected void paintBottomSeparator(Graphics g, JComponent c, int x, int w)
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classBasicTableHeaderUI
-
-