![]() | Programming Guide | ![]() |
Interface definition for fields
public interface FieldInterface extends WidgetInterface
amt_formatint amt_format(String value);
int amt_format(int item, String value);clear_arrayint clear_array();dblvaldouble dblval();
double dblval(int item);dtofieldint dtofield(double value, String format);
int dtofield(int item, double value, String format);fvalint fval();
int fval(int item);getfieldString getfield();
String getfield(int item);getScreenScreenInterface getScreen();gofieldint gofield();
int gofield(int item);intvalint intval();
int intval(int item);ioccurint ioccur(int count);
int ioccur(int item, int count);is_noboolean is_no();
boolean is_no(int item);is_nullboolean is_null();
boolean is_null(int item);is_yesboolean is_yes();
boolean is_yes(int item);itofieldint itofield(int value);
int itofield(int item, int value);off_gofieldint off_gofield(int offset);;
int off_gofield(int item, int offset)putfieldint putfield(String text);;
int putfield(int item, String text)ww_readString ww_read();
String ww_read(int offset);
Java only
FieldInterfacedefines the methods for objects representing fields. In addition, objects of typeFieldInterfacesupport all the methods inWidgetInterface.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
getScreenwill 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.
![]()
![]()
![]()
![]()