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


Java ModalBody类代码示例

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


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

示例1: AbstractConcurrentChangePopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
protected AbstractConcurrentChangePopup(final String content,
                                        final Command onIgnore,
                                        final Command onAction,
                                        final String buttonText) {
    setTitle(CommonConstants.INSTANCE.Error());

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(AbstractConcurrentChangePopup.this));
    }});
    add(new ModalFooterReOpenIgnoreButtons(this,
                                           onAction,
                                           onIgnore,
                                           buttonText));

    message.setHTML(SafeHtmlUtils.fromTrustedString(content));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:17,代码来源:AbstractConcurrentChangePopup.java

示例2: NewTabFilterPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public NewTabFilterPopup() {
    setTitle(CommonConstants.INSTANCE.Filter_Management());

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(NewTabFilterPopup.this));
    }});

    tabBasic.setDataTargetWidget(tab1);
    tabFilter.setDataTargetWidget(tab2);

    init();
    final GenericModalFooter footer = new GenericModalFooter();
    footer.addButton(CommonConstants.INSTANCE.Add_New_Filter(),
                     new Command() {
                         @Override
                         public void execute() {
                             okButton();
                         }
                     },
                     null,
                     ButtonType.PRIMARY);

    add(footer);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:25,代码来源:NewTabFilterPopup.java

示例3: AddTag

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public AddTag(PerspectiveEditorPresenter perspectivePresenter) {
    this.perspectivePresenter = perspectivePresenter;
    setTitle(CommonConstants.INSTANCE.AddTag());

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(AddTag.this));
    }});
    add(new ModalFooterOKCancelButtons(
            new Command() {
                @Override
                public void execute() {
                    okButton();
                }
            },
            new Command() {
                @Override
                public void execute() {
                    cancelButton();
                }
            }
    ));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:23,代码来源:AddTag.java

示例4: RuleModellerActionSelectorPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
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));
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:20,代码来源:RuleModellerActionSelectorPopup.java

示例5: PackageNameFormPopupViewImpl

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public PackageNameFormPopupViewImpl() {
    add( new ModalBody() {{
        add( uiBinder.createAndBindUi( PackageNameFormPopupViewImpl.this ) );
    }} );
    add( new ModalFooterOKCancelButtons( new Command() {
        @Override
        public void execute() {
            presenter.onOk();
        }
    }, new Command() {
        @Override
        public void execute() {
            hide();
        }
    }
    ) );
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:18,代码来源:PackageNameFormPopupViewImpl.java

示例6: SequenceGeneratorEditionDialog

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public SequenceGeneratorEditionDialog() {
    setTitle( "Sequence Generator" );
    //setMaxHeigth( "450px" );
    add( new ModalBody() {{
        add( uiBinder.createAndBindUi( SequenceGeneratorEditionDialog.this ) );
    }} );

    add( new ModalFooterOKCancelButtons(
                    new Command() {
                        @Override
                        public void execute() {
                            okButton();
                        }
                    },
                    new Command() {
                        @Override
                        public void execute() {
                            cancelButton();
                        }
                    }
            )
    );

}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:25,代码来源:SequenceGeneratorEditionDialog.java

示例7: AddImportPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public AddImportPopup() {
    setTitle(ImportConstants.INSTANCE.addImportPopupTitle());

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(AddImportPopup.this));
    }});
    add(footer);

    importTypeListBox.getElement().getStyle().setWidth(100.0,
                                                       Style.Unit.PCT);
    importTypeListBox.addChangeHandler(new ChangeHandler() {

        @Override
        public void onChange(ChangeEvent event) {
            final boolean enable = importTypeListBox.getSelectedIndex() > 0;
            footer.enableOkButton(enable);
        }
    });
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:20,代码来源:AddImportPopup.java

示例8: FormListPopupViewImpl

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public FormListPopupViewImpl() {
    final ModalFooterOKCancelButtons footer = new ModalFooterOKCancelButtons( new Command() {
        @Override
        public void execute() {
            presenter.onOk();
            hide();
        }
    }, new Command() {
        @Override
        public void execute() {
            hide();
        }
    }
    );

    add( new ModalBody() {{
        add( uiBinder.createAndBindUi( FormListPopupViewImpl.this ) );
    }} );
    add( footer );
    setTitle( CommonConstants.INSTANCE.New() );
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:22,代码来源:FormListPopupViewImpl.java

示例9: YesNoCancelPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
protected YesNoCancelPopup(final String title,
                           final String content,
                           final Command yesCommand,
                           final String yesButtonText,
                           final ButtonType yesButtonType,
                           final IconType yesButtonIconType,
                           final Command noCommand,
                           final String noButtonText,
                           final ButtonType noButtonType,
                           final IconType noButtonIconType,
                           final Command cancelCommand,
                           final String cancelButtonText,
                           final ButtonType cancelButtonType,
                           final IconType cancelButtonIconType) {

    setTitle(title);
    setHideOtherModals(false);

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(YesNoCancelPopup.this));
    }});
    add(new ModalFooterYesNoCancelButtons(this,
                                          yesCommand,
                                          yesButtonText,
                                          yesButtonType,
                                          yesButtonIconType,
                                          noCommand,
                                          noButtonText,
                                          noButtonType,
                                          noButtonIconType,
                                          cancelCommand,
                                          cancelButtonText,
                                          cancelButtonType,
                                          cancelButtonIconType));

    message.setHTML(SafeHtmlUtils.fromTrustedString(content != null ? content : ""));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:38,代码来源:YesNoCancelPopup.java

示例10: NewFilterPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public NewFilterPopup() {
    createProvider();

    initColumns();
    setTitle(CommonConstants.INSTANCE.Filter_Management());

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(NewFilterPopup.this));
    }});

    tabAdd.setDataTargetWidget(tab1);
    tabManagement.setDataTargetWidget(tab2);

    init();
    final GenericModalFooter footer = new GenericModalFooter();
    footer.addButton(CommonConstants.INSTANCE.OK(),
                     new Command() {
                         @Override
                         public void execute() {
                             okButton();
                         }
                     },
                     null,
                     ButtonType.PRIMARY);

    add(footer);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:28,代码来源:NewFilterPopup.java

示例11: init

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public void init(NewPluginPopUpView.Presenter presenter) {
    this.presenter = presenter;

    footer.enableOkButton(true);

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(NewPluginPopUpViewImpl.this));
    }});
    add(footer);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:11,代码来源:NewPluginPopUpViewImpl.java

示例12: RuleModellerConditionSelectorPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
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));
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:16,代码来源:RuleModellerConditionSelectorPopup.java

示例13: DeploymentScreenPopupViewImpl

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public DeploymentScreenPopupViewImpl() {
    setTitle(ProjectEditorResources.CONSTANTS.BuildAndDeploy());
    setDataBackdrop(ModalBackdrop.STATIC);
    setDataKeyboard(true);
    setFade(true);
    setRemoveOnHide(true);

    final ModalBody modalBody = GWT.create(ModalBody.class);
    modalBody.add(uiBinder.createAndBindUi(DeploymentScreenPopupViewImpl.this));
    add(modalBody);
    add(footer);
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:13,代码来源:DeploymentScreenPopupViewImpl.java

示例14: AddImportPopup

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public AddImportPopup() {
    setTitle(ImportConstants.INSTANCE.addImportPopupTitle());

    add(new ModalBody() {{
        add(uiBinder.createAndBindUi(AddImportPopup.this));
    }});
    add(footer);

    importTypeTextBox.addKeyPressHandler((event) -> {
        importTypeGroup.setValidationState(ValidationState.NONE);
        importTypeHelpInline.setText("");
    });
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:14,代码来源:AddImportPopup.java

示例15: WorkbenchConfigurationViewImpl

import org.gwtbootstrap3.client.ui.ModalBody; //导入依赖的package包/类
public WorkbenchConfigurationViewImpl() {
    footer.enableOkButton( true );
    add( new ModalBody() {{
        add( uiBinder.createAndBindUi( WorkbenchConfigurationViewImpl.this ) );
    }} );
    add( footer );
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:8,代码来源:WorkbenchConfigurationViewImpl.java


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