public class WGDatabaseEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_CONNECTED
Database was connected
|
static int |
TYPE_CONNECTION_ERROR
Database was tried to connect but failed
|
static int |
TYPE_UPDATE
Database data was updated.
|
Constructor and Description |
---|
WGDatabaseEvent(WGDatabase source,
int iType)
Constructor.
|
WGDatabaseEvent(WGDatabase source,
int iType,
WGDocument editedDocument)
Constructor.
|
WGDatabaseEvent(WGDatabase source,
int iType,
WGDocumentKey editedDocumentKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WGDatabase |
getDatabase()
The database, that triggered the event.
|
WGDocument |
getEditedDocument()
The document of the database that was edited and triggered the event.
|
WGDocumentKey |
getEditedDocumentKey()
Returns the document key of the edited document
|
int |
getType()
The type of event.
|
public static final int TYPE_UPDATE
public static final int TYPE_CONNECTED
public static final int TYPE_CONNECTION_ERROR
public WGDatabaseEvent(WGDatabase source, int iType, WGDocument editedDocument)
source
- iType
- editedDocument
- public WGDatabaseEvent(WGDatabase source, int iType, WGDocumentKey editedDocumentKey)
source
- iType
- editedDocumentKey
- public WGDatabaseEvent(WGDatabase source, int iType)
source
- iType
- public WGDatabase getDatabase()
public int getType()
public WGDocument getEditedDocument()
public WGDocumentKey getEditedDocumentKey()