Spiffy UI Framework

org.spiffyui.client.widgets.slider
Class SliderEvent

java.lang.Object
  extended by org.spiffyui.client.widgets.slider.SliderEvent

public class SliderEvent
extends java.lang.Object

A class to hold event values for the Slider


Constructor Summary
SliderEvent(Event event, Slider source, int[] values)
          Create a new slider event.
SliderEvent(Event event, Slider source, int[] values, boolean hasOriginalEvent)
          Create a new slider event.
 
Method Summary
 Event getEvent()
           
 Slider getSource()
          Get the source of the event.
 int[] getValues()
          Get the values from the event.
 boolean hasOriginalEvent()
          Does this event have an original event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderEvent

public SliderEvent(Event event,
                   Slider source,
                   int[] values)
Create a new slider event.

Parameters:
event - - the event received by JSNI called
source - - the Slider that fires the event
values - - int array of values

SliderEvent

public SliderEvent(Event event,
                   Slider source,
                   int[] values,
                   boolean hasOriginalEvent)
Create a new slider event.

Parameters:
event - - the event received by JSNI called
source - - the Slider that fires the event
values - - int array of values
hasOriginalEvent - - boolean if the change came from a non-programmatic change such as mouse or keyboard event
Method Detail

getEvent

public Event getEvent()
Returns:
Returns the JSNI returned JavaScriptObject event.

getSource

public Slider getSource()
Get the source of the event.

Returns:
Returns the source.

getValues

public int[] getValues()
Get the values from the event.

Returns:
Returns the value.

hasOriginalEvent

public boolean hasOriginalEvent()
Does this event have an original event.

Returns:
Returns the hasOriginalEvent.

Spiffy UI Framework