This member of Class WaveLinkWidget is supported on: Palm, CE
The SetReturnInfo Method sets the type and value of events returned by the widget.
Syntax
public void SetReturnInfo(int infoIndex, int eventType, String eventValue, int eventSymbology)
throws IllegalArgumentException
Parameters
infoIndex |
The variable that specifies the return type for widgets with multiple return types. Pass a value of 0 unless the widget has multiple return types |
eventType |
The variable that specifies the event type returned by the widget |
eventValue |
The variable that specifies the value returned by the widget |
eventSymbology |
The variable that specifies the barcode type returned by the widget . Use a value of WLNOSYMBOLOGY if you do not want a barcode symbology returned by the widget. |
Throws
IllegalArgumentException
Remarks
Use a value of zero (0) for the infoIndex parameter for all widgets unless the widget has multiple return types. Currently, only the checkbox widget has multiple return types. The possible values for the checkbox widget are:
0 - UNCHECKED
1 - CHECKED
2 – UNDETERMINED
The default event value returned by a widget is different for different widget types. Use the RFInput Method to return the value of the widget.
The default event type is WLWIDGETTYPE. To process user input based on the return type (command key, widget input, scanned input., use the LastInputType Method.
The default event value returned by a widget is different for different widget types. Use the RFInput Method to return the value of the widget.
The possible symbology types are:
B_UPC
CODABAR
CODE_11
CODE_39
CODE_93
CODE_128
CODE_D25
CODE_I25
D25_IATA
EAN_8
EAN_13
MSI
PDF_417
TO_39
UCC_128
UPC_A
UPC_E0
UPC_E1
WLNOSYMBOLOGY
Use a value of WLNOSYMBOLOGY if you do not want a barcode symbology returned by the widget.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
WaveLinkWidget myWidget;
try {
// Create one or more widgets.
.
.
.
myWidget = factoryIface.CreateRepeaterButton(1, 2, 0, 0, WaveLinkWidget.RIGHTARROW, colIface);
// Set the return info.
myWidget.SetReturnInfo(0, WaveLinkIO.WLKEYTYPE, "RIGHT", WaveLinkBarcode.WLNOSYMBOLOGY);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
// Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other