|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is a callback for OleContainer.
If the container embeds a document object (for example, Excel.Sheet) when
the container has a toolbar with the "Open", "Save" buttons.
When a user
clicks "Open" or "Save", OleContainer calls methods of this callback to get
the name of an opened or saved file (implementing the class could show the
file chooser for getting filename or using some predefined document).
Note: There are several notification methods in the callback which are called when a document is opened or saved in the container (using the OleContainer.open() method, toolbar, or other).
Method Summary | |
void |
documentOpened(java.io.File file)
This method is called when the document is opened. |
void |
documentSaved(java.io.File file)
This method is called when the document is saved. |
java.io.File |
getOpenFile()
Returns a file that should be opened. |
java.io.File |
getSaveFile()
Returns a file for saving the document. |
void |
newDocumentCreated()
This method is called when a new document is created. |
Methods inherited from interface com.jniwrapper.win32.automation.ContainerHandler |
setContainer |
Method Detail |
public java.io.File getOpenFile()
This method is executed when the "Open" button is clicked.
public java.io.File getSaveFile()
This method is executed when the "Save" button is clicked.
public void newDocumentCreated()
public void documentOpened(java.io.File file)
public void documentSaved(java.io.File file)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |