protected ModalFooterOKCancelButtons createModalFooterOKCancelButtons() { return new ModalFooterOKCancelButtons( new com.google.gwt.user.client.Command() { @Override public void execute() { buttonPressed = ButtonPressed.OK; hide(); editor.save(); } }, new com.google.gwt.user.client.Command() { @Override public void execute() { buttonPressed = ButtonPressed.CANCEL; hide(); } }); } }
@Override public void enableOKButton(final boolean enabled) { footer.enableOkButton(enabled); }
public ModalFooterOKCancelButtons(final Command okCommand, final Command cancelCommand) { this.okCommand = PortablePreconditions.checkNotNull("okCommand", okCommand); this.cancelCommand = PortablePreconditions.checkNotNull("cancelCommand", cancelCommand); add(uiBinder.createAndBindUi(this)); }
@Inject public DisplayerEditorPopup(DisplayerEditor editor) { this.editor = editor; add(uiBinder.createAndBindUi(this)); ModalFooterOKCancelButtons footer = createModalFooterOKCancelButtons(); footer.enableCancelButton(true); footer.enableOkButton(true); add(footer); setWidth(1200+"px"); addHiddenHandler(); }
@Inject public DisplayerEditorPopup(DisplayerEditor editor) { this.editor = editor; add(uiBinder.createAndBindUi(this)); ModalFooterOKCancelButtons footer = createModalFooterOKCancelButtons(); footer.enableCancelButton(true); footer.enableOkButton(true); add(footer); setWidth(1200+"px"); addHiddenHandler(); }
protected ModalFooterOKCancelButtons createModalFooterOKCancelButtons() { return new ModalFooterOKCancelButtons( new com.google.gwt.user.client.Command() { @Override public void execute() { buttonPressed = ButtonPressed.OK; hide(); editor.save(); } }, new com.google.gwt.user.client.Command() { @Override public void execute() { buttonPressed = ButtonPressed.CANCEL; hide(); } }); } }
@Inject public NewResourceViewImpl(TranslationService translationService) { this.translationService = translationService; footer.enableOkButton(true); }
public ModalFooterOKCancelButtons(final Command okCommand, final Command cancelCommand) { this.okCommand = PortablePreconditions.checkNotNull("okCommand", okCommand); this.cancelCommand = PortablePreconditions.checkNotNull("cancelCommand", cancelCommand); add(uiBinder.createAndBindUi(this)); }
@PostConstruct private void init() { this.modal = new BaseModal(); this.modal.setBody(ElementWrapperWidget.getWidget(this.getElement())); this.modal.setClosable(false); modal.add(new ModalFooterOKCancelButtons(this::onOK, this::onCancel)); }
public WorkbenchConfigurationViewImpl() { footer.enableOkButton( true ); add( new ModalBody() {{ add( uiBinder.createAndBindUi( WorkbenchConfigurationViewImpl.this ) ); }} ); add( footer ); }
public RuleModellerConditionSelectorPopup(final RuleModel model, final RuleModeller ruleModeller, final Integer position, final AsyncPackageDataModelOracle oracle) { super(model, ruleModeller, position, oracle); add(new ModalBody() {{ add(getContent()); }}); add(new ModalFooterOKCancelButtons(okCommand, cancelCommand)); }
public void init(NewPluginPopUpView.Presenter presenter) { this.presenter = presenter; footer.enableOkButton(true); add(new ModalBody() {{ add(uiBinder.createAndBindUi(NewPluginPopUpViewImpl.this)); }}); add(footer); }
public RuleModellerConditionSelectorPopup(final RuleModel model, final RuleModeller ruleModeller, final Integer position, final AsyncPackageDataModelOracle oracle) { super(model, ruleModeller, position, oracle); add(new ModalBody() {{ add(getContent()); }}); add(new ModalFooterOKCancelButtons(okCommand, cancelCommand)); }
public void init(NewPluginPopUpView.Presenter presenter) { this.presenter = presenter; footer.enableOkButton(true); add(new ModalBody() {{ add(uiBinder.createAndBindUi(NewPluginPopUpViewImpl.this)); }}); add(footer); }
@PostConstruct private void init() { this.modal = new BaseModal(); this.modal.setBody(ElementWrapperWidget.getWidget(this.getElement())); this.modal.setClosable(false); modal.add(new ModalFooterOKCancelButtons(this::onOK, this::onCancel)); }
public RuleModellerActionSelectorPopup(final RuleModel model, final RuleModeller ruleModeller, final Collection<RuleModellerActionPlugin> actionPlugins, final Integer position, final AsyncPackageDataModelOracle oracle) { super(model, ruleModeller, position, oracle); this.actionPlugins = actionPlugins; this.add(new ModalBody() {{ add(getContent()); }}); add(new ModalFooterOKCancelButtons(okCommand, cancelCommand)); }
public RuleModellerActionSelectorPopup(final RuleModel model, final RuleModeller ruleModeller, final Collection<RuleModellerActionPlugin> actionPlugins, final Integer position, final AsyncPackageDataModelOracle oracle) { super(model, ruleModeller, position, oracle); this.actionPlugins = actionPlugins; this.add(new ModalBody() {{ add(getContent()); }}); add(new ModalFooterOKCancelButtons(okCommand, cancelCommand)); }
@PostConstruct protected void init() { modal = new BaseModal(); modal.setClosable(false); modal.setBody(this); modal.add(new ModalFooterOKCancelButtons( this::maybeOk, this::close)); modal.addHideHandler(evt -> presenter.onClose()); formContent.add(formRenderer); }
add( new ModalFooterOKCancelButtons( okCommand, cancelCommand ) );
public TextBoxFormPopupViewImpl() { final ModalFooterOKCancelButtons footer = new ModalFooterOKCancelButtons( new Command() { @Override public void execute() { presenter.onOk(); } }, new Command() { @Override public void execute() { hide(); } } ); setBody( uiBinder.createAndBindUi( TextBoxFormPopupViewImpl.this ) ); add( footer ); setTitle( CommonConstants.INSTANCE.New() ); }