|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.client.objecteditor.ContentViewer
org.fcrepo.client.objecteditor.ContentEditor
public abstract class ContentEditor
Edit content of certain types in a JComponent.
| Constructor Summary | |
|---|---|
ContentEditor()
|
|
| Method Summary | |
|---|---|
abstract void |
changesSaved()
Called when the caller wants what is in the view to be considered "not dirty" because it's been saved that way. |
abstract InputStream |
getContent()
Gets the content in its edited state. |
abstract boolean |
isDirty()
Returns true if the content should be considered "dirty" (e.g. |
boolean |
isEditor()
Always returns true. |
abstract void |
setContentChangeListener(ActionListener listener)
Sets the listener that this ContentEditor will notify via listener.actionPerformed(...) when any content-changing events occur that could potentially affect its "dirty state" (whether going from not dirty to dirty, or dirty to not dirty). |
void |
setPIDAndDSID(String pid,
String dsid)
|
abstract void |
undoChanges()
Called when the caller wants to update the view back to the data was originally passed in. |
| Methods inherited from class org.fcrepo.client.objecteditor.ContentViewer |
|---|
getComponent, getTypes, init, newInstance, setContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentEditor()
| Method Detail |
|---|
public final boolean isEditor()
isEditor in class ContentViewer
public void setPIDAndDSID(String pid,
String dsid)
public abstract void changesSaved()
public abstract void undoChanges()
public abstract boolean isDirty()
public abstract void setContentChangeListener(ActionListener listener)
public abstract InputStream getContent()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||