Package de.lessvoid.nifty.controls

Examples of de.lessvoid.nifty.controls.ScrollPanel


    this.screen = screen;
  }

  @Override
  public void init(final Properties parameter, final Attributes controlDefinitionAttributes) {
    ScrollPanel scrollPanel = getScrollPanel();
    scrollPanel.setUp(10.f, 10.f, 100.f, 100.f, AutoScroll.OFF);
    getScrollPanelXPosTextField().setText(String.valueOf((int)scrollPanel.getHorizontalPos()));
    getScrollPanelYPosTextField().setText(String.valueOf((int)scrollPanel.getVerticalPos()));
  }
View Full Code Here


  @NiftyEventSubscriber(id="scrollpanelXPos")
  public void onScrollpanelXPosChanged(final String id, final TextFieldChangedEvent event) {
    try {
      float f = Float.valueOf(event.getText());
      ScrollPanel scrollPanel = getScrollPanel();
      scrollPanel.setHorizontalPos(f);
    } catch (NumberFormatException e) {
    }
  }
View Full Code Here

  @NiftyEventSubscriber(id="scrollpanelYPos")
  public void onScrollpanelYPosChanged(final String id, final TextFieldChangedEvent event) {
    try {
      float f = Float.valueOf(event.getText());
      ScrollPanel scrollPanel = getScrollPanel();
      scrollPanel.setVerticalPos(f);
    } catch (NumberFormatException e) {
    }
  }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.controls.ScrollPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.