Examples of ScrollPanelChangedEvent


Examples of de.lessvoid.nifty.controls.ScrollPanelChangedEvent

        float xPos = 0.f;
        Scrollbar horizontalS = getElement().findNiftyControl("#nifty-internal-horizontal-scrollbar", Scrollbar.class);
        if (horizontalS != null && horizontalScrollbar) {
          xPos = horizontalS.getValue();
        }
        nifty.publishEvent(getElement().getId(), new ScrollPanelChangedEvent(scrollPanel, xPos, event.getValue()));
      }
    }
View Full Code Here

Examples of de.lessvoid.nifty.controls.ScrollPanelChangedEvent

        float yPos = 0.f;
        Scrollbar verticalS = getElement().findNiftyControl("#nifty-internal-vertical-scrollbar", Scrollbar.class);
        if (verticalS != null && verticalScrollbar) {
          yPos = verticalS.getValue();
        }
        nifty.publishEvent(getElement().getId(), new ScrollPanelChangedEvent(scrollPanel, event.getValue(), yPos));
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.