/** * Fires a close event on all registered handlers in the handler manager. If * no such handlers exist, this method will do nothing. * * @param <T> the target type * @param source the source of the handlers * @param target the target */ public static <T> void fire(HasCloseHandlers<T> source, T target) { fire(source, target, false); }
private void fireEvent() { if (isOpen) { OpenEvent.fire(this, this); } else { CloseEvent.fire(this, this); } }
void fireStateChanged(TreeItem item, boolean open) { if (open) { OpenEvent.fire(this, item); } else { CloseEvent.fire(this, item); } }
static void onClosed() { if (closeHandlersInitialized) { CloseEvent.fire(getHandlers(), null); } }
/** * Hides the popup and detaches it from the page. This has no effect if it is * not currently showing. * * @param autoClosed the value that will be passed to * {@link CloseHandler#onClose(CloseEvent)} when the popup is closed */ public void hide(boolean autoClosed) { if (!isShowing()) { return; } resizeAnimation.setState(false, false); CloseEvent.fire(this, this, autoClosed); }
/** * Closes the menu bar. * * @deprecated Use {@link #addCloseHandler(CloseHandler)} instead */ @Override @Deprecated public void onPopupClosed(PopupPanel sender, boolean autoClosed) { // If the menu popup was auto-closed, close all of its parents as well. if (autoClosed) { closeAllParents(); } onHide(!autoClosed && focusOnHover); CloseEvent.fire(MenuBar.this, sender); // When the menu popup closes, remember that no item is // currently showing a popup menu. shownChildMenu = null; popup = null; if (parentMenu != null && parentMenu.popup != null) { parentMenu.popup.setPreviewingAllNativeEvents(true); } }
CloseEvent.fire(this, closedNode);
protected void onNativeClose(boolean autoClosed, boolean fireEvent) { if (fireEvent) { CloseEvent.fire(this, this, autoClosed); } }
/** * Fires a close event on all registered handlers in the handler manager. If * no such handlers exist, this method will do nothing. * * @param <T> the target type * @param source the source of the handlers * @param target the target */ public static <T> void fire(HasCloseHandlers<T> source, T target) { fire(source, target, false); }
/** * This method is called immediately when the widget's close method is * executed. */ // TODO: Get the source element from javascript protected void onClose() { CloseEvent.fire(this, this); }
@Override public void onHide( final HideEvent hideEvent ) { CloseEvent.fire( PopupViewImpl.this, PopupViewImpl.this, false ); } } );
private void onTitleClicked() { if (expanded) { CloseEvent.fire(this, this); } else { OpenEvent.fire(this, this); } }
void fireStateChanged(TreeItem item, boolean open) { if (open) { OpenEvent.fire(this, item); } else { CloseEvent.fire(this, item); } }
static void onClosed() { if (closeHandlersInitialized) { CloseEvent.fire(getHandlers(), null); } }
@Override public void execute() { showAgain = footer.getShowAgain(); CloseEvent.fire(SplashViewImpl.this, SplashViewImpl.this, false); } });
CloseEvent.fire(tree, getTreeNode());
public void close() { if (isAttached()) { removeFromParent(); CloseEvent.fire(this, this); } }
/** * Close the FAB programmatically * * @param fireEvent flag whether this component fires Close Event */ public void close(boolean fireEvent) { if (fireEvent) { CloseEvent.fire(this, this); } $(getElement()).closeFAB(); }
public void close() { setActive(false); Scheduler.get().scheduleDeferred(() -> $(valueBoxBase.getElement()).blur()); CloseEvent.fire(MaterialSearch.this, getText()); }
public void close() { setActive(false); Scheduler.get().scheduleDeferred(() -> $(valueBoxBase.getElement()).blur()); CloseEvent.fire(MaterialSearch.this, getText()); }