|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.eclipse.emf.transaction.TransactionalEditingDomainEvent
public class TransactionalEditingDomainEvent
An event object indicating a change in the state of a
TransactionalEditingDomain, usually in some
#getTransaction() life-cycle event.
| Field Summary | |
|---|---|
static int |
EDITING_DOMAIN_DISPOSING
Event type indicating the editing domain disposing. |
static int |
TRANSACTION_CLOSED
Event type indicating the transaction closed. |
static int |
TRANSACTION_CLOSING
Event type indicating the transaction closing. |
static int |
TRANSACTION_INTERRUPTED
Event type indicating the transaction interrupted. |
static int |
TRANSACTION_STARTED
Event type indicating the transaction started. |
static int |
TRANSACTION_STARTING
Event type indicating the transaction starting. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TransactionalEditingDomainEvent(TransactionalEditingDomain source,
int type)
Initializes me with my source editing domain and my type. |
|
TransactionalEditingDomainEvent(TransactionalEditingDomain source,
int type,
Transaction transaction)
Initializes me with my source editing domain and a transaction that changed. |
|
| Method Summary | |
|---|---|
int |
getEventType()
Queries the kind of transactional editing event that I signal to TransactionalEditingDomainListeners. |
TransactionalEditingDomain |
getSource()
|
Transaction |
getTransaction()
Queries the transaction for which the event signals a change, or null if the event pertains to the editing domain, itself. |
| Methods inherited from class java.util.EventObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TRANSACTION_STARTING
public static final int TRANSACTION_INTERRUPTED
public static final int TRANSACTION_STARTED
public static final int TRANSACTION_CLOSING
public static final int TRANSACTION_CLOSED
public static final int EDITING_DOMAIN_DISPOSING
| Constructor Detail |
|---|
public TransactionalEditingDomainEvent(TransactionalEditingDomain source,
int type)
source - my source domaintype - my type
public TransactionalEditingDomainEvent(TransactionalEditingDomain source,
int type,
Transaction transaction)
source - my source domaintype - my typetransaction - the transaction that changed| Method Detail |
|---|
public TransactionalEditingDomain getSource()
getSource in class EventObjectpublic int getEventType()
TransactionalEditingDomainListeners. Each different event type
corresponds to a call-back operation of that interface.
public Transaction getTransaction()
null if the event pertains to the editing domain, itself.
null
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||