Programming Guide



FieldInterface

Interface definition for fields

public interface FieldInterfaceextends WidgetInterface

Methods

amt_format
int amt_format(String value);
int amt_format(int item, String value);

clear_array
int clear_array();

dblval
double dblval();
double dblval(int item);

dtofield
int dtofield(double value, String format);
int dtofield(int item, double value, String format);

fval
int fval();
int fval(int item);

getfield
String getfield();
String getfield(int item);

getScreen
ScreenInterface getScreen();

gofield
int gofield();
int gofield(int item);

intval
int intval();
int intval(int item);

ioccur
int ioccur(int count);
int ioccur(int item, int count);

is_no
boolean is_no();
boolean is_no(int item);

is_null
boolean is_null();
boolean is_null(int item);

is_yes
boolean is_yes();
boolean is_yes(int item);

itofield
int itofield(int value);
int itofield(int item, int value);

off_gofield
int off_gofield(int offset);
int off_gofield(int item, int offset)
;

putfield
int putfield(String text);
int putfield(int item, String text)
;

Environment

Java only

Description

FieldInterface defines the methods for objects representing fields. In addition, objects of type FieldInterface support all the methods in WidgetInterface.

Java objects representing text fields, push buttons, toggle buttons, check boxes, radio buttons, dynamic labels, tab cards, option menus, combo boxes and scales are of type FieldInterface.

The method getScreen will return an object corresponding to the screen on which the field in question is found.

The other methods correspond in functionality to Panther library functions that have the same name, only with an sm_ prefix. Those library functions take parameters to indicate which field the function should operate on. Since these are methods of objects that correspond to fields, the field in question is always implicitly indicated.