當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。