java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.levigo.jadice.web.demo.enterprise.client.Slider
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsWidget

public class Slider extends com.google.gwt.user.client.ui.Widget
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Slider(int minValue, int maxValue, int startingValue, int steps, String lowerColor, String highercolor)
    Creates a default HTML slider (<input type="range">)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChangeEventHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
     
    void
     
    com.google.gwt.user.client.ui.Widget
     
    int
     
    void
    setValue(int value)
     

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Slider

      public Slider(int minValue, int maxValue, int startingValue, int steps, String lowerColor, String highercolor)
      Creates a default HTML slider (<input type="range">)
      Parameters:
      minValue - the minimum value of the slider
      maxValue - the maximum value of the slider
      startingValue - the stating position/value of the slider
      steps - the steps of the slider
      lowerColor - the color for the left side of the slider thumb; needed for webkit based browsers like chrome and safari
      highercolor - the color for the right side of the slider thumb; needed for webkit based browsers like chrome and safari
  • Method Details

    • asWidget

      public com.google.gwt.user.client.ui.Widget asWidget()
      Specified by:
      asWidget in interface com.google.gwt.user.client.ui.IsWidget
      Overrides:
      asWidget in class com.google.gwt.user.client.ui.Widget
    • addInputEventHandler

      public void addInputEventHandler(InputHandler handler)
    • addChangeEventHandler

      public void addChangeEventHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
    • setValue

      public void setValue(int value)
    • getValue

      public int getValue()