Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / qadevOOo / runner / helper / WindowListener.java
bloba19ae27c62c000543eed84344ad110072b2c7c35
1 /*
2 * WindowListener.java
4 * Created on 30. Juli 2002, 12:36
5 */
7 package helper;
9 /**
10 * An own implementation of a XWindowListener
13 public class WindowListener implements com.sun.star.awt.XWindowListener {
15 // hidden called
16 public boolean hiddenTrigger;
17 // move called
18 public boolean movedTrigger;
19 // resize called
20 public boolean resizedTrigger;
21 // show called
22 public boolean shownTrigger;
23 // dispose called
24 public boolean disposeTrigger;
26 /**
27 * Creates a new WindowListener
29 public WindowListener() {
30 resetTrigger();
33 /**
34 * The window hidden event
36 public void windowHidden(com.sun.star.lang.EventObject eventObject) {
37 hiddenTrigger = true;
40 /**
41 * The window move event
43 public void windowMoved(com.sun.star.awt.WindowEvent windowEvent) {
44 movedTrigger = true;
47 /**
48 * The window resize event
50 public void windowResized(com.sun.star.awt.WindowEvent windowEvent) {
51 resizedTrigger = true;
54 /**
55 * The window show event
57 public void windowShown(com.sun.star.lang.EventObject eventObject) {
58 shownTrigger = true;
61 /**
62 * The dispose event
64 public void disposing(com.sun.star.lang.EventObject eventObject) {
65 disposeTrigger = true;
68 /**
69 * Reset all triggers to "not fired".
71 public void resetTrigger() {
72 hiddenTrigger = false;
73 movedTrigger = false;
74 resizedTrigger = false;
75 shownTrigger = false;
76 disposeTrigger = false;