Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/prolifics/jni/Screen.java


1   /* @(#)Screen.java  77.6 99/01/15 13:25:04" */
2   
3   /*************************************************/
4   /*  Copyright (c) 1998 - 1999       */
5   /*      by         */
6   /*  JYACC, Inc., New York NY USA     */
7   /*  and contributors.         */
8   /*  Use of this program is governed by the   */
9   /*  JYACC Public License Version 1.0, a copy of   */
10  /*  which can be obtained at       */
11  /*  http://www.possl.org/jyacc-license.html   */
12  /*************************************************/
13  
14  package com.prolifics.jni;
15  
16  public class Screen extends Widget implements ScreenInterface
17  {
18    public FieldInterface getField(String name)
19    {
20      WidgetInterface p = getWidget(name);
21      if (p instanceof FieldInterface)
22        return (FieldInterface)p;
23      return null;
24    }
25    public native FieldInterface getField(int fieldnum);
26    public native WidgetInterface getWidget(String name);
27  
28    private Screen(int id) { super(id); }
29  }