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


Java PopupPanel.setAutoHideEnabled方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.PopupPanel.setAutoHideEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java PopupPanel.setAutoHideEnabled方法的具体用法?Java PopupPanel.setAutoHideEnabled怎么用?Java PopupPanel.setAutoHideEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.PopupPanel的用法示例。


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

示例1: CustomOverlayWidget

import com.google.gwt.user.client.ui.PopupPanel; //导入方法依赖的package包/类
/**
 * The constructor should first call super() to initialize the component and
 * then handle any initialization relevant to Vaadin.
 */
public CustomOverlayWidget() {
    setWidget(new HTML()); // Seems that we need this one
    overlay = new PopupPanel();
    overlay.addStyleName(CLASSNAME);
    overlay.setAutoHideEnabled(false);
    overlay.setAnimationEnabled(false);
    overlay.setModal(false);

    Event.addNativePreviewHandler(new NativePreviewHandler() {
        public void onPreviewNativeEvent(NativePreviewEvent event) {
            int typeInt = event.getTypeInt();
            // We're only listening for these
            if (typeInt == Event.ONSCROLL) {
                CustomOverlayWidget.this.updateOverlayPosition();
            }
        }
    });
}
 
开发者ID:Haulmont,项目名称:vaadin-overlays,代码行数:23,代码来源:CustomOverlayWidget.java

示例2: showDetails

import com.google.gwt.user.client.ui.PopupPanel; //导入方法依赖的package包/类
private void showDetails(final KieContainer container) {
    final PopupPanel detailsPopup = new PopupPanel();
    detailsPopup.setTitle(Constants.INSTANCE.detailsForContainer() + " " + container.getId());
    detailsPopup.setAutoHideEnabled(true);
    detailsPopup.setModal(true);
    detailsPopup.setGlassEnabled(true);
    detailsPopup.add(detailsWidget);
    detailsPopup.center();
    detailsPopup.show();
    detailsWidget.show(container);
}
 
开发者ID:kiegroup,项目名称:kie-docker-ci,代码行数:12,代码来源:ContainersView.java

示例3: showMenu

import com.google.gwt.user.client.ui.PopupPanel; //导入方法依赖的package包/类
protected void showMenu() {
	if (menu != null) {
		final PopupPanel pp = new PopupPanel();
		pp.setAutoHideEnabled(true);
		pp.setAutoHideOnHistoryEventsEnabled(true);
		pp.setAnimationEnabled(true);
		pp.setWidget(menu);
		pp.showRelativeTo(chevronMenu);
	}
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:11,代码来源:DropDownButton.java

示例4: YMD_OOField

import com.google.gwt.user.client.ui.PopupPanel; //导入方法依赖的package包/类
public YMD_OOField(
    DateProvider dateProv,
    IneDateGWT date,
    boolean showstepbuttons,
    int stepcount,
    boolean showcalendar,
    boolean usetextbox,
    DateTimeFieldParentInterface parent,
    boolean enableselectmanager) {
    super(
        date,
        Precision.YMD_OO,
        showstepbuttons,
        stepcount,
        usetextbox,
        parent,
        enableselectmanager);

    this.showcalendar = showcalendar;
    this.dateProv = dateProv;

    if (showcalendar) {
        img_calendar = new Image();
        datepicker = new I18nDatePicker();
        popup = new PopupPanel();
        popup.getElement().getStyle().setZIndex(1010); // front of
                                                       // ActionPopup
        popup.setWidget(datepicker);
        popup.setAutoHideEnabled(true);

        img_calendar.setResource(ResourceHelper.ineformRes().calendar());
        img_calendar.addStyleName(ResourceHelper.ineformRes().style().clickable());
        img_calendar.getElement().getStyle().setPaddingLeft(5, Unit.PX);
        img_calendar.getElement().getStyle().setPaddingRight(5, Unit.PX);
        img_calendar.getElement().getStyle().setPaddingRight(5, Unit.PX);
        img_calendar.getElement().getStyle().setVerticalAlign(VerticalAlign.MIDDLE);
    }

    if (showcalendar)
        panel_main.insert(img_calendar, 0);

    setEnabled(true);
}
 
开发者ID:inepex,项目名称:ineform,代码行数:44,代码来源:YMD_OOField.java


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