Пример #1
0
  /**
   * Unregisters <code>dockable</code>, the associated controller will no longer support drag and
   * drop for <code>dockable</code>.<br>
   * Clients and subclasses should not call this method.
   *
   * @param dockable the element to remove
   */
  protected void unregister(Dockable dockable) {
    if (dockables.remove(dockable)) {
      dockable.setController(null);

      fireDockableUnregistered(dockable);
    }
  }
Пример #2
0
  /**
   * Registers <code>dockable</code>, the associated controller will know the titles of <code>
   * dockable</code> to allow drag and drop operations.<br>
   * Clients and subclasses should not call this method.
   *
   * @param dockable a new Dockable
   */
  protected void register(Dockable dockable) {
    if (!dockables.contains(dockable)) {
      fireDockableRegistering(dockable);

      dockables.add(dockable);
      dockable.setController(controller);

      fireDockableRegistered(dockable);
    }
  }