For Instance how can I use the input 'hasTypedSomeToken' in my Anonymou inner class in the following -
public class Login { void display(boolean hasTypedSomeToken) { //some code here Button btnLogIn = new Button("Login", new ClickHandler() { @Override public void onClick(ClickEvent event) { if(Login.this.hasTypedSomeToken) //HOW TO USE hasTypedSomeToken HERE { //do something } } } }
Login.this.somethingis for accessing field of thisLogininstance.