本文整理了Java中com.google.gwt.user.client.Window.confirm()
方法的一些代码示例,展示了Window.confirm()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.confirm()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Window
类名称:Window
方法名:confirm
[英]Displays a message in a modal dialog box, along with the standard 'OK' and 'Cancel' buttons.
[中]在模式对话框中显示消息,以及标准的“确定”和“取消”按钮。
代码示例来源:origin: com.google.gwt/gwt-servlet
public boolean confirm(String message) {
return Window.confirm(message);
}
}
代码示例来源:origin: org.jboss.errai/errai-bus
@Override
public void onClick(final ClickEvent event) {
if (Window
.confirm("Are you sure you want to disconnect and de-federate the local bus from the server bus? "
+ "This will permanently kill your session. You will need to refresh to reconnect. OK will proceed. Click "
+ "Cancel to abort this operation")) {
clientMessageBus.stop(true);
}
}
});
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
@Override
public void clear() {
if (Window.confirm("Are you sure to clean the canvas?")) {
clearEvent.fire(new ClearEvent());
}
}
代码示例来源:origin: errai/errai
@Override
public void onClick(final ClickEvent event) {
if (Window
.confirm("Are you sure you want to disconnect and de-federate the local bus from the server bus? "
+ "This will permanently kill your session. You will need to refresh to reconnect. OK will proceed. Click "
+ "Cancel to abort this operation")) {
clientMessageBus.stop(true);
}
}
});
代码示例来源:origin: org.kie.guvnor/guvnor-factmodel-editor-client
public void execute() {
if ( Window.confirm( Constants.INSTANCE.AreYouSureYouWantToRemoveTheField0( field.name ) ) ) {
fieldsPanel.remove( editor );
fields.remove( field );
}
}
} );
代码示例来源:origin: org.jbpm/jbpm-console-ng-workbench-integration-client
public void update( final int index,
final ItemObjectModel item,
final String value ) {
if ( Window.confirm( Constants.INSTANCE.PromptForRemoval() ) ) {
marshalStrategyDataProvider.getList().remove( index );
}
}
} );
代码示例来源:origin: org.jbpm/jbpm-console-ng-workbench-integration-client
public void update( final int index,
final ItemObjectModel item,
final String value ) {
if ( Window.confirm( Constants.INSTANCE.PromptForRemoval() ) ) {
environmentEntriesDataProvider.getList().remove( index );
}
}
} );
代码示例来源:origin: org.uberfire/uberfire-apps-client
@Override
public void onClick(ClickEvent event) {
if (Window.confirm(CommonConstants.INSTANCE.DeleteAppPrompt())) {
deleteCommand.execute(dirURI);
}
}
},
代码示例来源:origin: org.kie.guvnor/guvnor-metadata-widget
public void onClick( final ClickEvent sender ) {
if ( Window.confirm( MetadataConstants.INSTANCE.EraseAllCommentsWarning() ) ) {
metadata.eraseDiscussion();
makeDirty();
updateCommentList();
}
}
} );
代码示例来源:origin: org.kie.guvnor/guvnor-test-scenario-editor-client
public void onClick(ClickEvent event) {
if ( Window.confirm( TestScenarioConstants.INSTANCE.AreYouSureYouWantToRemoveThisItem() ) ) {
scenario.removeExecutionTrace( previousEx );
parent.renderEditor();
}
}
} );
代码示例来源:origin: kiegroup/drools-wb
protected void onDelete() {
if (Window.confirm(TestScenarioConstants.INSTANCE.AreYouSureToRemoveCallMethod())) {
scenario.removeFixture(mCall);
parent.renderEditor();
}
}
代码示例来源:origin: kiegroup/drools-wb
public void onClick(ClickEvent event) {
if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveThisRuleOption())) {
model.removeMetadata(idx);
parent.refreshWidget();
}
}
});
代码示例来源:origin: kiegroup/drools-wb
public void onClick( ClickEvent event ) {
if ( Window.confirm( GuidedRuleEditorResources.CONSTANTS.RemoveThisEntireConditionQ() ) ) {
if ( pattern.removeFactPattern( idx ) ) {
getModeller().refreshWidget();
}
}
}
} );
代码示例来源:origin: org.drools/drools-wb-guided-rule-editor-client
public void onClick( ClickEvent event ) {
if ( Window.confirm( GuidedRuleEditorResources.CONSTANTS.RemoveThisEntireConditionQ() ) ) {
if ( pattern.removeFactPattern( idx ) ) {
getModeller().refreshWidget();
}
}
}
} );
代码示例来源:origin: org.drools/drools-wb-guided-rule-editor-client
public void onClick(ClickEvent event) {
if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveThisEntireConditionQ())) {
setModified(true);
pattern.setFactPattern(null);
getModeller().refreshWidget();
}
}
};
代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-client
public void onClick( ClickEvent event ) {
if ( Window.confirm( Constants.INSTANCE.RemoveThisBlockOfData() ) ) {
setModified( true );
getFromAccumulatePattern().setSourcePattern( null );
getModeller().refreshWidget();
}
}
} ) );
代码示例来源:origin: org.drools/drools-wb-guided-rule-editor-client
public void onClick(ClickEvent event) {
if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveThisItem())) {
setModified(true);
pattern.removeConstraint(currentRow);
getModeller().refreshWidget();
}
}
};
代码示例来源:origin: org.kie.guvnor/guvnor-categories-editor-client
public void onClick( final ClickEvent w ) {
if ( !explorer.isSelected() ) {
Window.alert( Constants.INSTANCE.PleaseSelectACategoryToDelete() );
return;
}
if ( Window.confirm( Constants.INSTANCE.AreYouSureYouWantToDeleteCategory() + explorer.getSelectedCategory().getName() ) ) {
isDirty = true;
explorer.removeSelected();
}
}
} );
代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-client
public void onClick( ClickEvent event ) {
if ( Window.confirm( Constants.INSTANCE.RemoveThisItem() ) ) {
model.removeField( idx );
setModified( true );
getModeller().refreshWidget();
//Signal possible change in Template variables
TemplateVariablesChangedEvent tvce = new TemplateVariablesChangedEvent( getModeller().getModel() );
getEventBus().fireEventFromSource( tvce,
getModeller().getModel() );
}
}
} );
代码示例来源:origin: org.drools/drools-wb-guided-rule-editor-client
public void onClick(ClickEvent event) {
if (Window.confirm(GuidedRuleEditorResources.CONSTANTS.RemoveThisItem())) {
model.removeField(idx);
setModified(true);
getModeller().refreshWidget();
//Signal possible change in Template variables
TemplateVariablesChangedEvent tvce = new TemplateVariablesChangedEvent(getModeller().getModel());
getEventBus().fireEventFromSource(tvce,
getModeller().getModel());
}
}
});
内容来源于网络,如有侵权,请联系作者删除!