|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.codex.CodexResourceModel
public abstract class CodexResourceModel
A model for editing CodexResources. Models are designed around the idea that we have several models, each model knows when the underlying data has been edited, and models only update themselves lazily when they need to.
com.partnersoft.editor| Field Summary | |
|---|---|
protected CodexResource |
resource
|
| Constructor Summary | |
|---|---|
protected |
CodexResourceModel(CodexResource resource)
|
| Method Summary | |
|---|---|
CodexResource |
getCodexResource()
Should return whatever got set in setCodexResource(). |
abstract java.lang.String |
getModelLabel()
Used to label the model in the user interface. |
abstract void |
invalidateModel()
When another model calls CodexResource.touch(), the resource invalidates all other models through this method. |
abstract void |
save(java.io.OutputStream outie)
This is the counterpart to CodexResource.touch(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CodexResource resource
| Constructor Detail |
|---|
protected CodexResourceModel(CodexResource resource)
| Method Detail |
|---|
public CodexResource getCodexResource()
public abstract java.lang.String getModelLabel()
public abstract void invalidateModel()
public abstract void save(java.io.OutputStream outie)
throws java.io.IOException
outie -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||