|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncclient.spds.event.SyncItemEvent
public class SyncItemEvent
Is used to notify the listeners when a item is added / updated / deleted by a command received from the server or when a item is added / updated / deleted on by the client
Field Summary | |
---|---|
static int |
ITEM_ADDED_BY_CLIENT
A new item is added by the client |
static int |
ITEM_ADDED_BY_SERVER
A new item is added on the client |
static int |
ITEM_DELETED_BY_CLIENT
An item is deleted by the client |
static int |
ITEM_DELETED_BY_SERVER
An item is deleted on the client |
static int |
ITEM_UPDATED_BY_CLIENT
An item is updated by the client |
static int |
ITEM_UPDATED_BY_SERVER
An item is updated on the client |
Constructor Summary | |
---|---|
SyncItemEvent(int type,
java.lang.String sourceUri,
SyncItemKey itemKey)
Creates a SyncItemEvent |
Method Summary | |
---|---|
SyncItemKey |
getItemKey()
|
java.lang.String |
getSourceUri()
|
int |
getType()
|
void |
setItemKey(SyncItemKey itemKey)
|
void |
setSourceUri(java.lang.String sourceUri)
|
void |
setType(int type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ITEM_ADDED_BY_SERVER
public static final int ITEM_DELETED_BY_SERVER
public static final int ITEM_UPDATED_BY_SERVER
public static final int ITEM_ADDED_BY_CLIENT
public static final int ITEM_DELETED_BY_CLIENT
public static final int ITEM_UPDATED_BY_CLIENT
Constructor Detail |
---|
public SyncItemEvent(int type, java.lang.String sourceUri, SyncItemKey itemKey)
type
- the event typesourceUri
- the source the item belong toitemKey
- the item keyMethod Detail |
---|
public SyncItemKey getItemKey()
public java.lang.String getSourceUri()
public int getType()
public void setItemKey(SyncItemKey itemKey)
public void setSourceUri(java.lang.String sourceUri)
public void setType(int type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |