/** * Internal method called to reveal a presenter. * See {@link PresenterWidget} and {@link Presenter} for ways to reveal a * presenter. */ @SuppressWarnings("unchecked") void internalReveal() { if (isVisible()) { return; } onReveal(); visible = true; // use new set to prevent concurrent modification for (PresenterWidget<?> child: new HashSet<>(children)) { child.internalReveal(); } if (isPopup()) { monitorCloseEvent((PresenterWidget<? extends PopupView>) this); ((PopupView) getView()).showAndReposition(); } registerVisibleHandlers(); }