|
org.netbeans.core.multiview/1 1.29 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.core.api.multiview.MultiViews
public final class MultiViews
Factory class for handling multi views.
| Method Summary | ||
|---|---|---|
static
|
createCloneableMultiView(String mimeType,
T context)
Factory method to create cloneable multiview for a given mime type. |
|
static
|
createMultiView(String mimeType,
T context)
Factory method to create multiview for a given mime type. |
|
static MultiViewHandler |
findMultiViewHandler(TopComponent tc)
For advanced manipulation with Multiview component, the handler can be requested |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MultiViewHandler findMultiViewHandler(TopComponent tc)
public static <T extends Serializable & Lookup.Provider> TopComponent createMultiView(String mimeType,
T context)
MultiViewElements to display is taken from MimeLookup.getLookup(org.netbeans.api.editor.mimelookup.MimePath).
The context parameter has to be Serializable, so the top component
can be persisted and later, when deserialized, it can again recreate the
Lookup. Suitable candidate for an object that implements both
Serializable as well as Lookup.Provider is
DataObject.
To register your elements into particular mime type see MultiViewElement.Registration.
context - lookup provider representing the object to displayed in the multiviewmimeType - the mime type to seek for elements in
public static <T extends Serializable & Lookup.Provider> CloneableTopComponent createCloneableMultiView(String mimeType,
T context)
createMultiView(java.lang.String, T)
context - lookup representing the object to be displayed in the multiviewmimeType - the mime type to seek for elements in
CloneableEditorSupport.Pane interface
|
org.netbeans.core.multiview/1 1.29 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||