本文整理汇总了Java中com.google.gwt.user.client.ui.Button.setText方法的典型用法代码示例。如果您正苦于以下问题:Java Button.setText方法的具体用法?Java Button.setText怎么用?Java Button.setText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.ui.Button
的用法示例。
在下文中一共展示了Button.setText方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: KV_PP_PropertiesView
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
/**
* Constructor.
*/
public KV_PP_PropertiesView() {
super();
initWidget(BINDER.createAndBindUi(this));
edit = new Button();
noResultLabel = new Label();
noResultLabel.setText(LocaleDictionary.get().getMessageValue(BatchClassManagementMessages.NO_RECORD_FOUND));
noResultLabel.setVisible(false);
edit.setText(AdminConstants.EDIT_BUTTON);
kvppPluginConfigurationCaptionPanel.setCaptionHTML(AdminConstants.PLUGIN_CONFIGURATION_HTML);
pluginDetailsCaptionPanel.setCaptionHTML(AdminConstants.PLUGIN_DETAILS_HTML);
kvppEditButtonPanel.setStyleName(AdminConstants.PADDING_STYLE);
kvppEditButtonPanel.add(edit);
kvppPluginViewVerticalPanel.add(noResultLabel);
configButton.setText(AdminConstants.CONFIG_BUTTON);
}
示例2: render
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
@Override
public void render(RendererCellReference cell, String text, Button button) {
Element e = button.getElement();
if(e.getPropertyString(ROW_KEY_PROPERTY) != getRowKey((JsonObject) cell.getRow())) {
e.setPropertyString(ROW_KEY_PROPERTY,
getRowKey((JsonObject) cell.getRow()));
}
if(e.getPropertyString(COLUMN_ID_PROPERTY) != getColumnId(getGrid()
.getColumn(cell.getColumnIndex()))) {
e.setPropertyString(COLUMN_ID_PROPERTY, getColumnId(getGrid()
.getColumn(cell.getColumnIndex())));
}
if (htmlContentAllowed) {
button.setHTML(text);
} else {
button.setText(text);
}
button.setEnabled(true);
}
示例3: render
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
@Override
public void render(RendererCellReference cell, Boolean enable, Button button) {
Element e = button.getElement();
if(e.getPropertyString(ROW_KEY_PROPERTY) != getRowKey((JsonObject) cell.getRow())) {
e.setPropertyString(ROW_KEY_PROPERTY,
getRowKey((JsonObject) cell.getRow()));
}
if(e.getPropertyString(COLUMN_ID_PROPERTY) != getColumnId(getGrid()
.getColumn(cell.getColumnIndex()))) {
e.setPropertyString(COLUMN_ID_PROPERTY, getColumnId(getGrid()
.getColumn(cell.getColumnIndex())));
}
String style = button.getStyleName();
if (style != null && style.contains("delete-confirm")) {
button.removeStyleName("delete-confirm");
}
if (htmlContentAllowed) {
button.setHTML(getState().delete);
} else {
button.setText(getState().delete);
}
button.setEnabled(enable);
}
示例4: RotateDialog
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public RotateDialog() {
super(RootPanel.get(), ButtonType.APPLY_HELP, _prop.getTitle(), "visualization.Rotate");
Button applyB= getButton(ButtonID.APPLY);
applyB.setText(_prop.getName("replot"));
createContents();
AllPlots.getInstance().addListener(new PlotChangeListener(this) );
updateNewPlot();
this.addButtonAreaWidgetBefore(_applyAll);
_applyAll.setVisible(false);
// _topPanel.setSize("360px", "300px");
setWidget(_topPanel);
}
示例5: SearchBar
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public SearchBar(){
setBackgroundColor("#F1F1F1");
setHeight(60);
icon = new Image("images/icon_arlearn.png");
button = new Button();
button.setText("Search");
button.getElement().getStyle().setProperty("position", "relative");
clear = new ImgButton();
clear.setSrc("icon_delete.png");
clear.setPosition(Positioning.ABSOLUTE);
clear.setTop("11px");
clear.setWidth(16);
clear.setHeight(16);
}
示例6: link
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
void link(Button button) {
this.button = button;
button.setText(title);
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
execute();
}
});
}
示例7: undoManualExtractionChanges
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public void undoManualExtractionChanges() {
presenter.setManualTableExtraction(Boolean.FALSE);
hideCheckBoxes();
for (Button button : tableNameVsButtonMap.keySet()) {
if (button.getText().equalsIgnoreCase(startExtractionLabel)) {
button.setText(manualExtractionLabel);
break;
}
}
columnVsCoordinates.clear();
}
示例8: createButton
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
protected Button createButton(
String title, String debugId, ClickHandler clickHandler, ButtonAlignment alignment) {
Button button = new Button();
button.setText(title);
button.ensureDebugId(debugId);
button.getElement().setId(debugId);
button.addStyleName(resources.windowCss().button());
addButtonAlignment(button, alignment);
button.addClickHandler(clickHandler);
// set default tab index
button.setTabIndex(0);
return button;
}
示例9: RenameDialogFooter
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
@Inject
public RenameDialogFooter(
UILocalizationConstant messages, LanguageServerLocalization localization) {
super(messages);
previewButton = new Button();
previewButton.setText(localization.renameDialogPreviewLabel());
previewButton.getElement().getStyle().setMarginRight(1, Unit.EM);
previewButton.addStyleName(resources.windowCss().button());
rootPanel.clear();
rootPanel.add(cancelButton);
rootPanel.add(previewButton);
rootPanel.add(okButton);
}
示例10: createContents
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
private void createContents() {
_useEmail= GwtUtil.makeCheckBox(_prop.makeBase("useEmail"));
_useEmail.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) { showEmail(_useEmail.getValue()); }
});
_emailField= SimpleInputField.createByProp(_prop.makeBase("email"));
setDefaultEmail();
// DEBUG
//_optionsPanel.insert(htmlObj, 0);
Label holder= new Label();
holder.setWidth("450px");
_panel.add(GwtUtil.centerAlign(_optionsPanel));
_panel.setSpacing(5);
_panel.add(holder);
//_layout.add(_panel, DockPanel.NORTH);
_contents.add(_useEmail);
_contents.add(_emailField);
_emailField.setVisible(_useEmail.getValue());
_contents.add(GwtUtil.centerAlign(_useEmail));
_contents.add(GwtUtil.centerAlign(_emailField));
_contents.setSpacing(5);
holder= new Label();
holder.setWidth("450px");
_contents.add(holder);
Button okb= this.getButton(ButtonID.OK);
okb.setText(DOWNLOAD_TXT);
}
示例11: BackgroundGroupsDialog
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public BackgroundGroupsDialog(Widget p, MonitorGroup groups) {
super(p, ButtonType.REMOVE,_prop.getTitle(), "downloads.Backgroundmonitor");
_groups= groups;
this.setWidget(_main);
createContents();
Button b= this.getButton(ButtonID.REMOVE);
b.setText("Hide");
setDefaultContentSize(500,250);
}
示例12: CatalogQueryDialog
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public CatalogQueryDialog (Widget parent, CatColumnInfo info, List<Param> params, String columns, String requiredColumns, String constraints, boolean defSelect) {
super(parent, ButtonType.OK_CANCEL, "Catalog Columns", "basics.catalog.columns");
Button b = this.getButton(BaseDialog.ButtonID.CANCEL);
b.setText("Close");
try{
panel = new CatddPanel(info, params, columns, requiredColumns, constraints, defSelect);
} catch (Exception e){
PopupUtil.showError("Catalog Error", e.getMessage());
}
setWidget(panel);
setDefaultContentSize(610,600);
setContentMinWidth(500);
setContentMinHeight(300);
}
示例13: FitsDownloadOpsDialog
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public FitsDownloadOpsDialog(WebPlotView pv) {
super(pv, ButtonType.OK, _prop.getTitle(),
true, "visualization.fitsDownloadOptions");
_pv= pv;
WebPlot plot= _pv.getPrimaryPlot();
Button ok= getButton(ButtonID.OK);
ok.setText(_prop.getName("download"));
plot.getPlotView().addListener(Name.REPLOT, new ReplotListener(this) );
createContents();
_topPanel.setSize("225px", "200px");
GwtUtil.setStyle(_topPanel, "borderBottom", "solid 1px");
this.setWidget(_topPanel);
}
示例14: StatisticsDialog
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public StatisticsDialog (MiniPlotWidget mpw, BandInfo info) {
super(mpw.getPlotView(), ButtonType.REMOVE, computeTitle(mpw), "visualization.fitsViewer");
Button b = this.getButton(BaseDialog.ButtonID.REMOVE);
b.setText("Close");
_wpv = mpw.getPlotView();
_wpv.addListener(this);
createContents(info, _wpv);
}
示例15: ColorStretchDialog
import com.google.gwt.user.client.ui.Button; //导入方法依赖的package包/类
public ColorStretchDialog(Widget w) {
super(w, ButtonType.APPLY_HELP, _prop.getTitle(), "visualization.fitsViewer");
Button applyB= getButton(BaseDialog.ButtonID.APPLY);
applyB.setText(_prop.getName("replot"));
AllPlots.getInstance().addListener(new PlotChangeListener(this) );
updateNewPlot();
this.addButtonAreaWidgetBefore(_applyAll);
_applyAll.setVisible(false);
_topPanel.setSize("360px", "390px");
this.setWidget(_topPanel);
}