Example #1
0
  public ScrollPanelBarV(ScrollPanel scrollPanel) {
    super(
        scrollPanel.getScreen(),
        UIDUtil.getUID(),
        new Vector2f(scrollPanel.getDimensions().x - scrollPanel.getScrollSize(), 0),
        new Vector2f(
            scrollPanel.getScrollSize(),
            scrollPanel.getDimensions().y - scrollPanel.getScrollSize()),
        Vector4f.ZERO,
        null);

    this.scrollPanel = scrollPanel;
    this.setScaleNS(true);
    this.setScaleEW(false);
    this.setDocking(Docking.NE);
    this.setAsContainerOnly();

    initControl();
  }