|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jniwrapper.win32.jexcel.BaseClass
com.jniwrapper.win32.jexcel.Window
This class provides functionality for working with Excel windows.
| Nested Class Summary | |
static class |
Window.State
This class is an enumeration of supported window states. |
| Method Summary | |
void |
activate()
Activates the window. |
Application |
getApplication()
Returns the parent application. |
java.lang.String |
getCaption()
Returns the caption of the window. |
int |
getHeight()
Returns the current height of the window in pixels. |
int |
getIndex()
Returns the index number of the window. |
com.jniwrapper.win32.automation.OleMessageLoop |
getOleMessageLoop()
Returns the message loop thread for processing native peer function calls. |
com.jniwrapper.win32.excel.Window |
getPeer()
Returns the appropriate native peer. |
Window.State |
getState()
Returns the window state. |
int |
getWidth()
Returns the current width of the window in pixels. |
GenericWorkbook |
getWorkbook()
Returns the contained workbook. |
double |
getZoom()
Returns the document zoom in percents. |
boolean |
isVisible()
Checked if the window in shown. |
void |
setCaption(java.lang.String caption)
Sets up the caption of the window. |
void |
setHeight(int height)
Sets up the height of the window. |
void |
setState(Window.State state)
Changes the window state. |
void |
setVisible(boolean visible)
Sets up the visibility of the window. |
void |
setWidth(int width)
Sets up the width of the window. |
void |
setZoom(double zoom)
Specifies the document zoom in percents. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public com.jniwrapper.win32.excel.Window getPeer()
public java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption - is the caption to be set up.
java.lang.IllegalArgumentException - the specified caption is null.public void activate()
public GenericWorkbook getWorkbook()
public int getIndex()
public void setHeight(int height)
height - is the height in pixels to be set up.
java.lang.IllegalArgumentException - if the specified height is negative or cannot be set up.
java.lang.IllegalStateException - if the window is not in @link State.NORMAL state.public int getHeight()
public void setWidth(int width)
width - is the width in pixels to be set up.
java.lang.IllegalArgumentException - if the specified width is negative or cannot be set up.
java.lang.IllegalStateException - if the window is not in @link State.NORMAL state.public int getWidth()
public boolean isVisible()
true if the window is shown.public void setVisible(boolean visible)
visible - is a state to set up.public double getZoom()
public void setZoom(double zoom)
zoom - is the document zoom in percents.
java.lang.IllegalArgumentException - if the specified zoom cannot be set up.public void setState(Window.State state)
state - is a new state.
java.lang.IllegalArgumentException - if the tager state is null.Window.Statepublic Window.State getState()
Window.Statepublic com.jniwrapper.win32.automation.OleMessageLoop getOleMessageLoop()
public Application getApplication()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||