Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Button.state().reset() clears button text if set via Button.setText(String text) #486

Open
@twistedpair

Description

@twistedpair

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 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions