Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

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

interface XWindow

Base Interface
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.



Known Services which Export this Interface

com::sun::star::awt::UnoControlContainer specifies an abstract control which can contain other controls. One additional interface ( XControlContainer ) is specified. An UnoControlContainer contains other UnoControl s.
com::sun::star::awt::UnoControl specifies an abstract control.
com::sun::star::frame::Controller is an abstract service for a component which offers a deeper integration of desktop components than a UnoControl can offer.

Methods' 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.

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.
getPosSize
 
com::sun::star::awt::Rectangle
getPosSize();
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 ] com::sun::star::awt::XWindowListener xListener );

Description
adds the specified component listener to receive component events from this window component.
removeWindowListener
 
[ oneway ] void
removeWindowListener(
[ in ] com::sun::star::awt::XWindowListener xListener );

Description
removes the specified listener so it no longer receives component events from this window component.
addFocusListener
 
[ oneway ] void
addFocusListener(
[ in ] com::sun::star::awt::XFocusListener xListener );

Description
adds the specified focus listener to receive focus events from this window component.
removeFocusListener
 
[ oneway ] void
removeFocusListener(
[ in ] com::sun::star::awt::XFocusListener xListener );

Description
removes the specified focus listener so it no longer receives focus events from this component.
addKeyListener
 
[ oneway ] void
addKeyListener(
[ in ] com::sun::star::awt::XKeyListener xListener );

Description
adds the specified key listener to receive key events from this component.
removeKeyListener
 
[ oneway ] void
removeKeyListener(
[ in ] com::sun::star::awt::XKeyListener xListener );

Description
removes the specified key listener so it no longer receives key events from this component.
addMouseListener
 
[ oneway ] void
addMouseListener(
[ in ] com::sun::star::awt::XMouseListener xListener );

Description
adds the specified mouse listener to receive mouse events from this component.
removeMouseListener
 
[ oneway ] void
removeMouseListener(
[ in ] com::sun::star::awt::XMouseListener xListener );

Description
removes the specified mouse listener so it no longer receives mouse events from this component.
addMouseMotionListener
 
[ oneway ] void
addMouseMotionListener(
[ in ] com::sun::star::awt::XMouseMotionListener xListener );

Description
adds the specified mouse motion listener to receive mouse motion events from this component.
removeMouseMotionListener
 
[ oneway ] void
removeMouseMotionListener(
[ in ] 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
 
[ oneway ] void
addPaintListener(
[ in ] com::sun::star::awt::XPaintListener xListener );

Description
adds the specified paint listener to receive panit events from this component.
removePaintListener
 
[ oneway ] void
removePaintListener(
[ in ] 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