interface XWindow in module com::sun::star::awt::

(Global Index)

Syntax

interface XWindow : com::sun::star::lang::XComponent ;

Description

specifies the basic operations for a window component.

A windows is a rectangular region on an output device with its own position, size, and internal coordinate system. Despite of displaying the main sense of a window is to receive events from the user.

Method Summary

setPosSize sets the outer bounds of the window.

getPosSize

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 the specified component listener to receive component events from this window component.

removeWindowListener removes the specified listener so it no longer receives component events from this window component.

addFocusListener adds the specified focus listener to receive focus events from this window component.

removeFocusListener removes the specified focus listener so it no longer receives focus events from this component.

addKeyListener adds the specified key listener to receive key events from this component.

removeKeyListener removes the specified key listener so it no longer receives key events from this component.

addMouseListener adds the specified mouse listener to receive mouse events from this component.

removeMouseListener removes the specified mouse listener so it no longer receives mouse events from this component.

addMouseMotionListener adds the specified mouse motion listener to receive mouse motion events from this component.

removeMouseMotionListener removes the specified mouse motion listener so it no longer receives mouse motion events from this component.

addPaintListener adds the specified paint listener to receive panit events from this component.

removePaintListener removes the specified paint listener so it no longer receives paint events from this component.

Known Services Which Export this Interface

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

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

com::sun::star::frame::Controller

Method Details



setPosSize

Syntax

oneway void setPosSize (
long X,
long Y,
long Width,
long Height,
short Flags );

Description

sets the outer bounds of the window.


getPosSize

Syntax

com::sun::star::awt::Rectangle getPosSize ();

Returns

the outer bounds of the window.

setVisible

Syntax

oneway void setVisible (
boolean Visible );

Description

shows or hides the window depending on the parameter.


setEnable

Syntax

oneway void setEnable (
boolean Enable );

Description

enables or disables the window depending on the parameter.


setFocus

Syntax

oneway void setFocus ();

Description

sets the focus to the window.


addWindowListener

Syntax

oneway void addWindowListener (
com::sun::star::awt::XWindowListener xListener );

Description

adds the specified component listener to receive component events from this window component.


removeWindowListener

Syntax

oneway void removeWindowListener (
com::sun::star::awt::XWindowListener xListener );

Description

removes the specified listener so it no longer receives component events from this window component.


addFocusListener

Syntax

oneway void addFocusListener (
com::sun::star::awt::XFocusListener xListener );

Description

adds the specified focus listener to receive focus events from this window component.


removeFocusListener

Syntax

oneway void removeFocusListener (
com::sun::star::awt::XFocusListener xListener );

Description

removes the specified focus listener so it no longer receives focus events from this component.


addKeyListener

Syntax

oneway void addKeyListener (
com::sun::star::awt::XKeyListener xListener );

Description

adds the specified key listener to receive key events from this component.


removeKeyListener

Syntax

oneway void removeKeyListener (
com::sun::star::awt::XKeyListener xListener );

Description

removes the specified key listener so it no longer receives key events from this component.


addMouseListener

Syntax

oneway void addMouseListener (
com::sun::star::awt::XMouseListener xListener );

Description

adds the specified mouse listener to receive mouse events from this component.


removeMouseListener

Syntax

oneway void removeMouseListener (
com::sun::star::awt::XMouseListener xListener );

Description

removes the specified mouse listener so it no longer receives mouse events from this component.


addMouseMotionListener

Syntax

oneway void addMouseMotionListener (
com::sun::star::awt::XMouseMotionListener xListener );

Description

adds the specified mouse motion listener to receive mouse motion events from this component.


removeMouseMotionListener

Syntax

oneway void removeMouseMotionListener (
com::sun::star::awt::XMouseMotionListener xListener );

Description

removes the specified mouse motion listener so it no longer receives mouse motion events from this component.


addPaintListener

Syntax

oneway void addPaintListener (
com::sun::star::awt::XPaintListener xListener );

Description

adds the specified paint listener to receive panit events from this component.


removePaintListener

Syntax

oneway void removePaintListener (
com::sun::star::awt::XPaintListener xListener );

Description

removes the specified paint listener so it no longer receives paint events from this component.

Top of Page