Search in sources :

Example 1 with Button

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);
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(com.google.gwt.user.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent)

Example 2 with Button

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);
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(com.google.gwt.user.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent)

Example 3 with Button

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;
}
Also used : Button(com.google.gwt.user.client.ui.Button)

Example 4 with 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);
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(com.google.gwt.user.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent)

Example 5 with Button

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;
}
Also used : Button(com.google.gwt.user.client.ui.Button)

Aggregations

Button (com.google.gwt.user.client.ui.Button)61 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)35 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)35 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)15 Test (org.junit.Test)14 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)13 SmallHeading (com.google.gerrit.client.ui.SmallHeading)7 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)7 Grid (com.google.gwt.user.client.ui.Grid)6 GerritCallback (com.google.gerrit.client.rpc.GerritCallback)5 OnEditEnabler (com.google.gerrit.client.ui.OnEditEnabler)5 NpTextBox (com.google.gwtexpui.globalkey.client.NpTextBox)5 GwtTestTest (com.googlecode.gwt.test.GwtTestTest)5 ActionButton (com.google.gerrit.client.actions.ActionButton)4 Style (com.google.gwt.dom.client.Style)4 KeyPressEvent (com.google.gwt.event.dom.client.KeyPressEvent)4 KeyPressHandler (com.google.gwt.event.dom.client.KeyPressHandler)4 CheckBox (com.google.gwt.user.client.ui.CheckBox)4 ComplexPanel (com.google.gwt.user.client.ui.ComplexPanel)4 HTML (com.google.gwt.user.client.ui.HTML)4