1
2
3
4 package org.sirius.client.win32.classes;
5
6 import org.sirius.client.win32.Win32Client;
7
8
9
10
11
12 public class MenuItem {
13
14
15
16
17 private Win32Client client;
18
19
20
21 private Window owner;
22
23
24
25 private long hmenu;
26
27
28
29 private int pos;
30
31
32
33
34
35
36
37
38 public MenuItem(final Win32Client clientValue, final Window ownerValue,
39 final long hmenuValue, final int posValue) {
40 this.client = clientValue;
41 this.owner = ownerValue;
42 this.hmenu = hmenuValue;
43 this.pos = posValue;
44 }
45
46
47
48
49
50 public final boolean isChecked() {
51 return false;
52 }
53
54
55
56
57
58 public final boolean isEnabled() {
59 return false;
60 }
61
62
63
64
65
66 public final boolean isSeparator() {
67 return false;
68 }
69
70
71
72
73
74 public final void pick() throws Exception {
75 client.core().menu().pickItem(owner.getHwnd(), hmenu, pos);
76 }
77 }