Package com.formdev.flatlaf.ui
Interface FlatTitlePane.TitleBarCaptionHitTest
- All Known Implementing Classes:
FlatSplitPaneUI
,FlatTabbedPaneUI
,FlatThemePreviewAll.PreviewFlatTabbedPaneUI
,FlatToolBarUI
- Enclosing class:
FlatTitlePane
public static interface FlatTitlePane.TitleBarCaptionHitTest
For custom components use
FlatClientProperties.COMPONENT_TITLE_BAR_CAPTION
instead of this interface.- Since:
- 3.4
-
Method Summary
Modifier and TypeMethodDescriptionisTitleBarCaptionAt
(int x, int y) Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location.
-
Method Details
-
isTitleBarCaptionAt
Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location. Useful for components that do not use mouse input on whole component bounds. E.g. a tabbed pane with a few tabs has some empty space beside the tabs that can be used to move the window.- Returns:
true
if the component is not interested in mouse input at the given locationfalse
if the component wants process mouse input at the given locationnull
if the component children should be checked
-