public class AppsDatabaseEvent extends EventObject
AppsDatabaseEvent class indicates either an entry
in the application database has changed, or so many changes have occurred.
that the database should be considered totally new.
An event with event_id NEW_DATABASE shall always be sent after switching to a new service.
After such an event, the contents of the database (both the set of applications and
their attributes) shall reflect the new database contents. All former contents of
the database shall be discarded except for running externally authorised applications.
It is platform dependant if and when a new database event is thrown
while tuned to the same service except that a NEW_DATABASE event shall not
be sent when only one application has changed within a service.
The APP_ADDED, APP_CHANGED and APP_DELETED events shall not be generated in response to the same database change as caused a NEW_DATABASE event to be generated.
| Modifier and Type | Field and Description |
|---|---|
static int |
APP_ADDED
The addition event id.
|
static int |
APP_CHANGED
The changed event id.
|
static int |
APP_DELETED
The deletion event id.
|
static int |
NEW_DATABASE
The new database event id.
|
source| Constructor and Description |
|---|
AppsDatabaseEvent(int id,
AppID appid,
Object source)
Create a new AppsDatabaseEvent object for the entry in the database
that changed, or for a new database.
|
| Modifier and Type | Method and Description |
|---|---|
AppID |
getAppID()
gets the application ID object for the entry in the database that
changed.
|
int |
getEventId()
gets the type of the event.
|
getSource, toStringpublic static final int NEW_DATABASE
public static final int APP_CHANGED
public static final int APP_ADDED
public static final int APP_DELETED
public AppsDatabaseEvent(int id,
AppID appid,
Object source)
id - the cause of the eventappid - the AppId of the entry that changedsource - the AppaDatabase object.public AppID getAppID()
When the event type is NEW_DATABASE, AppID will be null.
public int getEventId()
Copyright © 2012 code4tv.com. All Rights Reserved.