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 Type
    Method
    Description
    boolean
    isSnapInAllowed(JTabbedPane tabbedPane, Tab tab)
    Controls whether a jhromeTab may be "snapped in" to a JhromeTabbedPane (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 a JhromeTabbedPane (if it can be removed by being dragged out of the tabbed pane).
  • Method Details

    • isTearAwayAllowed

      boolean isTearAwayAllowed(JTabbedPane tabbedPane, Tab tab)
      Controls whether a jhromeTab may be "torn away" from a JhromeTabbedPane (if it can be removed by being dragged out of the tabbed pane).
      Parameters:
      tabbedPane - the JhromeTabbedPane the user is dragging the jhromeTab out of.
      tab - the IJhromeTab the user is dragging.
      Returns:
      true if jhromeTab may be torn away from tabbedPane.
    • isSnapInAllowed

      boolean isSnapInAllowed(JTabbedPane tabbedPane, Tab tab)
      Controls whether a jhromeTab may be "snapped in" to a JhromeTabbedPane (if it can be added by being dragged over the tabbed pane).
      Parameters:
      tabbedPane - the JhromeTabbedPane the user is dragging the jhromeTab over.
      tab - the IJhromeTab the user is dragging.
      Returns:
      true if jhromeTab may be snapped into tabbedPane.