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
showCellFocusIndicatorFields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) protected booleanReturns whether focus indicator border should be shown.Methods inherited from class com.formdev.flatlaf.ui.FlatTableCellBorder
getArc, getBorderInsets, getLineColor, getStyleFromTableUIMethods inherited from class com.formdev.flatlaf.ui.FlatLineBorder
getLineThicknessMethods inherited from class com.formdev.flatlaf.ui.FlatEmptyBorder
applyStyleProperty, getBorderInsets, getStyleableValue, getUnscaledBorderInsets, scaleInsetsMethods inherited from class javax.swing.border.EmptyBorder
isBorderOpaqueMethods 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:
paintBorderin interfaceBorder- Overrides:
paintBorderin classFlatTableCellBorder
-
shouldShowCellFocusIndicator
Returns whether focus indicator border should be shown.- Since:
- 3.1
-