Package com.formdev.flatlaf.ui
Class FlatTableCellBorder.Selected
- All Implemented Interfaces:
Serializable
,Border
,UIResource
- Enclosing class:
FlatTableCellBorder
Border for selected cell that uses margins and paints focus indicator border.
The focus indicator is shown under following conditions:
- always if enabled via UI property
Table.showCellFocusIndicator=true
- for row selection mode if exactly one row is selected and at least one cell in that row is editable
- for column selection mode if exactly one column is selected and at least one cell in that column is editable
- never for cell selection mode
To avoid possible performance issues, checking for editable cells is limited
to maxCheckCellsEditable
. If there are more cells to check,
the focus indicator is always shown.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
FlatTableCellBorder.Default, FlatTableCellBorder.Focused, FlatTableCellBorder.Selected
-
Field Summary
FieldsFields inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
showCellFocusIndicator
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) protected boolean
Returns whether focus indicator border should be shown.Methods inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
getBorderInsets, getLineColor, getStyleFromTableUI
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
-
Field Details
-
maxCheckCellsEditable
public int maxCheckCellsEditable- Since:
- 3.1
-
-
Constructor Details
-
Selected
public Selected()
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatTableCellBorder
-
shouldShowCellFocusIndicator
Returns whether focus indicator border should be shown.- Since:
- 3.1
-