/** * {@inheritDoc} */ @Override public void setText(String text) { button.setText(text); }
/** * Creates a Button with the given caption. * * @param caption * the caption of the Button */ public Button(String caption) { this(); setText(caption); }
@Override public void init(NewMessagePresenter p) { this.presenter = p; createButton.setText(constants.SendMessage()); }
private void setLoadingBehavior(String behavior) { // Remove icon because it will be removed by Bootstrap's "$(element).button(behavior)" anyway icon.removeFromParent(); setLoadingBehavior(getElement(), behavior); // Recreate icon and add it to inner content with setText() icon = new Icon(icon.getIconType()); setText(getText()); }
@Override public void init(PromoteChangesPresenter presenter) { this.presenter = presenter; accordionLabel.setText(constants.Promote_Assets()); chooseRepositoryLabel.setText(constants.Choose_Repository()); chooseSourceBranchLabel.setText(constants.Choose_Source_Branch()); chooseDestBranchLabel.setText(constants.Choose_Destination_Branch()); promoteButton.setText(constants.Promote_Assets()); }
@Override public void init(RepositoryConfigurationPresenter presenter) { this.presenter = presenter; accordionLabel.setText(constants.Repository_Configuration()); chooseRepositoryLabel.setText(constants.Choose_Repository()); releaseBranchLabel.setText(constants.Release_Branch()); devBranchLabel.setText(constants.Dev_Branch()); configureButton.setText(constants.Configure_Repository()); versionLabel.setText(constants.Version()); }
@Override public void init(BuildConfigurationPresenter presenter) { this.presenter = presenter; accordionLabel.setText(constants.Build_Configuration()); chooseRepositoryLabel.setText(constants.Choose_Repository()); chooseBranchLabel.setText(constants.Choose_Branch()); chooseProjectLabel.setText(constants.Choose_Project()); userNameLabel.setText(constants.User_Name()); passwordLabel.setText(constants.Password()); serverURLLabel.setText(constants.Server_URL()); deployToRuntimeLabel.setText(constants.Deploy_To_Runtime()); buildButton.setText(constants.Build_Project()); }