|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.client.objecteditor.ContentViewer
public abstract class ContentViewer
Views content of certain types in a JComponent.
| Constructor Summary | |
|---|---|
ContentViewer()
|
|
| Method Summary | |
|---|---|
abstract JComponent |
getComponent()
Get the JComponent. |
abstract String[] |
getTypes()
Returns a list of content types that this component can handle. |
abstract void |
init(String type,
InputStream data,
boolean viewOnly)
Initializes the handler. |
boolean |
isEditor()
Tells whether this component just does viewing or can do editing as well. |
protected ContentViewer |
newInstance(String type,
InputStream data,
boolean viewOnly)
Gets a new instance of this class, which has been constructed and immediately thereafter, init(...)'ed. |
abstract void |
setContent(InputStream data)
Re-initializes the handler given new input data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentViewer()
| Method Detail |
|---|
public boolean isEditor()
public abstract JComponent getComponent()
protected final ContentViewer newInstance(String type,
InputStream data,
boolean viewOnly)
throws IOException
IOExceptionpublic abstract String[] getTypes()
public abstract void init(String type,
InputStream data,
boolean viewOnly)
throws IOException
IOException
public abstract void setContent(InputStream data)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||