Package com.formdev.flatlaf.ui
Class FlatTableCellBorder.Selected
-
- All Implemented Interfaces:
Serializable
,Border
,UIResource
- Enclosing class:
- FlatTableCellBorder
public static class FlatTableCellBorder.Selected extends FlatTableCellBorder
Border for selected cell that uses margins and paints focus indicator border if enabled (Table.showCellFocusIndicator=true) or at least one selected cell is editable.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
FlatTableCellBorder.Default, FlatTableCellBorder.Focused, FlatTableCellBorder.Selected
-
-
Field Summary
-
Fields inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
showCellFocusIndicator
-
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
-
Constructor Summary
Constructors Constructor Description Selected()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isSelectionEditable(JTable table)
Checks whether at least one selected cell is editable.void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
-
Methods inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
getBorderInsets, getLineColor
-
Methods inherited from class com.formdev.flatlaf.ui.FlatLineBorder
getArc, getLineThickness
-
Methods inherited from class com.formdev.flatlaf.ui.FlatEmptyBorder
applyStyleProperty, getBorderInsets, getStyleableValue, getUnscaledBorderInsets, scaleInsets
-
Methods inherited from class javax.swing.border.EmptyBorder
isBorderOpaque
-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
-
-
-
Method Detail
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatTableCellBorder
-
isSelectionEditable
protected boolean isSelectionEditable(JTable table)
Checks whether at least one selected cell is editable.
-
-