当前位置: 首页>>代码示例>>Java>>正文


Java Button.setText方法代码示例

本文整理汇总了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);
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:19,代码来源:KV_PP_PropertiesView.java

示例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);
     }
 
开发者ID:vaadin,项目名称:grid-renderers-collection-addon,代码行数:23,代码来源:HtmlButtonRendererConnector.java

示例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);
     }
 
开发者ID:vaadin,项目名称:grid-renderers-collection-addon,代码行数:27,代码来源:DeleteButtonRendererConnector.java

示例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);
    }
 
开发者ID:lsst,项目名称:firefly,代码行数:17,代码来源:RotateDialog.java

示例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);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:18,代码来源:SearchBar.java

示例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();
    }
  });
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:12,代码来源:DialogButton.java

示例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();
}
 
开发者ID:kuzavas,项目名称:ephesoft,代码行数:12,代码来源:TableExtractionView.java

示例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;
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:Window.java

示例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);
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:RenameDialogFooter.java

示例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);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:32,代码来源:DynDownloadSelectionDialog.java

示例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);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:10,代码来源:BackgroundGroupsDialog.java

示例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);

}
 
开发者ID:lsst,项目名称:firefly,代码行数:16,代码来源:CatalogQueryDialog.java

示例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);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:16,代码来源:FitsDownloadOpsDialog.java

示例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);

}
 
开发者ID:lsst,项目名称:firefly,代码行数:10,代码来源:StatisticsDialog.java

示例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);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:15,代码来源:ColorStretchDialog.java


注:本文中的com.google.gwt.user.client.ui.Button.setText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。