DESY ACOP Beans Home

com.cosylab.events
Class RangeSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.cosylab.events.RangeSelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class RangeSelectionEvent
extends java.util.EventObject

Version:
@@VERSION@@
Author:
gpajor
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RangeSelectionEvent(RangeSelectable source, int start, int end, boolean selected)
          Constructor for RangeSelectionEvent.
 
Method Summary
 int getSelectionEnd()
          Returns the selectionEnd.
 int getSelectionStart()
          Returns the selectionStart.
 boolean isSelected()
          Returns true if specified interval was selected.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeSelectionEvent

public RangeSelectionEvent(RangeSelectable source,
                           int start,
                           int end,
                           boolean selected)
Constructor for RangeSelectionEvent.

Parameters:
source -
start - Start index, should be -1 iff nothing is selected
end - End index, should be >= start, -1 if nothing is selected.
selecrted, - true if interval was selected, false if deselected.
Method Detail

getSelectionEnd

public int getSelectionEnd()
Returns the selectionEnd.

Returns:
int

getSelectionStart

public int getSelectionStart()
Returns the selectionStart.

Returns:
int

isSelected

public boolean isSelected()
Returns true if specified interval was selected. If it was deselected, it is false.

Returns:
boolean true if selected


Copyright © 2010. All Rights Reserved.