All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentcs.guing.common.components.dockable.CStackDockStation Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/**
 * Copyright (c) The openTCS Authors.
 *
 * This program is free software and subject to the MIT license. (For details,
 * see the licensing information (LICENSE.txt) you should have received with
 * this copy of the software.)
 */
package org.opentcs.guing.common.components.dockable;

import bibliothek.gui.dock.StackDockStation;
import bibliothek.gui.dock.action.DockActionSource;
import bibliothek.gui.dock.common.CStation;
import bibliothek.gui.dock.common.intern.CDockable;
import bibliothek.gui.dock.common.intern.CommonDockable;
import bibliothek.gui.dock.common.intern.station.CommonDockStation;
import bibliothek.gui.dock.common.intern.station.CommonDockStationFactory;

/**
 */
public class CStackDockStation
    extends
      StackDockStation
    implements
      CommonDockStation,
      CommonDockable {

  private final CStack delegate;

  public CStackDockStation(CStack stack) {
    this.delegate = stack;
  }

  @Override
  public String getFactoryID() {
    return CommonDockStationFactory.FACTORY_ID;
  }

  @Override
  public String getConverterID() {
    return super.getFactoryID();
  }

  @Override
  public CDockable getDockable() {
    return delegate;
  }

  @Override
  public DockActionSource[] getSources() {
    return delegate.getSources();
  }

  @Override
  public CStation getStation() {
    return delegate;
  }

  @Override
  public StackDockStation getDockStation() {
    return this;
  }

  @Override
  public CStackDockStation asDockStation() {
    return this;
  }

  @Override
  public CommonDockable asDockable() {
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy