Source code: com/prolifics/jni/Widget.java
1 /* @(#)Widget.java.linux 77.1 00/08/30 11:45:27 */
2 /*************************************************/
3 /* Copyright (c) 2000 */
4 /* by */
5 /* JYACC, Inc., New York NY USA */
6 /* and contributors. */
7 /* Use of this program is governed by the */
8 /* JYACC Public License Version 1.0, a copy of */
9 /* which can be obtained at */
10 /* http://www.possl.org/jyacc-license.html */
11 /*************************************************/
12
13 package com.prolifics.jni;
14
15 public class Widget implements WidgetInterface
16 {
17 public int get_int(int prop) { return get_int(0, prop); }
18 public native int get_int(int item, int prop);
19
20 public String get_str(int prop) { return get_str(0, prop); }
21 public native String get_str(int item, int prop);
22
23 public double get_dbl(int prop) { return get_dbl(0, prop); }
24 public native double get_dbl(int item, int prop);
25
26 public int set_int(int prop, int value)
27 { return set_int(0, prop, value); }
28 public native int set_int(int item, int prop, int value);
29
30 public int set_str(int prop, String value)
31 { return set_str(0, prop, value); }
32 public native int set_str(int item, int prop, String value);
33
34 public int set_dbl(int prop, double value)
35 { return set_dbl(0, prop, value); }
36 public native int set_dbl(int item, int prop, double value);
37
38 public native ApplicationInterface getApplication();
39
40 static CFunctionsInterface CF;
41 static DMFunctionsInterface DMF;
42 static TMFunctionsInterface TMF;
43 static RWFunctionsInterface RWF;
44
45 public CFunctionsInterface getCFunctions() { return CF; }
46 public DMFunctionsInterface getDMFunctions() { return DMF; }
47 public RWFunctionsInterface getRWFunctions() { return RWF; }
48 public TMFunctionsInterface getTMFunctions() { return TMF; }
49
50 public native WSFunctionsInterface getWSFunctions();
51
52 int id;
53 Widget(int id) { this.id = id; }
54 }