コード例 #1
0
  /**
   * Creates a new guard
   *
   * @param controller The controller for which actions are created.
   */
  public ReplaceActionGuard(DockController controller) {
    if (controller == null) throw new IllegalArgumentException("Controller should not be null");

    action = new ReplaceAction(controller);
    source = new DefaultDockActionSource();

    source.setHint(new LocationHint(LocationHint.ACTION_GUARD, LocationHint.LEFT));
    setVisible(true);
  }