|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.wrapper.excel.ExcelApplication
public class ExcelApplication
Represents the Excel Application. Usage:
Display display = new Display();
Shell shell = new Shell(display);
ExcelApplication excelApplication = new ExcelApplication(shell);
excelApplication.setVisible(true);
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
| Field Summary | |
|---|---|
static int |
ALWAYS_UPDATE_LINKS
|
(package private) static int |
APPLICATION_VISIBLE
|
static int |
NEVER_UPDATE_LINKS
|
static int |
USER_SPECIFIED_UPDATE_LINKS
|
| Constructor Summary | |
|---|---|
ExcelApplication(org.eclipse.swt.widgets.Shell shell)
|
|
| Method Summary | |
|---|---|
org.eclipse.swt.ole.win32.OleAutomation |
getAutomation()
Returns the ole automation object of the Excel Application. |
(package private) org.eclipse.swt.ole.win32.OleControlSite |
getControlSite()
|
long |
getNrOfWorkbooks()
Returns the number of workbooks open in this Excel Application. |
static void |
main(java.lang.String[] args)
For testing only |
Workbook |
openWorkbook(java.io.File file)
Opens a workbook. |
Workbook |
openWorkbook(java.io.File file,
int updateLinks,
boolean readOnly)
Opens a workbook. |
void |
quit()
Quit the Excel application. |
void |
setVisible(boolean visible)
Toggle the visibility of the application's main window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int APPLICATION_VISIBLE
public static final int USER_SPECIFIED_UPDATE_LINKS
public static final int NEVER_UPDATE_LINKS
public static final int ALWAYS_UPDATE_LINKS
| Constructor Detail |
|---|
public ExcelApplication(org.eclipse.swt.widgets.Shell shell)
| Method Detail |
|---|
public long getNrOfWorkbooks()
public Workbook openWorkbook(java.io.File file)
throws java.io.IOException
file - the workbook to open
java.io.IOException - if the workbook could not be opened
public Workbook openWorkbook(java.io.File file,
int updateLinks,
boolean readOnly)
throws java.io.IOException
file - the workbook to openupdateLinks - if Excel links shall be updated at loading timereadOnly - if the workbook shall be loaded as read-only.
java.io.IOException - if the workbook could not be openedpublic void setVisible(boolean visible)
visible - true to set it visibleorg.eclipse.swt.ole.win32.OleControlSite getControlSite()
public static void main(java.lang.String[] args)
args - command line argspublic void quit()
public org.eclipse.swt.ole.win32.OleAutomation getAutomation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||