本文整理汇总了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();
}
}
});
}
示例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);
}
示例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);
}
}
示例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);
}