本文整理汇总了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;未经允许,请勿转载。 |
请发表评论