danger.app
Class PhotoGallery

java.lang.Object
  |
  +--danger.app.Listener
        |
        +--danger.app.PhotoGallery

public class PhotoGallery
extends Listener


Method Summary
 void addObserver(Listener observer)
           
 void addRecord(PhotoRecord record, boolean sync)
           
 boolean changeRecordName(PhotoRecord record, java.lang.String name)
           
 boolean changeRecordNameWithUid(int uid, java.lang.String name)
           
 void debugSendUpdateAll()
           
 void dumpDB()
           
static int getMaxRecordCount()
           
static int getProtocolVersion()
           
 PhotoRecord getRecordAtIndex(int index)
           
 int getRecordCount()
           
 int getRecordIndex(PhotoRecord record)
           
 int getRecordIndexWithUid(int uid)
           
 PhotoRecord getRecordWithUid(int uid)
           
static PhotoGallery instance()
           
 boolean isFull()
           
 void networkEvent(java.lang.Object s)
           
 void notifyRecordChanged(PhotoRecord record)
           
 void notifyRecordUidChanged(int oldUid, int newUid)
           
 boolean receiveEvent(Event e)
          Entry point for event processing.
 void removeObserver(Listener observer)
           
 boolean removeRecord(PhotoRecord record)
           
 boolean removeRecordAtIndex(int index, boolean removeFromObjectStore)
           
 boolean removeRecordWithUid(int uid)
           
 void updateRecordData(PhotoRecord record)
           
 void validatePhotos()
           
 
Methods inherited from class danger.app.Listener
cancelEvents, receiveEventInternal, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.