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 TypeMethodDescriptionbooleanisSnapInAllowed(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).booleanisTearAwayAllowed(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- theJhromeTabbedPanethe user is dragging the jhromeTab out of.tab- theIJhromeTabthe user is dragging.- Returns:
trueifjhromeTabmay 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- theJhromeTabbedPanethe user is dragging the jhromeTab over.tab- theIJhromeTabthe user is dragging.- Returns:
trueifjhromeTabmay be snapped intotabbedPane.
-