本文整理了Java中com.google.gwt.user.client.ui.Button.addClickHandler()
方法的一些代码示例,展示了Button.addClickHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.addClickHandler()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:addClickHandler
暂无
代码示例来源: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: kaaproject/kaa
registrations.add(listView.getResetButton().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
registrations.add(listView.getFindEndpointButton().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
代码示例来源:origin: kaaproject/kaa
registrations.add(listView.addButtonEventClass().addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
goTo(newEntityPlace());
代码示例来源:origin: libgdx/libgdx
ok.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
TextInputDialogBox.this.onPositive();
cancel.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
TextInputDialogBox.this.onNegative();
代码示例来源:origin: libgdx/libgdx
ok.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
TextInputDialogBox.this.onPositive();
cancel.addClickHandler(new ClickHandler() {
public void onClick (ClickEvent event) {
TextInputDialogBox.this.onNegative();
代码示例来源:origin: kaaproject/kaa
@Override
public void onSuccess(Void result) {
EnterKeyDownHandler loginHandler = new EnterKeyDownHandler();
view.getLoginButton().addClickHandler(loginHandler);
view.getUsernameBox().addKeyDownHandler(loginHandler);
view.getPasswordBox().addKeyDownHandler(loginHandler);
ForgotPasswordHandler forgotPasswordHandler = new ForgotPasswordHandler();
view.getForgotPasswordLabel().addClickHandler(forgotPasswordHandler);
view.clearMessages();
RootLayoutPanel.get().clear();
RootLayoutPanel.get().add(view);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates a button with the given HTML caption and click listener.
*
* @param html the HTML caption
* @param handler the click handler
*/
public Button(@IsSafeHtml String html, ClickHandler handler) {
this(html);
addClickHandler(handler);
}
代码示例来源:origin: kaaproject/kaa
getSaveButtonWidget().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: kaaproject/kaa
removeAefMapButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
addAefMapButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
removeAefMapButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
private void setBacklinkButton(){
backlinkButton.addClickHandler( new ClickHandler() {
@Override
public void onClick(final ClickEvent arg0) {
ApplicationState.getInstance().setReferencesView(true);
ApplicationState.getInstance().updateApplicationState( Mode.list, instance.getEntity(), EIEntity.NULL_ENTITY, EIEntity.NULL_ENTITY );
}
} );
}
代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client
protected void addAddButtonClickHandler() {
add.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
scenario.insertBetween( previousEx,
getFixture() );
parent.renderEditor();
hide();
}
} );
}
代码示例来源:origin: org.jboss.errai/errai-bus
disconnectFromServer.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
clearErrors.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
closeButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
private Button makeCancelButton() {
final Button button = new Button( "Cancel" );
button.addClickHandler( new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
//TermRequestPopup.this.setGlassEnabled( false );
TermRequestPopup.this.hide();
}
} );
return button;
}
代码示例来源:origin: com.asayama.docs.gwt.angular.examples/GwtWidgets
private Button createButton() {
Button button = new Button("This is a GWT Button");
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
shout("You clicked GWT Button");
}
});
return button;
}
代码示例来源:origin: com.google.gwt/gwt-servlet
maxmin.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if (maxmin.getText().equals("Minimize")) {
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public Button createWidget() {
Button b = GWT.create(Button.class);
b.addClickHandler(this);
b.setStylePrimaryName("v-nativebutton");
return b;
}
代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client
protected Button createOkButton(final RuleSelectionEvent selected, final TextBox ruleNameTextBox) {
Button ok = new Button(TestScenarioConstants.INSTANCE.OK());
ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
selected.ruleSelected(ruleNameTextBox.getText());
}
});
return ok;
}
代码示例来源:origin: eclipse/hawkbit
@Override
public Button createWidget() {
Button b = GWT.create(Button.class);
b.addClickHandler(this);
b.setStylePrimaryName("v-nativebutton");
return b;
}
代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client
private void addCreateNewObject() {
Button button = new Button(TestScenarioConstants.INSTANCE.CreateNewFact());
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent w) {
fireSelection(FieldData.TYPE_FACT);
}
});
addAttribute(TestScenarioConstants.INSTANCE.Fact(),
widgets(button,
new InfoPopup(TestScenarioConstants.INSTANCE.Fact(),
TestScenarioConstants.INSTANCE.Fact())));
}
代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client
private void addListSelection() {
Button variable = new Button(TestScenarioConstants.INSTANCE.GuidedList());
variable.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent w) {
fireSelection(FieldData.TYPE_COLLECTION);
}
});
addAttribute(TestScenarioConstants.INSTANCE.AVariable(),
widgets(variable,
new InfoPopup(TestScenarioConstants.INSTANCE.AGuidedList(),
TestScenarioConstants.INSTANCE.AGuidedListTip())));
}
内容来源于网络,如有侵权,请联系作者删除!