Package docking

Class DockableComponent

All Implemented Interfaces:
ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class DockableComponent extends JPanel implements ContainerListener
Wrapper class for user components. Adds the title, local toolbar and provides the drag target functionality.
See Also:
  • Field Details

    • DROP_CODE

      public static docking.DropCode DROP_CODE
    • TARGET_INFO

      public static ComponentPlaceholder TARGET_INFO
    • DRAGGED_OVER_INFO

      public static ComponentPlaceholder DRAGGED_OVER_INFO
    • SOURCE_INFO

      public static ComponentPlaceholder SOURCE_INFO
    • DROP_CODE_SET

      public static boolean DROP_CODE_SET
  • Method Details

    • getHeader

      public DockableHeader getHeader()
    • getFocusedComponent

      public Component getFocusedComponent()
    • getMinimumSize

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class JComponent
    • getComponentWindowingPlaceholder

      public ComponentPlaceholder getComponentWindowingPlaceholder()
      Returns the placeholder object associated with this DockableComponent
      Returns:
      the placeholder object associated with this DockableComponent
    • getComponentProvider

      public ComponentProvider getComponentProvider()
      Returns the component provider attached to this dockable component; null if this object has been disposed
      Returns:
      the provider
    • getDockingWindowManager

      public DockingWindowManager getDockingWindowManager()
      Returns the docking window manager that owns this component
      Returns:
      the manager
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • installDragDropTarget

      public void installDragDropTarget(Component component)
    • requestFocus

      public void requestFocus()
      Overrides:
      requestFocus in class JComponent
    • componentAdded

      public void componentAdded(ContainerEvent e)
      Specified by:
      componentAdded in interface ContainerListener
    • componentRemoved

      public void componentRemoved(ContainerEvent e)
      Specified by:
      componentRemoved in interface ContainerListener