org.caleigo.core.event
Class SelectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.caleigo.core.event.SelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class SelectionEvent
extends java.util.EventObject

Event for relaying changes in the content of EntityCollection Objects.

Version:
1.00
Author:
Dennis Zikovic
See Also:
Serialized Form

Field Summary
static int CONTENTS_CHANGED
           
static int ENTITY_ADDED
           
static int ENTITY_REMOVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SelectionEvent(ISelection source)
          Creates new EntityCollectionEvent with the type CONTENTS_CHANGED.
SelectionEvent(ISelection source, int eventType, IEntity entity, int row)
          Creates new EntityCollectionEvent with the specified type and entity.
 
Method Summary
 IEntity getEntity()
           
 int getEventType()
           
 int getRowIndex()
           
 ISelection getSourceSelection()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTENTS_CHANGED

public static final int CONTENTS_CHANGED
See Also:
Constant Field Values

ENTITY_ADDED

public static final int ENTITY_ADDED
See Also:
Constant Field Values

ENTITY_REMOVED

public static final int ENTITY_REMOVED
See Also:
Constant Field Values
Constructor Detail

SelectionEvent

public SelectionEvent(ISelection source)
Creates new EntityCollectionEvent with the type CONTENTS_CHANGED.


SelectionEvent

public SelectionEvent(ISelection source,
                      int eventType,
                      IEntity entity,
                      int row)
Creates new EntityCollectionEvent with the specified type and entity.

Method Detail

toString

public java.lang.String toString()

getSourceSelection

public ISelection getSourceSelection()

getEventType

public int getEventType()

getEntity

public IEntity getEntity()

getRowIndex

public int getRowIndex()


Copyright © 2005 Caleigo. All Rights Reserved.