本文整理了Java中com.google.gwt.user.client.ui.Button.setText()
方法的一些代码示例,展示了Button.setText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setText()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:setText
暂无
代码示例来源:origin: kaaproject/kaa
private void updateSaveButton(boolean enabled, boolean invalid) {
if (invalid) {
saveButton.setText(Utils.constants.save());
} else {
saveButton.setText(enabled ? Utils.constants.save() : Utils.constants.saved());
}
saveButton.setEnabled(enabled);
activateButton.setEnabled(!invalid && !enabled);
}
}
代码示例来源:origin: kaaproject/kaa
protected void updateSaveButton(boolean enabled, boolean invalid) {
if (create || invalid) {
getSaveButtonWidget().setText(create ? Utils.constants.add() : Utils.constants.save());
} else {
getSaveButtonWidget().setText(enabled ? Utils.constants.save() : Utils.constants.saved());
}
getSaveButtonWidget().setEnabled(enabled);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void updateSaveButton(boolean enabled, boolean invalid) {
getSaveButtonWidget().setText(Utils.constants.add());
getSaveButtonWidget().setEnabled(enabled);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void updateSaveButton(boolean enabled, boolean invalid) {
getSaveButtonWidget().setText(Utils.constants.send());
getSaveButtonWidget().setEnabled(enabled);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void updateSaveButton(boolean enabled, boolean invalid) {
getSaveButtonWidget().setText(Utils.constants.update());
getSaveButtonWidget().setEnabled(enabled);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
public void onClick(ClickEvent event) {
if (maxmin.getText().equals("Minimize")) {
maxmin.setText("Maximize");
scrollPanel.setVisible(false);
resizeIcon.setVisible(false);
} else {
scrollPanel.setVisible(true);
resizeIcon.setVisible(true);
maxmin.setText("Minimize");
}
}
});
代码示例来源:origin: kaaproject/kaa
getSaveButtonWidget().setText(Utils.constants.save());
getCancelButtonWidget().setText(Utils.constants.cancel());
requiredFieldsNoteLabel.getElement().setInnerSafeHtml(
SafeHtmlUtils.fromSafeConstant(Utils.messages
代码示例来源:origin: kaaproject/kaa
saveButton.setVisible(true);
if (isEmpty(struct.getId())) {
saveButton.setText(Utils.constants.save());
} else {
activateButton.setVisible(true);
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
/**
* Overwrites label of Cancel button
*
* @param label new label
*/
public void setCancelButtonLabel(String label) {
cancelButton.setText(label);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
/**
* Overwrites label of Ok button
*
* @param label new label
*/
public void setOkButtonLabel(String label) {
okButton.setText(label);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
/**
* Sets the confirm button text.
*
* @param text the text
*/
public void setConfirmButtonText(@NotNull String text) {
okButton.setText(text);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Override
public void setFirstChoiceLabel(final String firstChoiceLabel) {
footer.firstChoiceButton.setText(firstChoiceLabel);
footer.firstChoiceButton.setVisible(!firstChoiceLabel.isEmpty());
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Override
public void setThirdChoiceLabel(final String thirdChoiceLabel) {
footer.thirdChoiceButton.setText(thirdChoiceLabel);
footer.thirdChoiceButton.setVisible(!thirdChoiceLabel.isEmpty());
}
代码示例来源:origin: net.wetheinter/gwt-user
public void onClick(ClickEvent event) {
if (maxmin.getText().equals("Minimize")) {
maxmin.setText("Maximize");
scrollPanel.setVisible(false);
resizeIcon.setVisible(false);
} else {
scrollPanel.setVisible(true);
resizeIcon.setVisible(true);
maxmin.setText("Minimize");
}
}
});
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
@Override
public void showDialog(ProjectWizardMode wizardMode) {
this.isCreatingNewProject = wizardMode == CREATE;
if (wizardMode == CREATE) {
setTitle(locale.projectWizardDefaultTitleText());
saveButton.setText(locale.projectWizardDefaultSaveButtonText());
} else if (wizardMode == UPDATE) {
setTitle(locale.projectWizardTitleText());
saveButton.setText(locale.projectWizardSaveButtonText());
}
show();
}
代码示例来源:origin: fr.lteconsulting/hexa.core
public void setButtonText( Object obj, String text )
{
for( int i = 0; i < panel.getWidgetCount(); i++ )
{
Button b = (Button) panel.getWidget( i );
if( b.getElement().getPropertyObject( "object" ) == obj )
b.setText( text );
}
}
代码示例来源:origin: org.geomajas.plugin/geomajas-client-gwt2-plugin-editing-example-jar
@UiHandler("suspendBtn")
protected void onSuspendButtonClicked(ClickEvent event) {
if (editService.isStarted() && !editService.isSuspended()) {
editService.suspend();
suspendBtn.setText(MESSAGES.generalResume());
} else if (editService.isSuspended()) {
editService.resume();
suspendBtn.setText(MESSAGES.generalSuspend());
}
}
代码示例来源:origin: org.geomajas.plugin/geomajas-client-gwt2-plugin-editing-example-jar
@UiHandler("suspendBtn")
protected void onSuspendButtonClicked(ClickEvent event) {
if (editService.isStarted() && !editService.isSuspended()) {
editService.suspend();
suspendBtn.setText(MESSAGES.generalResume());
} else if (editService.isSuspended()) {
editService.resume();
suspendBtn.setText(MESSAGES.generalSuspend());
}
}
}
代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client
@Override
public void setLoaderVisibility(boolean isVisible) {
if (isVisible) {
accept.setHTML("<i></i>");
accept.setEnabled(false);
} else {
accept.setText(locale.moveDialogButtonOk());
accept.setEnabled(true);
}
}
代码示例来源:origin: org.geomajas/geomajas-gwt-client-impl
private void toggleStackPanel() {
stackPanel.setVisible(!stackPanel.isVisible());
detailsButton.setText(stackPanel.isVisible() ? messages.exceptionDialogCloseDetails() : messages
.exceptionDialogShowDetails());
}
}
内容来源于网络,如有侵权,请联系作者删除!