本文整理了Java中com.google.gwt.user.client.ui.Button.<init>()
方法的一些代码示例,展示了Button.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.<init>()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:<init>
[英]Creates a button with no caption.
[中]创建一个没有标题的按钮。
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new ProfileFilterStructView.
*/
public ProfileFilterStructView(HasErrorMessage hasErrorMessage) {
super(hasErrorMessage);
testFilterButton = new Button(Utils.constants.testFilter());
prependButton(testFilterButton);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void init() {
super.init();
downloadConfigurationButton = new Button(Utils.constants.downloadConfiguration());
buttonsPanel.add(downloadConfigurationButton);
downloadConfigurationButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
String url = Window.Location.getHref();
Window.open("/kaaAdmin/servlet/kaaConfigurationDownloadServlet?schemaId="
+ Utils.getSchemaIdFromUrl(url)
+ "&endGroupId=" + Utils.getEndpointGroupIdFromUrl(url),
"_blank", "status=0,toolbar=0,menubar=0,location=0");
}
});
}
代码示例来源:origin: libgdx/libgdx
Button ok = new Button("OK");
ok.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
Button cancel = new Button("Cancel");
cancel.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
代码示例来源:origin: libgdx/libgdx
Button ok = new Button("OK");
ok.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
Button cancel = new Button("Cancel");
cancel.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new UnauthorizedSessionDialog.
*/
public UnauthorizedSessionDialog(final Listener listener) {
super(false, true);
setWidth("500px");
setTitle(Utils.constants.sessionExpired());
VerticalPanel dialogContents = new VerticalPanel();
dialogContents.setSpacing(4);
add(dialogContents);
AlertPanel warningPanel = new AlertPanel(AlertPanel.Type.WARNING);
warningPanel.setMessage(Utils.messages.sessionExpiredMessage());
dialogContents.add(warningPanel);
Button loginButton = new Button(Utils.constants.logInAgain(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
listener.onLogin();
}
});
Button ignoreButton = new Button(Utils.constants.ignore(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
listener.onIgnore();
}
});
addButton(loginButton);
addButton(ignoreButton);
}
代码示例来源:origin: kaaproject/kaa
dialogContents.add(messageLabel);
okButton = new Button(Utils.constants.ok(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
supportPanel.setWidth("1000px");
resetButton = new Button(Utils.constants.reset());
supportPanel.add(resetButton);
endpointKeyHash = new TextBox();
endpointKeyHash.setWidth("100%");
findButton = new Button(Utils.constants.find());
findButton.addStyleName(Utils.avroUiStyle.buttonSmall());
keyHashPanel.add(endpointKeyHashButton);
代码示例来源:origin: kaaproject/kaa
root.add(grid);
Button generateSdk = new Button(Utils.constants.generateSdk(), new ClickHandler() {
Button cancel = new Button(Utils.constants.cancel(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
addButton = new Button(Utils.constants.add(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Button closeButton = new Button(Utils.constants.close(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
sendResetPasswordLinkButton = new Button(
Utils.constants.sendResetPasswordLink(), new ClickHandler() {
@Override
Button cancelButton = new Button(Utils.constants.cancel(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
Button backButton = new Button();
backButton.addStyleName(Utils.kaaAdminStyle.bAppBackButton());
backButtonPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
horizontalPanel.setCellHeight(buttonsPanel, "100%");
Button saveButton = new Button();
buttonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
buttonsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
Button cancelButton = new Button();
cancelButton.setVisible(false);
buttonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
代码示例来源:origin: kaaproject/kaa
@Override
protected void initDetailsTable() {
tenantName = new KaaAdminSizedTextBox(TENANT_NAME_TEXT_SIZE_BOX);
tenantName.setWidth("100%");
tenantName.addInputHandler(this);
lableUser = new Label("Users");
Label titleLabel = new Label(Utils.constants.tenantName());
titleLabel.addStyleName(REQUIRED);
detailsTable.setWidget(0, 0, titleLabel);
detailsTable.setWidget(0, 1, tenantName);
tenantAdminsGrid = new UsersGrid(false, true);
tenantAdminsGrid.setWidth("100%");
tenantAdminsGrid.setSize("1000px", "400px");
detailsTable.getFlexCellFormatter().setColSpan(2, 0, 3);
tenantAdminAddButton = new Button(Utils.constants.addNewUser());
tenantAdminAddButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
tenantName.setFocus(true);
if (!create) {
detailsTable.setWidget(2, 0, tenantAdminsGrid);
detailsTable.setWidget(3, 3, tenantAdminAddButton);
detailsTable.setWidget(1, 0, lableUser);
}
}
代码示例来源:origin: kaaproject/kaa
saveButton = new Button(Utils.constants.save(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Button cancelButton = new Button(Utils.constants.cancel(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
changePasswordButton = new Button(Utils.constants.changePassword(), handler);
Button cancelButton = new Button(Utils.constants.cancel(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
generateSdkButton = new Button(Utils.constants.generateSdk());
detailsTable.setWidget(3, 0, generateSdkButton);
} else {
代码示例来源:origin: kaaproject/kaa
detailsTable.setWidget(3, 1, email);
changePasswordButton = new Button(Utils.constants.changePassword());
代码示例来源:origin: kaaproject/kaa
.setColSpan(2, 0, 2);
loginButton = new Button(Utils.constants.login());
loginButton.addStyleName(Utils.kaaAdminStyle.loginButton());
loginTable.setWidget(3, 2, loginButton);
代码示例来源:origin: kaaproject/kaa
recordFileUpload.addChangeHandler(this);
recordFileItemName = recordFileUpload.getFileItemName();
uploadButton = new Button(Utils.constants.upload(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
sendNotification = new Button(Utils.constants.sendNotification());
detailsTable.setWidget(5, 0, sendNotification);
sendNotification.setVisible(!create);
代码示例来源:origin: kaaproject/kaa
ecfVersionsLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitleLabel());
addEcfVersionButton = new Button(Utils.constants.addFamilyVersion());
addEcfVersionButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
内容来源于网络,如有侵权,请联系作者删除!