jimmc.roots
Class ListModel
java.lang.Object
|
+--jimmc.roots.ListModel
- public class ListModel
- extends java.lang.Object
A model for a single record from the database.
Method Summary |
int |
getCount()
Get the count of keys. |
java.lang.String |
getDisplayCommand(java.lang.String format,
boolean includeKeys)
Get the command we use to generate our display. |
java.lang.String |
getOutputText(java.lang.String format,
boolean includeKeys)
Get the long text string based on format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
db
protected DatabaseModel db
- Our database model.
keys
protected java.lang.String[] keys
- Our key list.
base
protected RootsBase base
- Our base database.
ListModel
public ListModel(DatabaseModel db,
java.lang.String[] keys)
- Create a new model.
getCount
public int getCount()
- Get the count of keys.
getDisplayCommand
public java.lang.String getDisplayCommand(java.lang.String format,
boolean includeKeys)
- Get the command we use to generate our display.
getOutputText
public java.lang.String getOutputText(java.lang.String format,
boolean includeKeys)
- Get the long text string based on format.