- Timestamp:
- 09/09/11 06:23:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/HandlerDestroy.java
r75 r171 3 3 import de.ugoe.cs.eventbench.windows.data.WindowTree; 4 4 5 /** 6 * <p> 7 * Handler for {@code WM_DESTROY} message. The handler maintains the 8 * {@link WindowTree}. 9 * </p> 10 * 11 * @author Steffen Herbold 12 * @version 1.0 13 */ 5 14 public class HandlerDestroy extends MessageHandler { 6 15 16 /** 17 * <p> 18 * Constructor. Creates a new HandlerDestroy. 19 * </p> 20 */ 7 21 public HandlerDestroy() { 8 22 super(); 9 23 } 10 24 25 /** 26 * <p> 27 * HWND of the window that is destroyed. 28 * </p> 29 */ 11 30 private int hwnd; 12 31 32 /* 33 * (non-Javadoc) 34 * 35 * @see de.ugoe.cs.eventbench.windows.MessageHandler#onEndElement() 36 */ 13 37 @Override 14 38 public void onEndElement() { 15 if ( hwnd!=0) {39 if (hwnd != 0) { 16 40 WindowTree.getInstance().remove(hwnd); 17 41 } 18 42 } 19 43 44 /* 45 * (non-Javadoc) 46 * 47 * @see 48 * de.ugoe.cs.eventbench.windows.MessageHandler#onParameter(java.lang.String 49 * , java.lang.String) 50 */ 20 51 @Override 21 52 public void onParameter(String name, String value) { 22 if ( name.equals("window.hwnd")) {53 if (name.equals("window.hwnd")) { 23 54 hwnd = Integer.parseInt(value); 24 55 } 25 56 } 26 57 58 /* 59 * (non-Javadoc) 60 * 61 * @see de.ugoe.cs.eventbench.windows.MessageHandler#onStartElement() 62 */ 27 63 @Override 28 64 public void onStartElement() {
Note: See TracChangeset
for help on using the changeset viewer.