|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.client.objecteditor.ContentViewer
public abstract class ContentViewer
Views content of certain types in a JComponent.
| Constructor Summary | |
|---|---|
ContentViewer()
|
|
| Method Summary | |
|---|---|
abstract javax.swing.JComponent |
getComponent()
Get the JComponent. |
abstract java.lang.String[] |
getTypes()
Returns a list of content types that this component can handle. |
abstract void |
init(java.lang.String type,
java.io.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(java.lang.String type,
java.io.InputStream data,
boolean viewOnly)
Gets a new instance of this class, which has been constructed and immediately thereafter, init(...)'ed. |
abstract void |
setContent(java.io.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 javax.swing.JComponent getComponent()
protected final ContentViewer newInstance(java.lang.String type,
java.io.InputStream data,
boolean viewOnly)
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String[] getTypes()
public abstract void init(java.lang.String type,
java.io.InputStream data,
boolean viewOnly)
throws java.io.IOException
java.io.IOException
public abstract void setContent(java.io.InputStream data)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||