当前位置: 首页>>代码示例>>Java>>正文


Java IndicatingAjaxButton类代码示例

本文整理汇总了Java中org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton的典型用法代码示例。如果您正苦于以下问题:Java IndicatingAjaxButton类的具体用法?Java IndicatingAjaxButton怎么用?Java IndicatingAjaxButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IndicatingAjaxButton类属于org.apache.wicket.extensions.ajax.markup.html包,在下文中一共展示了IndicatingAjaxButton类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AbstractConnConfPanel

import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton; //导入依赖的package包/类
public AbstractConnConfPanel(final T model) {
    super();
    this.modelObject = model;
    setOutputMarkupId(true);

    propertiesContainer = new WebMarkupContainer("connectorPropertiesContainer");
    propertiesContainer.setOutputMarkupId(true);
    add(propertiesContainer);

    check = new IndicatingAjaxButton("check", new ResourceModel("check")) {

        private static final long serialVersionUID = -7978723352517770644L;

        @Override
        public void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
            final Pair<Boolean, String> result = check(target);
            if (result.getLeft()) {
                SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED));
            } else {
                SyncopeConsoleSession.get().error(getString("error_connection") + ": " + result.getRight());
            }
            ((BasePage) getPage()).getNotificationPanel().refresh(target);
        }
    };
    propertiesContainer.add(check);
}
 
开发者ID:apache,项目名称:syncope,代码行数:27,代码来源:AbstractConnConfPanel.java

示例2: newDeleteSelectedButton

import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton; //导入依赖的package包/类
private IndicatingAjaxButton newDeleteSelectedButton(
        final CheckGroup<T> checkGroup) {
    IndicatingAjaxButton submitLink = new IndicatingAjaxButton("deleteSelected") {

        @Override
        protected void onConfigure() {
            super.onConfigure();
            if (checkGroup.getModelObject().isEmpty()) {
                add(new CssClassNameAppender(Model.of("disabled")) {
                    @Override
                    public boolean isTemporary(Component component) {
                        return true;
                    }
                });
                setEnabled(false);
            } else {
                setEnabled(true);
            }
        }

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            deleteConfirmationModal.message(getDeletionModalMessage());
            target.add(deleteConfirmationModal);
            deleteConfirmationModal.appendShowDialogJavaScript(target);
        }
    };
    submitLink.setOutputMarkupId(true);
    return submitLink;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:31,代码来源:MetaDataEditPanel.java

示例3: addCancelButton

import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton; //导入依赖的package包/类
public void addCancelButton(final BaseModal<?> modal) {

        final AjaxButton cancel = new IndicatingAjaxButton(CANCEL, new ResourceModel(CANCEL)) {

            private static final long serialVersionUID = -4804368561204623354L;

            @Override
            protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
                modal.close(target);
            }
        };

        cancel.setDefaultFormProcessing(false);
        bulkActionForm.addOrReplace(cancel);
    }
 
开发者ID:apache,项目名称:syncope,代码行数:16,代码来源:ActionDataTablePanel.java


注:本文中的org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。