Programming Guide


Interface definition for widgets

public interface WidgetInterface


ApplicationInterface getApplication();

double get_dbl(int prop);
double get_dbl(int item, int prop);

int get_int(int prop);
int get_int(int item, int prop);

ServerInterface getServer();

String get_str(int prop);
String get_str(int item, int prop);

int set_dbl(int prop, double value);
int set_dbl(int item, int prop, double value);

int set_int(int prop, int value);
int set_int(int item, int prop, int value);

int set_str(int prop, String value);
int set_str(int item, int prop, String value);

Library Function Interfaces
CFunctionsInterface getCFunctions();
ComFunctionsInterface getcomFunctions(); DMFunctionsInterface getDMFunctions();
RWFunctionsInterface getRWFunctions();
TMFunctionsInterface getTMFunctions();
TPFunctionsInterface getTPFunctions();
WSFunctionsInterface getWSFunctions();


Java only


WidgetInterface defines the methods that are common to all objects that correspond to Panther objects.

The get_int, get_str, and get_dbl methods are used to get property values. These methods come in two variants, using either one parameter or two. The version with two parameters is for widgets in arrays. The first parameter is the occurrence number. Use the PR_ values to identify the property requested.

The set_int, set_str, and set_dbl methods are used to set property values. These methods come in two variants, one with two parameters and one with three. The version with three parameters is used when referencing a particular occurrence in an array. The final parameter is the new value for the property.

The get*Functions methods are used to get handles to special objects that exist to support the Panther library functions. For a listing of the methods in each library function interface, refer to Chapter 6, "Java Library Function Interfaces."