danger.app
Class PhotoGallery
java.lang.Object
|
+--danger.app.Listener
|
+--danger.app.PhotoGallery
- public class PhotoGallery
- extends Listener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static PhotoGallery instance()
addRecord
public void addRecord(PhotoRecord record,
boolean sync)
removeRecord
public boolean removeRecord(PhotoRecord record)
removeRecordWithUid
public boolean removeRecordWithUid(int uid)
removeRecordAtIndex
public boolean removeRecordAtIndex(int index,
boolean removeFromObjectStore)
getRecordIndex
public int getRecordIndex(PhotoRecord record)
getRecordIndexWithUid
public int getRecordIndexWithUid(int uid)
getRecordWithUid
public PhotoRecord getRecordWithUid(int uid)
getRecordAtIndex
public PhotoRecord getRecordAtIndex(int index)
changeRecordName
public boolean changeRecordName(PhotoRecord record,
java.lang.String name)
changeRecordNameWithUid
public boolean changeRecordNameWithUid(int uid,
java.lang.String name)
updateRecordData
public void updateRecordData(PhotoRecord record)
addObserver
public void addObserver(Listener observer)
removeObserver
public void removeObserver(Listener observer)
getRecordCount
public int getRecordCount()
isFull
public boolean isFull()
receiveEvent
public boolean receiveEvent(Event e)
- Description copied from class:
Listener
- Entry point for event processing.
Default behaviour is to do nothing and return false.
Normally this method is called from a Dispatcher when it
discovers an Event in its queue that is targetted at this
Listener.
- Overrides:
receiveEvent in class Listener
networkEvent
public void networkEvent(java.lang.Object s)
getProtocolVersion
public static int getProtocolVersion()
getMaxRecordCount
public static int getMaxRecordCount()
notifyRecordChanged
public void notifyRecordChanged(PhotoRecord record)
notifyRecordUidChanged
public void notifyRecordUidChanged(int oldUid,
int newUid)
debugSendUpdateAll
public void debugSendUpdateAll()
validatePhotos
public void validatePhotos()
dumpDB
public void dumpDB()
Danger Confidential. Copyright © 2000-2003, Danger Inc.