This might be a loaded question.
I am using mvp4g. I have a view with a TextBox. In my presenter, I want
to do 2 things with the TextBox:
// in one part of the presenter
view.getMyTextBox().setFocus( true );
// in another part of the same presenter
String myText = view.getMyTextBox().getText();
In my view, I return the TextBox as a Focusable so that I can do
setFocus(). But then I can't do getText() - for that, I think I need to
return the TextBox as a HasText.
Is there a return type that will "cover" both of these?
public SomeReturnTypeThatLetsMeDoEverything getMyTextBox()
{
return this.myTextBox;
}
I know I must be missing something totally obvious, but I don't know what
it is. Any guidance would be appreciated. Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/KBbloD1XxmAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.