• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Modal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ModalFooterYesNoCancelButtons

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalFooterYesNoCancelButtons(final Modal panel,
                                     final Command yesCommand,
                                     final ButtonType yesButtonType,
                                     final Command noCommand,
                                     final ButtonType noButtonType,
                                     final Command cancelCommand,
                                     final ButtonType cancelButtonType) {
    this(panel,
         yesCommand,
         null,
         yesButtonType,
         null,
         noCommand,
         null,
         noButtonType,
         null,
         cancelCommand,
         null,
         cancelButtonType,
         null);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:22,代码来源:ModalFooterYesNoCancelButtons.java


示例2: BaseModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public BaseModal() {
    setDataBackdrop(ModalBackdrop.STATIC);
    setDataKeyboard(true);
    setRemoveOnHide(true);
    setHideOtherModals(false);
    setShowHandler();
    setKeyPressHandler();
    getElement().setId("panel-id");
    addShowHandler(new ModalShowHandler() {
        @Override
        public void onShow(ModalShowEvent evt) {
            Modal modal = evt.getModal();
            modal.getElement().setAttribute("maxHeight",
                                            "100px");
            modal.getElement().setAttribute("overflowY",
                                            "scroll");
        }
    });
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:20,代码来源:BaseModal.java


示例3: ModalFooterReOpenIgnoreButtons

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalFooterReOpenIgnoreButtons(final Modal panel,
                                      final Command actionCommand,
                                      final Command ignoreCommand,
                                      final String buttonText) {
    this.actionCommand = checkNotNull("actionCommand",
                                      actionCommand);
    this.ignoreCommand = checkNotNull("ignoreCommand",
                                      ignoreCommand);
    this.panel = checkNotNull("panel",
                              panel);
    add(uiBinder.createAndBindUi(this));
    this.actionButton.setText(buttonText);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:14,代码来源:ModalFooterReOpenIgnoreButtons.java


示例4: ModalFooterForceSaveReOpenCancelButtons

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalFooterForceSaveReOpenCancelButtons(final Modal panel,
                                               final Command forceSaveCommand,
                                               final Command reopenCommand,
                                               final Command cancelCommand) {
    this.forceSaveCommand = checkNotNull("forceSaveCommand",
                                         forceSaveCommand);
    this.reopenCommand = checkNotNull("reopenCommand",
                                      reopenCommand);
    this.cancelCommand = checkNotNull("cancelCommand",
                                      cancelCommand);
    this.panel = checkNotNull("panel",
                              panel);
    add(uiBinder.createAndBindUi(this));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:15,代码来源:ModalFooterForceSaveReOpenCancelButtons.java


示例5: showConfigModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public void showConfigModal(Command configurationFinish,
                            Command configurationCanceled,
                            Supplier<LayoutTemplate> currentLayoutTemplateSupplier) {
    ModalConfigurationContext ctx = new ModalConfigurationContext(layoutComponent,
                                                                  configurationFinish,
                                                                  configurationCanceled,
                                                                  currentLayoutTemplateSupplier);
    Modal configModal = ((HasModalConfiguration)
            getLayoutDragComponent()).getConfigurationModal(ctx);
    configModal.show();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:DragHelperComponentColumn.java


示例6: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal(ModalConfigurationContext ctx) {
    this.configContext = ctx;
    return new EditScreen(ctx,
                          availableWorkbenchScreensIds,
                          createCleanupPlaceRequest(buildPlaceRequest(ctx.getComponentProperties())));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:ScreenLayoutDragComponent.java


示例7: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal( final ModalConfigurationContext ctx ) {
    Map<String, String> properties = ctx.getComponentProperties();
    String json = properties.get( "json" );
    DisplayerSettings settings = json != null ? marshaller.fromJsonString( json ) : null;
    DisplayerEditorPopup editor = beanManager.lookupBean( DisplayerEditorPopup.class ).newInstance();
    editor.init( settings );
    editor.setOnSaveCommand( getSaveCommand( editor, ctx ) );
    editor.setOnCloseCommand( getCloseCommand( editor, ctx ) );
    return editor;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:DisplayerDragComponent.java


示例8: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal(ModalConfigurationContext ctx) {
    List<String> targetDivIdList = TargetDivList.list(ctx.getCurrentLayoutTemplate());
    navComponentConfigModal.clear();
    navComponentConfigModal.setTargetDivIdList(targetDivIdList);

    // Nav group settings
    NavTree navTree = navigationManager.getNavTree();
    String groupId = ctx.getComponentProperty(NAV_GROUP_ID);
    navComponentConfigModal.setNavGroup(navTree.getRootItems(), navTree.getItemById(groupId) != null ? groupId : null);
    navComponentConfigModal.setNavGroupHelpHint(getDragComponentNavGroupHelp());

    // Default item settings
    boolean supportsDefaultNavItem = navWidget instanceof HasDefaultNavItem;
    navComponentConfigModal.setDefaultNavItemSupported(supportsDefaultNavItem);
    if (supportsDefaultNavItem) {
        String navItemId = ctx.getComponentProperty(NAV_DEFAULT_ID);
        navComponentConfigModal.setDefaultNavItemId(navItemId);
    }
    // Target div settings
    boolean supportsTargetDiv = navWidget instanceof HasTargetDiv;
    navComponentConfigModal.setTargetDivSupported(supportsTargetDiv);
    if (supportsTargetDiv) {
        String targetDivId = ctx.getComponentProperty(TARGET_DIV_ID);
        navComponentConfigModal.setTargetDiv(targetDivId);
        layoutTemplate = ctx.getCurrentLayoutTemplate();
    }

    navComponentConfigModal.setOnOk(() -> navConfigOk(ctx, supportsDefaultNavItem, supportsTargetDiv));
    navComponentConfigModal.setOnCancel(() -> navConfigCancel(ctx));
    navComponentConfigModal.show();
    return ((NavComponentConfigModalView) navComponentConfigModal.getView()).getModal();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:34,代码来源:AbstractNavDragComponent.java


示例9: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal(ModalConfigurationContext ctx) {
    Map<String, String> properties = ctx.getComponentProperties();
    String perspectiveId = properties.get(PERSPECTIVE_ID);
    perspectiveDragConfigModal.setOnOk(() -> perspectiveSelectionOk(ctx));
    perspectiveDragConfigModal.setOnCancel(() -> perspectiveSelectionCancel(ctx));
    perspectiveDragConfigModal.show(perspectiveId);
    return ((PerspectiveDragConfigModalView) perspectiveDragConfigModal.getView()).getModal();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:10,代码来源:PerspectiveDragComponent.java


示例10: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal(final ModalConfigurationContext ctx) {

    showProperties = true;

    configContext = ctx;

    if (field == null) {
        initContent(ctx.getComponentProperties());
    } else {
        propertiesRenderer.render(propertiesRendererHelper);
    }

    return propertiesRenderer.getView().getPropertiesModal();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:16,代码来源:EditorFieldLayoutComponent.java


示例11: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal(ModalConfigurationContext ctx) {
    this.configContext = ctx;
    return new EditTargetDiv(ctx);
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:6,代码来源:TargetDivDragComponent.java


示例12: getModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getModal() {
    return modal;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:5,代码来源:EditHTMLView.java


示例13: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getConfigurationModal(ModalConfigurationContext ctx) {
    htmlEditor.init(ctx);
    return htmlEditor.getView().getModal();
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:6,代码来源:HTMLLayoutDragComponent.java


示例14: getModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public Modal getModal() {
    return modal;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:4,代码来源:NavComponentConfigModalView.java


示例15: ModalShowEvent

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalShowEvent(final Modal modal, final Event nativeEvent) {
    this.modal = modal;
    this.nativeEvent = nativeEvent;
}
 
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:ModalShowEvent.java


示例16: ModalHiddenEvent

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalHiddenEvent(final Modal modal, final Event nativeEvent) {
    this.modal = modal;
    this.nativeEvent = nativeEvent;
}
 
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:ModalHiddenEvent.java


示例17: ModalShownEvent

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalShownEvent(final Modal modal, final Event nativeEvent) {
    this.modal = modal;
    this.nativeEvent = nativeEvent;
}
 
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:ModalShownEvent.java


示例18: ModalHideEvent

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
public ModalHideEvent(final Modal modal, final Event nativeEvent) {
    this.modal = modal;
    this.nativeEvent = nativeEvent;
}
 
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:ModalHideEvent.java


示例19: getPropertiesModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
@Override
public Modal getPropertiesModal() {
    return modal;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:5,代码来源:FieldPropertiesRendererViewImpl.java


示例20: getConfigurationModal

import org.gwtbootstrap3.client.ui.Modal; //导入依赖的package包/类
/**
 * Get the modal window holding the component's configuration panel.
 * @param ctx The configuration context
 * @return A modal window in charge of the component's configuration.
 */
Modal getConfigurationModal(ModalConfigurationContext ctx);
 
开发者ID:kiegroup,项目名称:appformer,代码行数:7,代码来源:HasModalConfiguration.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Status类代码示例发布时间:2022-05-22
下一篇:
Java Localizer类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap