|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.productivity.tools.ui.RichDocumentViewFactory
public class RichDocumentViewFactory
Provides a method to launch a Lotus® Symphony view and access the view instance.
The following example uses the RichDocumentViewFactory:
The
String fileName = "c:\\temp.odt";
RichDocumentViewFactory.openView(fileName, false );
RichDocumentView
gained by RichDocumentViewFactory
doesn't support
NewOperation
,LoadOperation
and CloseOperation
.
Constructor Summary | |
---|---|
RichDocumentViewFactory()
|
Method Summary | |
---|---|
static void |
closeView(RichDocumentView view)
Closes the specified view. |
static void |
closeView(RichDocumentView view,
boolean promptSaveDialogEnabled)
Closes the specified view. |
static RichDocumentView[] |
getViews()
Return a list of opened views. |
static RichDocumentView |
openView(RichDocumentType type)
Opens an instance of the Lotus Symphony view as an Eclipse view. |
static RichDocumentView |
openView(java.lang.String fileName,
boolean asTemplate)
Opens an instance of the Lotus Symphony view as an Eclipse view with given file name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RichDocumentViewFactory()
Method Detail |
---|
public static RichDocumentView openView(RichDocumentType type)
type
- specifies the document type to be opened
RichDocumentView
.RichDocumentType
public static RichDocumentView openView(java.lang.String fileName, boolean asTemplate)
fileName
- specifies the file name on a local disk, such as "c:\\test.odt" on Windows,
or "/user/test.odt" on LinuxasTemplate
- specifies whether the file is opened directly or used
as a template to create a new view. Specify false to open the file directly.
RichDocumentView
.RichDocumentType
public static RichDocumentView[] getViews()
public static void closeView(RichDocumentView view)
view
- specifies the target RichDocumentView
public static void closeView(RichDocumentView view, boolean promptSaveDialogEnabled)
view
- specifies the target RichDocumentView
promptSaveDialogEnabled
- specifies if the document is modified, whether the
"Documents-Save" dialog will be displayed before close. If true, the dialog will
appear before close, other wise the document will be closed without prompt.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |