|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.productivity.tools.ui.views.operations.OperationFactory
public class OperationFactory
The factory class for creating rich document operations.
Operation
Constructor Summary | |
---|---|
OperationFactory()
|
Method Summary | |
---|---|
static CloseOperation |
createCloseOperation(boolean prompt)
Creates an operation for closing a document in a rich document view. |
static LoadOperation |
createLoadOperation(java.lang.String fileName,
boolean asTemplate)
Creates an operation for loading a document into a rich document view. |
static NewOperation |
createNewOperation(RichDocumentType type)
Creates an operation for constructing a new document in a rich document view. |
static SaveAsOperation |
createSaveAsOperation(java.lang.String fileName)
Creates an operation for saving the document as a new file. |
static SaveOperation |
createSaveOperation(boolean silentMode)
Creates an operation for saving the current document in a rich document view. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationFactory()
Method Detail |
---|
public static NewOperation createNewOperation(RichDocumentType type)
type
- Secifies the type of rich document to create
public static CloseOperation createCloseOperation(boolean prompt)
prompt
- flag to indicate whether a prompt is required before closing
public static LoadOperation createLoadOperation(java.lang.String fileName, boolean asTemplate)
fileName
- the absolute file path for the file to loadasTemplate
- flag to indicate whether the document is loaded as a template
public static SaveAsOperation createSaveAsOperation(java.lang.String fileName)
fileName
- the absolute file path for the file to save
public static SaveOperation createSaveOperation(boolean silentMode)
silentMode
- flag to indicate whether the document is saved silently
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |