Package org.graffiti.selection
Class SelectionEvent
java.lang.Object
java.util.EventObject
org.graffiti.event.AbstractEvent
org.graffiti.selection.SelectionEvent
- All Implemented Interfaces:
Serializable
public class SelectionEvent extends AbstractEvent
DOCUMENT ME!
- Version:
- $Revision: 1.5 $
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graffiti.event.AbstractEvent
AbstractEvent.EVENTTYPE
-
Constructor Summary
Constructors Constructor Description SelectionEvent(Selection selection)
Constructs a newSelectionEvent
. -
Method Summary
Modifier and Type Method Description Selection
getSelection()
Returns the selection contained in the event.void
setAdded(boolean added)
Sets the added.boolean
toBeAdded()
Returns the added.Methods inherited from class org.graffiti.event.AbstractEvent
getEventType, setEventType
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SelectionEvent
Constructs a newSelectionEvent
.- Parameters:
selection
- the (new / updated) selection.
-
-
Method Details
-
setAdded
public void setAdded(boolean added)Sets the added.- Parameters:
added
- The added to set
-
getSelection
Returns the selection contained in the event.- Returns:
- the selection contained in the event.
-
toBeAdded
public boolean toBeAdded()Returns the added.- Returns:
- boolean
-