Last change
on this file since 61 was
52,
checked in by sherbold, 14 years ago
|
- refactored translation layer features for Windows MFC into seperate packages de.ugoe.cs.eventbench.windows.*
|
File size:
566 bytes
|
Line | |
---|
1 | package de.ugoe.cs.eventbench.messagehandler;
|
---|
2 |
|
---|
3 | import de.ugoe.cs.eventbench.windows.data.WindowTree;
|
---|
4 |
|
---|
5 | public class HandlerDestroy extends MessageHandler {
|
---|
6 |
|
---|
7 | public HandlerDestroy() {
|
---|
8 | super();
|
---|
9 | }
|
---|
10 |
|
---|
11 | private int hwnd;
|
---|
12 |
|
---|
13 | @Override
|
---|
14 | public void onEndElement() {
|
---|
15 | if( hwnd!=0 ) {
|
---|
16 | WindowTree.getInstance().remove(hwnd);
|
---|
17 | }
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public void onParameter(String name, String value) {
|
---|
22 | if( name.equals("window.hwnd") ) {
|
---|
23 | hwnd = Integer.parseInt(value);
|
---|
24 | }
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public void onStartElement() {
|
---|
29 | hwnd = 0;
|
---|
30 | }
|
---|
31 |
|
---|
32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.