@Override public void show() { if (vaadinModality) { showModalityCurtain(); } super.show(); }
@Override public void show() { hiding = false; // ** Copied from PopupView ** // Find the shortcut action handler that should handle keyboard // events from the popup. The events do not propagate automatically // because the popup is directly attached to the RootPanel. Widget widget = VPopupButton.this; while (shortcutActionHandler == null && widget != null) { if (widget instanceof ShortcutActionHandler.ShortcutActionHandlerOwner) { shortcutActionHandler = ((ShortcutActionHandler.ShortcutActionHandlerOwner) widget) .getShortcutActionHandler(); } widget = widget.getParent(); } super.show(); }
@Override public void show() { hiding = false; // ** Copied from PopupView ** // Find the shortcut action handler that should handle keyboard // events from the popup. The events do not propagate automatically // because the popup is directly attached to the RootPanel. Widget widget = VPopupButton.this; while (shortcutActionHandler == null && widget != null) { if (widget instanceof ShortcutActionHandler.ShortcutActionHandlerOwner) { shortcutActionHandler = ((ShortcutActionHandler.ShortcutActionHandlerOwner) widget) .getShortcutActionHandler(); } widget = widget.getParent(); } super.show(); }
@Override public void show() { hiding = false; // ** Copied from PopupView ** // Find the shortcut action handler that should handle keyboard // events from the popup. The events do not propagate automatically // because the popup is directly attached to the RootPanel. Widget widget = VPopupButton.this; while (shortcutActionHandler == null && widget != null) { if (widget instanceof ShortcutActionHandler.ShortcutActionHandlerOwner) { shortcutActionHandler = ((ShortcutActionHandler.ShortcutActionHandlerOwner) widget) .getShortcutActionHandler(); } widget = widget.getParent(); } super.show(); }
@Override public void onChange(ChangeEvent event) { if (descriptionPopup == null) { createDescriptionPopup(); } int selected = choiceList.getSelectedIndex(); String descr = visibleSuggs.get(selected).descriptionText; if (descr != null && !descr.isEmpty()) { ((HTML) descriptionPopup.getWidget()).setHTML(descr); descriptionPopup.show(); } else { descriptionPopup.hide(); } }
@Override public void onChange(ChangeEvent event) { if (descriptionPopup == null) { createDescriptionPopup(); } int selected = choiceList.getSelectedIndex(); String descr = visibleSuggs.get(selected).descriptionText; if (descr != null && !descr.isEmpty()) { ((HTML) descriptionPopup.getWidget()).setHTML(descr); if (showDescriptions) { descriptionPopup.show(); } } else { descriptionPopup.hide(); } }
@Override public void activate(ActivationEvent event) { active = true; activationMessage = event.getActivationMessage(); overlay = new VOverlay(); overlay.addStyleName("v-window"); overlay.addStyleName("v-touchkit-offlinemode"); Style style = overlay.getElement().getStyle(); style.setZIndex(Z_INDEX); // Make sure this is overloading the indicator flowPanel = new FlowPanel(); overlay.add(flowPanel); buildDefaultContent(); overlay.show(); overlay.setWidth(Window.getClientWidth() + "px"); overlay.setHeight(Window.getClientHeight() + "px"); }
dockButtonContainer.show();
public static void showPopup(VOverlay overlay, int left, int top) { overlay.setAutoHideEnabled(true); overlay.setVisible(false); overlay.show();