public void closeDialog() { if (isDialog()) { safeCloseDialog(this); } else if (Mobile.DATA_ROLE_DIALOG.equals(JQMCommon.getDataRole(this))) { internCloseDialog(getElement()); } }
public void closeDialog() { if (isDialog()) { safeCloseDialog(this); } else if (Mobile.DATA_ROLE_DIALOG.equals(JQMCommon.getDataRole(this))) { internCloseDialog(getElement()); } }
public void closeDialog() { if (isDialog()) { safeCloseDialog(this); } else if (Mobile.DATA_ROLE_DIALOG.equals(JQMCommon.getDataRole(this))) { internCloseDialog(getElement()); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageBeforeShow(Element prevPage) { onPageBeforeShow(); JQMPageEvent.fire(this, PageState.BEFORE_SHOW, findPage(prevPage), this); if (isDialog()) { isDlgCloseable = true; prepareTransparentPrevPage(prevPage); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageBeforeShow(Element prevPage) { onPageBeforeShow(); JQMPageEvent.fire(this, PageState.BEFORE_SHOW, findPage(prevPage), this); if (isDialog()) { isDlgCloseable = true; prepareTransparentPrevPage(prevPage); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageBeforeShow(Element prevPage) { onPageBeforeShow(); JQMPageEvent.fire(this, PageState.BEFORE_SHOW, findPage(prevPage), this); if (isDialog()) { isDlgCloseable = true; prepareTransparentPrevPage(prevPage); } }
/** * @param nextPage - DOM element that we are transitioning to. */ protected void doPageBeforeHide(Element nextPage) { final JQMPage nextPg = findPage(nextPage); if (nextPg != null && nextPg.isDialog() && nextPg.isDlgTransparent() && nextPg.getElement() != transparentPrevPage // fix for: page1 -> dlg1 -> dlg2 -> dlg2.closeDialog() ) { // openDialog() -> JQMContext.changePage() calls hide for current page first, and only // after that will call show for dialog itself, so we have to process transparent // property immediately right here, and suppress rest of the hide logic for current page. nextPg.prepareTransparentPrevPage(getElement()); return; } onPageBeforeHide(); JQMPageEvent.fire(this, PageState.BEFORE_HIDE, this, nextPg); if (isDialog()) isDlgCloseable = false; }
/** * @param nextPage - DOM element that we are transitioning to. */ protected void doPageBeforeHide(Element nextPage) { final JQMPage nextPg = findPage(nextPage); if (nextPg != null && nextPg.isDialog() && nextPg.isDlgTransparent() && nextPg.getElement() != transparentPrevPage // fix for: page1 -> dlg1 -> dlg2 -> dlg2.closeDialog() ) { // openDialog() -> JQMContext.changePage() calls hide for current page first, and only // after that will call show for dialog itself, so we have to process transparent // property immediately right here, and suppress rest of the hide logic for current page. nextPg.prepareTransparentPrevPage(getElement()); return; } onPageBeforeHide(); JQMPageEvent.fire(this, PageState.BEFORE_HIDE, this, nextPg); if (isDialog()) isDlgCloseable = false; }
/** * @param nextPage - DOM element that we are transitioning to. */ protected void doPageBeforeHide(Element nextPage) { final JQMPage nextPg = findPage(nextPage); if (nextPg != null && nextPg.isDialog() && nextPg.isDlgTransparent() && nextPg.getElement() != transparentPrevPage // fix for: page1 -> dlg1 -> dlg2 -> dlg2.closeDialog() ) { // openDialog() -> JQMContext.changePage() calls hide for current page first, and only // after that will call show for dialog itself, so we have to process transparent // property immediately right here, and suppress rest of the hide logic for current page. nextPg.prepareTransparentPrevPage(getElement()); return; } onPageBeforeHide(); JQMPageEvent.fire(this, PageState.BEFORE_HIDE, this, nextPg); if (isDialog()) { isDlgCloseable = false; if (transparent) prepareTransparentOpened(false/*add*/, getId()); } }
/** * @param prevPage - DOM element that we are transitioning away from. * Could be null when the first page is transitioned in during application startup. */ protected void doPageShow(Element prevPage) { initialWindowHeight = Window.getClientHeight(); onPageShow(); JQMPageEvent.fire(this, PageState.SHOW, findPage(prevPage), this); if (isDialog() && transparent && prevPage != null) { prepareTransparentOpened(true/*add*/, getId()); } if (contentCentered || pseudoFixedToolbars || contentHeightPercent > 0 || hideFixedToolbarsIfContentAreaPercentBelow > 0 || hideFixedToolbarsIfVirtualKeyboard > 0) { // we have to wait till CSS rules execution is completed, otherwise heights could be incorrect Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { refreshPartsPositioning(); } }); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }