This member of Class WaveLinkWidget is supported on: Palm, CE
The Show Method displays or hides the current widget based on the showWidg parameter.
Syntax
public void Show(boolean showWidg)
throws WaveLinkError
Parameters
showWidg |
A true or false value that determines if a widget is displayed or hidden |
Throws
WaveLinkError
Remarks
When the ShowWidg parameter is set to true, the Show Method displays a widget that has been previously hidden. A value of false hides the widget.
Before using the Show Method, you must use the StoreWidgets Method to store widgets on the device while simultaneously causing them to display on the RF screen.
The StoreWidgets Method does not display widgets for which initial state is set to hidden.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
WaveLinkWidget myWidget;
try {
.
.
.
myWidget = factoryIface.CreateRepeaterButton(1, 2, 0, 0, WaveLinkWidget.RIGHTARROW, colIface);
// Set the property to hide the widget.
myWidget.setInitialFlags(WaveLinkWidget.INITHIDDEN);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
//Do error handling
}
.
.
.
try {
// Now show the hidden widget.
myWidget.Show(true);
}
catch (WaveLinkError wlErr) {
//Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other