use of com.google.gwt.user.client.ui.Button in project che by eclipse.
the class OrganizeImportsViewImpl method createButtons.
private void createButtons(JavaLocalizationConstant locale) {
back = createButton(locale.organizeImportsButtonBack(), "imports-back-button", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
delegate.onBackButtonClicked();
}
});
next = createButton(locale.organizeImportsButtonNext(), "imports-next-button", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
delegate.onNextButtonClicked();
}
});
Button cancel = createButton(locale.organizeImportsButtonCancel(), "imports-cancel-button", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
delegate.onCancelButtonClicked();
}
});
finish = createPrimaryButton(locale.organizeImportsButtonFinish(), "imports-finish-button", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
delegate.onFinishButtonClicked();
}
});
addButtonToFooter(finish);
addButtonToFooter(cancel);
addButtonToFooter(next);
addButtonToFooter(back);
}
use of com.google.gwt.user.client.ui.Button in project che by eclipse.
the class ShowSshKeyViewImpl method addButtons.
private void addButtons() {
Button cancel = createButton(locale.cancel(), "copy-machine-key-cancel-button", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
}
});
addButtonToFooter(cancel);
}
use of com.google.gwt.user.client.ui.Button in project che by eclipse.
the class SshViewImpl method createButton.
private Button createButton(String title, String debugId, ClickHandler clickHandler) {
Button button = new Button();
button.setText(title);
button.ensureDebugId(debugId);
button.getElement().setId(debugId);
button.addStyleName(this.windowResources.windowCss().button());
button.addClickHandler(clickHandler);
//set default tab index
button.setTabIndex(0);
return button;
}
use of com.google.gwt.user.client.ui.Button in project che by eclipse.
the class ShowReferenceViewImpl method addButtons.
private void addButtons() {
Button cancel = createButton(locale.cancel(), "copy-reference-cancel-button", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
}
});
addButtonToFooter(cancel);
}
use of com.google.gwt.user.client.ui.Button in project che by eclipse.
the class Window method createButton.
protected Button createButton(String title, String debugId, ClickHandler clickHandler) {
Button button = new Button();
button.setText(title);
button.ensureDebugId(debugId);
button.getElement().setId(debugId);
button.addStyleName(resources.windowCss().button());
button.addClickHandler(clickHandler);
//set default tab index
button.setTabIndex(0);
return button;
}
Aggregations