本文整理汇总了Java中com.smartgwt.client.widgets.IButton类的典型用法代码示例。如果您正苦于以下问题:Java IButton类的具体用法?Java IButton怎么用?Java IButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IButton类属于com.smartgwt.client.widgets包,在下文中一共展示了IButton类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createDetailsLabelAndExportButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private HLayout createDetailsLabelAndExportButton() {
HLayout layout = new HLayout();
layout.setDefaultLayoutAlign(VerticalAlignment.CENTER);
layout.setHeight(30);
Label detailsLabel = new Label("<h3>Details</h3>");
detailsLabel.setHeight(20);
layout.addMember(detailsLabel);
layout.addMember(new LayoutSpacer());
IButton export = new IButton("Export");
export.setAutoFit(true);
export.addClickHandler(downloadUsageData());
layout.addMember(export);
LayoutSpacer toAlignWithRefresh = new LayoutSpacer();
toAlignWithRefresh.setWidth(2);
layout.addMember(toAlignWithRefresh);
return layout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:22,代码来源:UsageView.java
示例2: createButtons
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private Canvas createButtons() {
IButton btnSubmit = new IButton(i18nSgwt.dialog_LoginButtonTitle(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
submitCredentials();
}
});
HStack btnLayout = new HStack(5);
btnLayout.setAutoHeight();
btnLayout.setLayoutTopMargin(20);
btnLayout.setLayoutAlign(Alignment.CENTER);
btnLayout.setMembers(btnSubmit);
return btnLayout;
}
开发者ID:proarc,项目名称:proarc,代码行数:17,代码来源:LoginWindow.java
示例3: SelectionView
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
SelectionView(ClientMessages i18n) {
this.i18n = i18n;
setAutoHeight();
setIsGroup(true);
setGroupTitle(i18n.ImportParentChooser_SelectionForm_Title());
setLayoutMargin(4);
selection = new Canvas();
selection.setWidth100();
selection.setAutoHeight();
selection.setMargin(4);
selection.setCanSelectText(Boolean.TRUE);
clear = new IButton(i18n.ImportParentChooser_SelectionForm_Clear_Title());
clear.setTooltip(i18n.ImportParentChooser_SelectionForm_Clear_Hint());
clear.setAutoFit(Boolean.TRUE);
setMembers(selection, clear);
}
开发者ID:proarc,项目名称:proarc,代码行数:17,代码来源:ImportParentChooser.java
示例4: createButtons
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
public void createButtons() {
final IButton createRunButton = new IButton("Create Run");
final IButton copyButton = new IButton("Copy Game");
buttonLayout = new HLayout();
buttonLayout.setAlign(Alignment.CENTER);
buttonLayout.setLayoutMargin(6);
buttonLayout.setMembersMargin(6);
buttonLayout.setHeight(30);
buttonLayout.addMember(createRunButton);
buttonLayout.addMember(copyButton);
createRunButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
}
});
}
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:19,代码来源:GameDisplay.java
示例5: createButtonLayout
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private void createButtonLayout() {
final IButton addRoles = new IButton("Add roles");
buttonLayout = new HLayout();
buttonLayout.setAlign(Alignment.CENTER);
buttonLayout.setLayoutMargin(6);
buttonLayout.setMembersMargin(6);
buttonLayout.addMember(addRoles);
addRoles.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
addRoles.setDisabled(true);
selectedRoles = roleSelect.getValues();
RoleWindow.this.destroy();
proceedToRunCreation();
}
});
}
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:20,代码来源:RegisterForGame.java
示例6: customize
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private static void customize(FeatureAttributeWindow window, Feature feature) {
DockableWindow.mixin(window);
if (isSelectOnZoom()) {
ToolStrip ts = window.getToolStrip();
Canvas editBtn = null;
// hackety hack
for (Canvas c : ts.getMembers()) {
if (c instanceof IButton && WidgetLayout.iconEdit.equals(((IButton) c).getIcon())) {
editBtn = c;
}
}
ts.removeMembers(ts.getMembers()); // clear
ts.addMember(new SelectingZoomButton(feature));
if (editBtn != null) {
ts.addSpacer(2);
ts.addMember(editBtn);
}
}
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:20,代码来源:FeatureDetailWidgetFactory.java
示例7: createEnlargeButtonLayout
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private Canvas createEnlargeButtonLayout() {
HLayout buttonLayout = new HLayout();
buttonLayout.setWidth100();
buttonLayout.setHeight(25);
buttonLayout.setLayoutMargin(3);
buttonLayout.setMembersMargin(3);
buttonLayout.setAlign(Alignment.RIGHT);
IButton enlargeButton = new IButton("Open in New Window");
enlargeButton.setIcon("arrow_out.png");
enlargeButton.setWidth(170);
enlargeButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
DashboardWindow dw = new DashboardWindow();
dw.show();
}
});
buttonLayout.addMember(enlargeButton);
return buttonLayout;
}
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:25,代码来源:DashboardPanel.java
示例8: createEditRuleButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
protected Canvas createEditRuleButton(final ListGridRecord ruleRecord) {
String userID = getLoggedInUser();
String ruleOwnerID = ruleRecord.getAttribute(OWNERID);
if (ruleOwnerID.equals(userID)) {
IButton editButton = new IButton(i18n.edit());
editButton.setShowDown(false);
editButton.setShowRollOver(false);
editButton.setLayoutAlign(Alignment.CENTER);
editButton.setPrompt(i18n.editThisRule());
editButton.setHeight(16);
editButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
String name = ruleRecord.getAttribute(NAME);
EventBus.getMainEventBus().fireEvent(new EditRuleEvent(name));
}
});
return editButton;
} else {
return null;
}
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:22,代码来源:AllRulesListGrid.java
示例9: createDeleteRuleButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
protected Canvas createDeleteRuleButton(final ListGridRecord record) {
IButton deleteButton = new IButton(i18n.delete());
deleteButton.setShowDown(false);
deleteButton.setShowRollOver(false);
deleteButton.setLayoutAlign(CENTER);
deleteButton.setPrompt(i18n.deleteThisRule());
deleteButton.setHeight(16);
deleteButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
SC.ask(i18n.reallyDeleteRule(), new BooleanCallback() {
public void execute(Boolean value) {
if (value) {
String uuid = record.getAttribute(UUID);
String userRole = getLoggedInUser();
DeleteRuleEvent deleteRuleEvent = new DeleteRuleEvent(currentSession(), uuid, userRole);
EventBus.getMainEventBus().fireEvent(deleteRuleEvent);
}
}
});
}
});
return deleteButton;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:25,代码来源:AllRulesListGrid.java
示例10: createDeleteRuleButtonm
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private Canvas createDeleteRuleButtonm(final ListGridRecord ruleRecord) {
IButton deleteButton = new IButton(i18n.delete());
deleteButton.setShowDown(false);
deleteButton.setShowRollOver(false);
deleteButton.setLayoutAlign(Alignment.CENTER);
deleteButton.setPrompt(i18n.deleteThisRule());
deleteButton.setHeight(16);
deleteButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
SC.ask(i18n.reallyDeleteRule(), new BooleanCallback() {
public void execute(Boolean value) {
if (value) {
String uuid = ruleRecord.getAttribute(UUID);
String userRole = getLoggedInUserRole();
EventBus.getMainEventBus().fireEvent(new DeleteRuleEvent(currentSession(), uuid, userRole));
}
}
});
}
});
return deleteButton;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:23,代码来源:OwnRulesListGrid.java
示例11: createPublishRuleButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private Canvas createPublishRuleButton(final ListGridRecord ruleRecord) {
IButton publishButton = new IButton(i18n.publishButton());
publishButton.setShowDown(false);
publishButton.setShowRollOver(false);
publishButton.setLayoutAlign(Alignment.CENTER);
publishButton.setHeight(16);
publishButton.setAutoFit(true);
final boolean published = ruleRecord.getAttributeAsBoolean(PUBLISHED);
if (published) {
publishButton.setTitle(i18n.unpublishButton());
publishButton.setPrompt(i18n.cancelPublication());
} else {
publishButton.setTitle(i18n.publishButton());
publishButton.setPrompt(i18n.publishThisRule());
}
publishButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
String ruleName = ruleRecord.getAttribute(NAME);
EventBus.getMainEventBus().fireEvent(new PublishRuleEvent(currentSession(), ruleName, !published, "USER"));
}
});
return publishButton;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:27,代码来源:OwnRulesListGrid.java
示例12: createEditRuleButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private Canvas createEditRuleButton(final ListGridRecord ruleRecord) {
// subscribe button
IButton editButton = new IButton(i18n.edit());
editButton.setShowDown(false);
editButton.setShowRollOver(false);
editButton.setLayoutAlign(Alignment.CENTER);
editButton.setPrompt(i18n.editThisRule());
editButton.setHeight(16);
editButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
String name = ruleRecord.getAttribute(NAME);
EventBus.getMainEventBus().fireEvent(new GetAllPublishedRulesEvent(currentSession(), 1));
EventBus.getMainEventBus().fireEvent(new EditRuleEvent(name));
}
});
return editButton;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:OwnRulesListGrid.java
示例13: highlightSelectedButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
public void highlightSelectedButton(IButton selectedButton) {
this.loginButton.setSelected(false);
this.logoutButton.setSelected(false);
this.registerButton.setSelected(false);
this.getPasswordButton.setSelected(false);
this.editProfileButton.setSelected(false);
this.aboRuleButton.setSelected(false);
this.createSimpleRuleButton.setSelected(false);
this.createComplexRuleButton.setSelected(false);
this.editRulesButton.setSelected(false);
this.manageUserButton.setSelected(false);
this.manageRulesButton.setSelected(false);
// this.searchRulesButton.setSelected(false);
this.helpButton.setSelected(false);
selectedButton.setSelected(true);
this.helpButton.setSelected(false);
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:DataControlsSes.java
示例14: buildRefreshButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
protected void buildRefreshButton() {
this.refreshButton = new IButton(this.refreshButtonLabel);
this.refreshButton.setTooltip(this.refreshButtonTooltip);
this.refreshButton.setAutoFit(true);
this.refreshButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
refreshButtonHandler();
}
});
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:11,代码来源:AbstractOutputDisplayView.java
示例15: initButtonsPart
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private void initButtonsPart() {
submitCancelButtons = new HLayout();
submitCancelButtons.setMargin(10);
submitCancelButtons.setMembersMargin(5);
submitCancelButtons.setHeight(30);
submitCancelButtons.setWidth100();
submitCancelButtons.setAlign(Alignment.RIGHT);
submitButton = new IButton("Submit");
submitButton.setIcon(Images.instance.ok_16().getSafeUri().asString());
submitButton.setShowDisabledIcon(false);
submitButton.setTooltip("A workflow must be selected first");
submitButton.addClickHandler(clickHandlerForSubmitButton());
checkButton = new IButton("Check");
checkButton.setIcon(Images.instance.ok_16().getSafeUri().asString());
checkButton.setShowDisabledIcon(false);
checkButton.setTooltip("Validate current workflow and variables");
checkButton.addClickHandler(clickHandlerForCheckButton());
final IButton cancelButton = new IButton("Cancel");
cancelButton.setShowDisabledIcon(false);
cancelButton.setIcon(Images.instance.cancel_16().getSafeUri().asString());
cancelButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SubmitWindow.this.window.hide();
SubmitWindow.this.destroy();
}
});
submitCancelButtons.setMembers(cancelButton, checkButton, submitButton);
rootPage.addMember(submitCancelButtons);
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:34,代码来源:SubmitWindow.java
示例16: ProgressTracker
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
public ProgressTracker(ClientMessages i18n) {
this.i18n = i18n;
widget = new VLayout(4);
label = new Label();
label.setWidth100();
label.setAutoHeight();
progressbar = new Progressbar();
progressbar.setVertical(false);
progressbar.setLength(400);
progressbar.setBreadth(24);
widget.setMembers(label, progressbar);
widget.setWidth100();
widget.setAutoHeight();
progressPrefix = i18n.ProgressTracker_Progress_0();
closeBtn = new IButton(i18n.ProgressTracker_CloseBtn_Title(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
stop();
}
});
closeBtn.setTooltip(i18n.ProgressTracker_CloseBtn_Hint());
closeBtn.setAutoFit(true);
}
开发者ID:proarc,项目名称:proarc,代码行数:28,代码来源:ProgressTracker.java
示例17: addCancelButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private IButton addCancelButton(String title, DialogCloseHandler closeHandler) {
DialogCloseHandlerImpl dch = new DialogCloseHandlerImpl(closeHandler);
IButton btn = new IButton(title, dch);
addCloseClickHandler(dch);
getDialogButtonsContainer().addMember(btn);
return btn;
}
开发者ID:proarc,项目名称:proarc,代码行数:8,代码来源:Dialog.java
示例18: getRolesCanvas
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private Canvas getRolesCanvas() {
// Canvas canvas = new Canvas();
VStack layout = new VStack();
layout.setBorder("1px solid gray");
layout.setHeight(150);
Label title = new Label(
"<span style=\"font-size:125%; font-weight: bold;\">"+ constants.roles() + "</span>");
title.setHeight(15);
layout.setWidth(200);
layout.addMember(title);
DynamicForm form = new DynamicForm();
form.setHeight("*");
SelectItem roleGrid = new SelectItem();
roleGrid.setTitle("Select Multiple (Grid)");
roleGrid.setMultiple(true);
roleGrid.setHeight(100);
roleGrid.setShowTitle(false);
roleGrid.setMultipleAppearance(MultipleAppearance.GRID);
form.setFields(roleGrid);
layout.addMember(form);
IButton button = new IButton(constants.newRole());
button.setHeight(20);
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
// (new RoleWindow(gameId, GameTab.this)).show();
// ListGridRecord lgr = new ListGridRecord();
// lgr.setAttribute("id", gameId);
// lgr.setAttribute("pk", ""+gameId+System.currentTimeMillis());
// listGrid.startEditingNew(lgr);
}
});
layout.addMember(button);
// layout.setBorder("2px solid blue");
// canvas.setHeight("*");
return layout;
}
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:41,代码来源:GameForm.java
示例19: createEditButton
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private void createEditButton() {
saveButton = new IButton(constants.save());
saveButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
saveClick();
}
});
}
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:9,代码来源:GeneralItemDetailEdit.java
示例20: createButtonLayout
import com.smartgwt.client.widgets.IButton; //导入依赖的package包/类
private void createButtonLayout(IButton... buttons) {
buttonLayout = new HLayout();
buttonLayout.setAlign(Alignment.CENTER);
buttonLayout.setLayoutMargin(6);
buttonLayout.setMembersMargin(6);
buttonLayout.setHeight(40);
for (IButton but : buttons) {
buttonLayout.addMember(but);
}
}
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:12,代码来源:GeneralItemDetailEdit.java
注:本文中的com.smartgwt.client.widgets.IButton类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论