Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: awt ::

interface XWindow
Base Interfaces
XWindow
┗ ::com::sun::star::lang::XComponent

::com::sun::star::lang::XComponent
(referenced interface's summary:)
allows to exclicitly free resources and break cyclic references.
Description
specifies the basic operations for a window component.

A window is a rectangular region on an output device with its own position, size, and internal coordinate system. A window is used for displaying data. In addition, the window receives events from the user.

Developers Guide
OfficeDev - Component - Window Interfaces
OfficeDev - Frames - Linking Components and Windows
OfficeDev - Windows

Methods' Summary
setPosSize sets the outer bounds of the window.  
getPosSize returns the outer bounds of the window.  
setVisible shows or hides the window depending on the parameter.  
setEnable enables or disables the window depending on the parameter.  
setFocus sets the focus to the window.  
addWindowListener adds a window listener to the object.  
removeWindowListener removes the specified window listener from the listener list.  
addFocusListener adds a focus listener to the object.  
removeFocusListener removes the specified focus listener from the listener list.  
addKeyListener adds a key listener to the object.  
removeKeyListener removes the specified key listener from the listener list.  
addMouseListener adds a mouse listener to the object.  
removeMouseListener removes the specified mouse listener from the listener list.  
addMouseMotionListener adds a mouse motion listener to the object.  
removeMouseMotionListener removes the specified mouse motion listener from the listener list.  
addPaintListener adds a paint listener to the object.  
removePaintListener removes the specified paint listener from the listener list.  
Methods' Details
setPosSize
[oneway] void
setPosSize( [in] long  X,
[in] long  Y,
[in] long  Width,
[in] long  Height,
[in] short  Flags );

Description
sets the outer bounds of the window.
Parameter X
the x-coordinate of the window.
Parameter Y
the y-coordinate of the window.
Parameter Width
the width of the window.
Parameter Height
the height of the window.
Parameter Flags
Flags are of type PosSize and specify, which parameters are taken into account when setting the outer bounds of the window.
getPosSize
Rectangle
getPosSize();

Description
returns the outer bounds of the window.
setVisible
[oneway] void
setVisible( [in] boolean  Visible );

Description
shows or hides the window depending on the parameter.
setEnable
[oneway] void
setEnable( [in] boolean  Enable );

Description
enables or disables the window depending on the parameter.
setFocus
[oneway] void
setFocus();

Description
sets the focus to the window.
addWindowListener
[oneway] void
addWindowListener( [in] XWindowListener  xListener );

Description
adds a window listener to the object.
Parameter xListener
the listener to add. If this listener also supports the XWindowListener2 interface, it will receive the additional events declared in XWindowListener2.
removeWindowListener
[oneway] void
removeWindowListener( [in] XWindowListener  xListener );

Description
removes the specified window listener from the listener list.
addFocusListener
[oneway] void
addFocusListener( [in] XFocusListener  xListener );

Description
adds a focus listener to the object.
removeFocusListener
[oneway] void
removeFocusListener( [in] XFocusListener  xListener );

Description
removes the specified focus listener from the listener list.
addKeyListener
[oneway] void
addKeyListener( [in] XKeyListener  xListener );

Description
adds a key listener to the object.
removeKeyListener
[oneway] void
removeKeyListener( [in] XKeyListener  xListener );

Description
removes the specified key listener from the listener list.
addMouseListener
[oneway] void
addMouseListener( [in] XMouseListener  xListener );

Description
adds a mouse listener to the object.
removeMouseListener
[oneway] void
removeMouseListener( [in] XMouseListener  xListener );

Description
removes the specified mouse listener from the listener list.
addMouseMotionListener
[oneway] void
addMouseMotionListener( [in] XMouseMotionListener  xListener );

Description
adds a mouse motion listener to the object.
removeMouseMotionListener
[oneway] void
removeMouseMotionListener( [in] XMouseMotionListener  xListener );

Description
removes the specified mouse motion listener from the listener list.
addPaintListener
[oneway] void
addPaintListener( [in] XPaintListener  xListener );

Description
adds a paint listener to the object.
removePaintListener
[oneway] void
removePaintListener( [in] XPaintListener  xListener );

Description
removes the specified paint listener from the listener list.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.