A list Screenlet is a special type of read Screenlet that displays entities in a
list. Recall from the
list Screenlet creation tutorial
that list Screenlets have a model class that encapsulates entities retrieved
from the server. To support offline mode, a list Screenlet’s event class must
extend ListEvent
with the model class as a type argument. This event class
also needs three things:
- A default constructor
- A
getListKey
method that returns a unique ID to store the entity with - A
getModel
method that returns the model instance
The list Screenlet creation tutorial contains example model and event classes that support offline mode for Bookmark List Screenlet. Click the following links to see the sections in the tutorial that show you how to create these classes: