本文整理了Java中com.google.gwt.user.client.Command.execute()
方法的一些代码示例,展示了Command.execute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Command.execute()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Command
类名称:Command
方法名:execute
[英]Causes the Command to perform its encapsulated behavior.
[中]使命令执行其封装的行为。
代码示例来源:origin: kiegroup/appformer
public void onWindowClose(final Command command) {
if (command != null) {
command.execute();
}
}
}
代码示例来源:origin: jbossas/console
public void execute() {
if (command != null) {
command.execute();
}
}
代码示例来源:origin: ArcBees/GWTP
public void pump() {
while (!commands.isEmpty()) {
commands.remove(0).execute();
}
}
}
代码示例来源:origin: org.jresearch.commons.gxt.crud/org.jresearch.commons.gxt.crud.widget
/**
* Checks the delete preconditions and return some error/warning message if
* delete impossible
*
* @param model
* - object to check
*/
protected void checkDeleteContions(@Nonnull final M model, @Nonnull final Command command) {
command.execute();
}
代码示例来源:origin: com.google.gwt/gwt-servlet
command.execute();
} else if (element instanceof IncrementalCommand) {
IncrementalCommand incrementalCommand = (IncrementalCommand) element;
代码示例来源:origin: org.uberfire/widgets-commons
public void execute() {
if ( Window.confirm( "constants.DeleteAreYouSure()" ) ) {
deleteCommand.execute();
}
}
} );
代码示例来源:origin: com.googlecode.gwt-measure/gwt-measure
public static void onUnload() {
detachOnUnloadHook();
if (command != null) {
command.execute();
}
}
代码示例来源:origin: kiegroup/appformer
private void cleanupPlaceRequest() {
if (shouldICleanupPlaceRequest()) {
cleanupPlaceRequest.execute();
}
}
代码示例来源:origin: org.kie.guvnor/guvnor-commons-ui
@UiHandler("okButton")
public void onOKButtonClick( final ClickEvent e ) {
okCommand.execute();
}
}
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
private void cleanupPlaceRequest() {
if (shouldICleanupPlaceRequest()) {
cleanupPlaceRequest.execute();
}
}
代码示例来源:origin: org.drools/drools-wb-guided-rule-editor-client
@Override
protected void handleMetadataAddition(final String metadataName) {
model.addMetadata(new RuleMetadata(metadataName,
""));
refresh.execute();
}
代码示例来源:origin: kiegroup/drools-wb
@Override
protected void handleAttributeAddition(final String attributeName) {
if (attributeName.equals(RuleAttributeWidget.LOCK_LHS) || attributeName.equals(RuleAttributeWidget.LOCK_RHS)) {
model.addMetadata(new RuleMetadata(attributeName,
"true"));
} else {
model.addAttribute(new RuleAttribute(attributeName,
""));
}
refresh.execute();
}
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
private void onOKButtonClick() {
node.setBoundNode( clone.getBoundNode() );
if ( callback != null ) {
callback.execute();
}
hide();
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
protected void doExitPinnedMode(final Command onCompleteCommand,
final Set<GridWidget> gridWidgetsToFadeIntoView,
final Set<IPrimitive<?>> gridWidgetConnectorsToFadeIntoView) {
assertTrue(gridWidgetsToFadeIntoView.isEmpty());
assertTrue(gridWidgetConnectorsToFadeIntoView.isEmpty());
onCompleteCommand.execute();
}
};
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
private void onOKButtonClick() {
node.setBoundNode( clone.getBoundNode() );
node.setModify( clone.isModify() );
node.getFieldValues().clear();
node.getFieldValues().addAll( clone.getFieldValues() );
if ( callback != null ) {
callback.execute();
}
hide();
}
代码示例来源:origin: kiegroup/drools-wb
private Button createFreezeButton(final String text,
final String metadataName) {
return new Button(text,
(ClickEvent event) -> {
model.addMetadata(new RuleMetadata(metadataName,
"true"));
refresh.execute();
hide();
});
}
}
代码示例来源:origin: kiegroup/drools-wb
@Test
public void testHandleAttributeAddition_Calendars() {
popup.handleAttributeAddition(RuleAttributeWidget.CALENDARS_ATTR);
assertThat(model.attributes).containsExactly(new RuleAttribute(RuleAttributeWidget.CALENDARS_ATTR, ""));
assertThat(model.metadataList).isEmpty();
verify(refreshCommand).execute();
}
代码示例来源:origin: kiegroup/drools-wb
private void doDeleteColumn(final BaseColumn column,
final Command callback) throws VetoException {
if (isReadOnly()) {
return;
}
synchronizer.deleteColumn(column);
refreshView();
//Log deletion of column
model.getAuditLog().add(new DeleteColumnAuditLogEntry(identity.getIdentifier(),
column));
callback.execute();
}
代码示例来源:origin: kiegroup/appformer
@Test
public void okButtonClickHandlerTest() {
editScreen.okButton();
verify(editScreen).hide();
modalHiddenHandler.onHidden(new ModalHiddenEvent(editScreen,
new Event() {
}));
verify(editScreen.getConfigContext(),
never()).configurationCancelled();
verify(editScreen.getConfigContext()).configurationFinished();
verify(cleanupPlaceRequest).execute();
}
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
@Test
public void okButtonClickHandlerTest() {
editScreen.okButton();
verify(editScreen).hide();
modalHiddenHandler.onHidden(new ModalHiddenEvent(editScreen,
new Event() {
}));
verify(editScreen.getConfigContext(),
never()).configurationCancelled();
verify(editScreen.getConfigContext()).configurationFinished();
verify(cleanupPlaceRequest).execute();
}
内容来源于网络,如有侵权,请联系作者删除!