|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.client.objecteditor.ContentHandlerFactory
public abstract class ContentHandlerFactory
Provides type-appropriate ContentViewer and ContentEditor instances.
| Constructor Summary | |
|---|---|
ContentHandlerFactory()
|
|
| Method Summary | |
|---|---|
static ContentEditor |
getEditor(java.lang.String type,
java.io.InputStream data)
Get an editor for the given type, initialized with the given data. |
static ContentViewer |
getViewer(java.lang.String type,
java.io.InputStream data)
Get a viewer for the given type, initialized with the given data. |
static boolean |
hasEditor(java.lang.String type)
Can the factory provide an editor for the given type? |
static boolean |
hasViewer(java.lang.String type)
Can the factory provide a viewer for the given type? |
static void |
register(ContentViewer handler)
Registers a viewer or editor with the factory. |
static boolean |
viewerIsEditor(java.lang.String type)
If a viewer would be provided for the given type, is that viewer also an editor? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentHandlerFactory()
| Method Detail |
|---|
public static void register(ContentViewer handler)
public static boolean hasViewer(java.lang.String type)
public static boolean viewerIsEditor(java.lang.String type)
public static boolean hasEditor(java.lang.String type)
public static ContentViewer getViewer(java.lang.String type,
java.io.InputStream data)
throws java.io.IOException
java.io.IOException
public static ContentEditor getEditor(java.lang.String type,
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 | |||||||||