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");
Finds widget by widgetName and store it to annotated variable. if widgetName is empty then widget will be extracted by annotated variable name.