Finds widget by widgetName and store it to annotated variable. if widgetName is empty then widget will be extracted by annotated variable name.
Widget name if is empty then retrieving name will be from variable name
@ViewWidget Button okButton; @ViewWidget("cancelButton") Button closeButton; // Without attribute okButton = manager.findWidgetByName("okButton"); manager.findWidgetByName("cancelButton");
See Implementation
Finds widget by widgetName and store it to annotated variable. if widgetName is empty then widget will be extracted by annotated variable name.