public static VOverlay createCubaTablePopup(boolean autoClose) { final VOverlay tableCustomPopup = autoClose ? createContextMenu() : new VOverlay(); tableCustomPopup.setStyleName("c-table-popup"); return tableCustomPopup; }
private void createDescriptionPopup() { descriptionPopup = new VOverlay(); descriptionPopup.setOwner(getOwner()); descriptionPopup.setStylePrimaryName("aceeditor-suggestpopup-description"); HTML lbl = new HTML(); lbl.setWordWrap(true); descriptionPopup.setWidget(lbl); updateDescriptionPopupPosition(); descriptionPopup.setWidth(DESCRIPTION_WIDTH+"px"); // descriptionPopup.setSize(DESCRIPTION_WIDTH+"px", HEIGHT+"px"); }
protected void createDescriptionPopup() { descriptionPopup = new VOverlay(); descriptionPopup.setOwner(getOwner()); descriptionPopup.setStylePrimaryName("aceeditor-suggestpopup-description"); HTML lbl = new HTML(); lbl.setWordWrap(true); descriptionPopup.setWidget(lbl); updateDescriptionPopupPosition(); descriptionPopup.setWidth(DESCRIPTION_WIDTH+"px"); // descriptionPopup.setSize(DESCRIPTION_WIDTH+"px", HEIGHT+"px"); }
@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"); }
@Override public void onClick(ClickEvent event) { overlay = new VOverlay(true, true); overlay.setStyleName(B.css().android23SelectOverlay()); overlay.setGlassEnabled(true); overlay.setGlassStyleName(B.css().android23SelectOverlayGlass()); overlay.add(options); TouchScrollDelegate.enableTouchScrolling(overlay, overlay.getElement()); overlay.center(); } });
ClickEvent.getType()); dockButtonContainer = new VOverlay(); dockButtonContainer.addStyleName(SP_DOCK_OVERLAY); dockButtonContainer.getElement().getStyle().setZIndex(9999);
public void showPresentationEditorPopup(Event event, Widget presentationsEditIcon) { if (event.getEventTarget().cast() == presentationsEditIcon.getElement() && tableWidget.isEnabled()) { this.presentationsEditorPopup = new VOverlay(); this.presentationsEditorPopup.setStyleName("c-table-prefs-editor"); this.presentationsEditorPopup.setOwner(table); this.presentationsEditorPopup.setWidget(this.presentationsMenu); // Store the currently focused element, which will be re-focused when // context menu is closed Element focusedElement = WidgetUtil.getFocusedElement(); this.presentationsEditorPopup.addCloseHandler(e -> { Element currentFocus = WidgetUtil.getFocusedElement(); if (focusedElement != null && (currentFocus == null || presentationsEditorPopup.getElement().isOrHasChild(currentFocus) || RootPanel.getBodyElement().equals(currentFocus))) { focusedElement.focus(); } presentationsEditorPopup = null; }); this.presentationsEditorPopup.setAutoHideEnabled(true); this.presentationsEditorPopup.showRelativeTo(presentationsEditIcon); } }