:: 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
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
void
setVisible( [in] boolean  Visible );

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

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

Description
sets the focus to the window.
addWindowListener
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
void
removeWindowListener( [in] XWindowListener  xListener );

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

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

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

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

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

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

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

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

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

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

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