use of com.google.gwt.event.dom.client.ClickHandler in project che by eclipse.
the class ProjectExplorerViewImpl method initGoIntoBackButton.
private void initGoIntoBackButton() {
goBackButton = new ToolButton(FontAwesome.ARROW_CIRCLE_O_LEFT);
goBackButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
tree.getGoInto().reset();
}
});
goBackButton.ensureDebugId(GO_BACK_BUTTON_ID);
Tooltip.create((elemental.dom.Element) goBackButton.getElement(), BOTTOM, MIDDLE, "Go Back");
addToolButton(goBackButton);
}
use of com.google.gwt.event.dom.client.ClickHandler 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.event.dom.client.ClickHandler in project che by eclipse.
the class OrganizeImportsViewImpl method show.
/** {@inheritDoc} */
@Override
public void show(ConflictImportDTO match) {
container.clear();
List<String> matches = match.getTypeMatches();
for (String fqn : matches) {
final Label label = new Label(fqn);
if (fqn.equals(selectedImport)) {
selectedLabel = label;
selectedLabel.getElement().getStyle().setBackgroundColor(getEditorSelectionColor());
}
label.getElement().getStyle().setColor(getMainFontColor());
label.getElement().getStyle().setCursor(POINTER);
label.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
selectedLabel.getElement().getStyle().setBackgroundColor("initial");
selectedLabel = label;
label.getElement().getStyle().setBackgroundColor(getEditorSelectionColor());
}
});
container.add(label);
}
super.show();
}
use of com.google.gwt.event.dom.client.ClickHandler 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.event.dom.client.ClickHandler in project che by eclipse.
the class NotificationPopup method createCloseWidget.
/**
* Create close icon widget that contains an close notification icon.
*
* @return {@link SimplePanel} as close icon wrapper
*/
private SimplePanel createCloseWidget() {
SimplePanel closeWrapper = new SimplePanel();
SVGImage closeImage = new SVGImage(resources.closeIcon());
closeImage.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
delegate.onClose(notification);
}
});
closeWrapper.add(closeImage);
closeWrapper.setStyleName(resources.notificationCss().notificationPopupCloseButtonWrapper());
closeWrapper.ensureDebugId(CLOSE_ICON_DBG_ID + notification.getId());
return closeWrapper;
}
Aggregations