You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.
I need to set the button "text" label to a dynamic string, so it is set via myButton.setText("someText") This correctly sets the text label on the button.
However, when I call myButton.state().reset() the button's text is cleared. If the text is set from the UiBinder with <Button text="someText" /> it is not cleared when myButton.state().reset() is called.
I noticed that the code is surprisingly complex with Button#text(String text), and I wonder if this behavior is due to that. If I knew better what that code was attempting to accomplish, I could try to contribute a patch. Thanks.
The text was updated successfully, but these errors were encountered:
I noticed this behavior:
I need to set the button "text" label to a dynamic string, so it is set via
myButton.setText("someText")
This correctly sets the text label on the button.However, when I call
myButton.state().reset()
the button's text is cleared. If the text is set from the UiBinder with<Button text="someText" />
it is not cleared whenmyButton.state().reset()
is called.I noticed that the code is surprisingly complex with
Button#text(String text)
, and I wonder if this behavior is due to that. If I knew better what that code was attempting to accomplish, I could try to contribute a patch. Thanks.The text was updated successfully, but these errors were encountered: