|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.jexcel.Window
public class 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 application object. |
java.lang.String |
getCaption()
Returns the caption of the window. |
boolean |
getDisplayFormulas()
Checks the visibility of formulas in this window. |
boolean |
getDisplayGridlines()
Checks the visibility of griglines in this window. |
boolean |
getDisplayHeadings()
Checks the visibility of headings in this window. |
boolean |
getDisplayHorizontalScrollBar()
Checks the visibility of horizontal scroll bar in this window. |
boolean |
getDisplayOutline()
Checks the visibility of outline in this window. |
boolean |
getDisplayVerticalScrollBar()
Checks the visibility of vertical scroll bar in this window. |
boolean |
getDisplayWorkbookTabs()
Checks the visibility of workbook tabs in this 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 |
isAutoDelete()
|
boolean |
isVisible()
Checked if the window in shown. |
void |
release()
Releases this wrapper object. |
void |
setAutoDelete(boolean value)
|
void |
setCaption(java.lang.String caption)
Sets up the caption of the window. |
void |
setDisplayFormulas(boolean value)
Sets up the visibility of formulas in the window. |
void |
setDisplayGridlines(boolean value)
Sets up the visibility of griglines in the window. |
void |
setDisplayHeadings(boolean value)
Sets up the visibility of headings scroll bar in the window. |
void |
setDisplayHorizontalScrollBar(boolean value)
Sets up the visibility of horizontal scroll bar in the window. |
void |
setDisplayOutline(boolean value)
Sets up the visibility of outline in the window. |
void |
setDisplayVerticalScrollBar(boolean value)
Sets up the visibility of vertical scroll bar in the window. |
void |
setDisplayWorkbookTabs(boolean value)
Sets up the visibility of workbook tabs in the window. |
void |
setHeight(int height)
Sets up the height of the window. |
protected void |
setOleMessageLoop(com.jniwrapper.win32.automation.OleMessageLoop oleMessageLoop)
|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 target state is null
.Window.State
public Window.State getState()
Window.State
public void setDisplayGridlines(boolean value)
value
- value is a state to set up.public boolean getDisplayGridlines()
public void setDisplayFormulas(boolean value)
value
- value is a state to set up.public boolean getDisplayFormulas()
public void setDisplayHorizontalScrollBar(boolean value)
value
- value is a state to set up.public boolean getDisplayHorizontalScrollBar()
public void setDisplayVerticalScrollBar(boolean value)
value
- value is a state to set up.public boolean getDisplayVerticalScrollBar()
public void setDisplayHeadings(boolean value)
value
- value is a state to set up.public boolean getDisplayHeadings()
public void setDisplayWorkbookTabs(boolean value)
value
- value is a state to set up.public boolean getDisplayWorkbookTabs()
public void setDisplayOutline(boolean value)
value
- value is a state to set up.public boolean getDisplayOutline()
public void release()
public Application getApplication()
public com.jniwrapper.win32.automation.OleMessageLoop getOleMessageLoop()
protected void setOleMessageLoop(com.jniwrapper.win32.automation.OleMessageLoop oleMessageLoop)
public void setAutoDelete(boolean value)
setAutoDelete
in interface com.jniwrapper.AutoDeleteParameter
public boolean isAutoDelete()
isAutoDelete
in interface com.jniwrapper.AutoDeleteParameter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |