Package org.sexydock.tabs
Interface ITabbedPaneDndPolicy
public interface ITabbedPaneDndPolicy
Controls the drag and drop policy of a
JTabbedPane
. This includes whether tabs may be torn away from the tabbed pane or snapped in.- Author:
- andy.edwards
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isSnapInAllowed
(JTabbedPane tabbedPane, Tab tab) Controls whether a jhromeTab may be "snapped in" to aJhromeTabbedPane
(if it can be added by being dragged over the tabbed pane).boolean
isTearAwayAllowed
(JTabbedPane tabbedPane, Tab tab) Controls whether a jhromeTab may be "torn away" from aJhromeTabbedPane
(if it can be removed by being dragged out of the tabbed pane).
-
Method Details
-
isTearAwayAllowed
Controls whether a jhromeTab may be "torn away" from aJhromeTabbedPane
(if it can be removed by being dragged out of the tabbed pane).- Parameters:
tabbedPane
- theJhromeTabbedPane
the user is dragging the jhromeTab out of.tab
- theIJhromeTab
the user is dragging.- Returns:
true
ifjhromeTab
may be torn away fromtabbedPane
.
-
isSnapInAllowed
Controls whether a jhromeTab may be "snapped in" to aJhromeTabbedPane
(if it can be added by being dragged over the tabbed pane).- Parameters:
tabbedPane
- theJhromeTabbedPane
the user is dragging the jhromeTab over.tab
- theIJhromeTab
the user is dragging.- Returns:
true
ifjhromeTab
may be snapped intotabbedPane
.
-