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 classFlatTableHeaderUI.FlatMouseInputHandler-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
-
-
Field Summary
Fields Modifier and Type Field Description StringarrowTypeprotected ColorbottomSeparatorColorprotected InsetscellMarginsprotected intheightprotected ColorseparatorColorprotected BooleanshowTrailingVerticalLineColorsortIconColorprotected intsortIconPosition-
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 voidapplyStyle(Object style)protected ObjectapplyStyleProperty(String key, Object value)protected MouseInputListenercreateMouseInputListener()static ComponentUIcreateUI(JComponent c)DimensiongetPreferredSize(JComponent c)intgetRolloverColumn()Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults()protected voidinstallListeners()protected voidinstallStyle()voidinstallUI(JComponent c)voidpaint(Graphics g, JComponent c)protected voidpaintBottomSeparator(Graphics g, JComponent c, int x, int w)protected voiduninstallDefaults()protected voiduninstallListeners()-
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:
installUIin classBasicTableHeaderUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classBasicTableHeaderUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classBasicTableHeaderUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classBasicTableHeaderUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin 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:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
createMouseInputListener
protected MouseInputListener createMouseInputListener()
- Overrides:
createMouseInputListenerin classBasicTableHeaderUI
-
getRolloverColumn
public int getRolloverColumn()
- Overrides:
getRolloverColumnin classBasicTableHeaderUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classBasicTableHeaderUI
-
paintBottomSeparator
protected void paintBottomSeparator(Graphics g, JComponent c, int x, int w)
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicTableHeaderUI
-
-