| Home >> All >> com >> prolifics >> [ jni Javadoc ] |
Source code: com/prolifics/jni/Application.java
1 /* @(#)Application.java.linux 77.1 00/08/30 12:58:38" */ 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 Application extends Widget implements ApplicationInterface 16 { 17 public ScreenInterface getScreen(String name, int instance) 18 { return getScreenByName(name, instance); } 19 public ScreenInterface getScreen(String name) 20 { return getScreenByName(name, 1); } 21 22 public ScreenInterface getScreen(int level) 23 {return getScreenByLevel(level); } 24 public ScreenInterface getScreen() 25 { return getScreenByLevel(0); } 26 27 public native WidgetInterface getWidget(int id); 28 29 private native ScreenInterface getScreenByName 30 (String name, int instance); 31 private native ScreenInterface getScreenByLevel(int level); 32 33 private Application(int id) 34 { 35 super(id); 36 37 CF = new CFunctions(); 38 DMF = new DMFunctions(); 39 TMF = new TMFunctions(); 40 RWF = new RWFunctions(); 41 } 42 }