|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.wrapper.excel.Workbook
public class Workbook
Represents an Excel Workbook.
| Field Summary | |
|---|---|
(package private) static int |
WINDOW_WINDOWSTATE
|
static int |
WINDOW_XL_MAXIMIZED
|
| Constructor Summary | |
|---|---|
Workbook(org.eclipse.swt.ole.win32.OleAutomation workbook,
ExcelApplication excelApplication)
|
|
| Method Summary | |
|---|---|
void |
addSheetChangeListener(SheetChangeListener listener)
Adds a sheet change listener to this workbook. |
void |
addSheetSelectionChangeListener(SheetSelectionChangeListener listener)
Adds a selection change listener to this workbook. |
void |
close()
Closes this workbook without saving any changes. |
void |
close(boolean saveChanges,
java.io.File file)
Closes this workbook. |
ExcelApplication |
getApplication()
Return the application object that of the application that contains this workbook. |
java.util.List<Range> |
getNamedRanges()
Get all ranges that have a name associated with it. |
Worksheet |
getWorksheet(int nr)
Returns the n-th worksheet of this workbook. |
Worksheet |
getWorksheet(java.lang.String worksheetName)
Returns a Worksheet of this workbook by its name. |
void |
removeSheetChangeListner(SheetChangeListener listener)
Removes a sheet change listener from this workbook |
void |
removeSheetSelectionChangeListner(SheetSelectionChangeListener listener)
Removes a selection change listener from this workbook. |
void |
setWindowState(int state)
Set the window state to one of the following: WINDOW_XL_MAXIMIZED
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WINDOW_XL_MAXIMIZED
static final int WINDOW_WINDOWSTATE
| Constructor Detail |
|---|
Workbook(org.eclipse.swt.ole.win32.OleAutomation workbook,
ExcelApplication excelApplication)
| Method Detail |
|---|
public void addSheetChangeListener(SheetChangeListener listener)
listener - the listenerpublic void removeSheetChangeListner(SheetChangeListener listener)
listener - the listener to be removedpublic void addSheetSelectionChangeListener(SheetSelectionChangeListener listener)
listener - the listener to be addedpublic void removeSheetSelectionChangeListner(SheetSelectionChangeListener listener)
listener - the listener to be removedpublic Worksheet getWorksheet(java.lang.String worksheetName)
worksheetName - the name of the worksheet
public Worksheet getWorksheet(int nr)
nr - the index of the worksheet
null if the no worksheet with the
given index exists.public ExcelApplication getApplication()
public void setWindowState(int state)
state - only possible value so far: WINDOW_XL_MAXIMIZEDpublic java.util.List<Range> getNamedRanges()
public void close(boolean saveChanges,
java.io.File file)
saveChanges - If there are no changes to the workbook, this argument is
ignored. If there are changes to the workbook and the workbook
appears in other open windows, this argument is ignored. If
there are changes to the workbook but the workbook does not
appear in any other open windows, this argument specifies
whether changes should be saved, as shown in the following
list.
true: Saves the changes to the workbook.
If there is not yet a file name associated with the workbook,
then saveAs is used. If saveAs
is null, the user is asked to supply a file
name. false: Does not save the changes to the
workbook. file - Save changes under this filepublic void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||