/** * Defines content band's height as percent of available content area's height. */ public void setContentHeightPercent(double contentHeightPercent) { double oldVal = this.contentHeightPercent; this.contentHeightPercent = contentHeightPercent; if (oldVal != this.contentHeightPercent && content != null && content.isAttached()) { recalcContentHeightPercent(); centerContent(); initWindowResize(); } }
/** * Defines content band's height as percent of available content area's height. */ public void setContentHeightPercent(double contentHeightPercent) { double oldVal = this.contentHeightPercent; this.contentHeightPercent = contentHeightPercent; if (oldVal != this.contentHeightPercent && content != null && content.isAttached()) { recalcContentHeightPercent(); centerContent(); initWindowResize(); } }
/** * Defines content band's height as percent of available content area's height. */ public void setContentHeightPercent(double contentHeightPercent) { double oldVal = this.contentHeightPercent; this.contentHeightPercent = contentHeightPercent; if (oldVal != this.contentHeightPercent && content != null && content.isAttached()) { recalcContentHeightPercent(); centerContent(); initWindowResize(); } }
/** * Fixed Header and Footer will be hidden if content area height percent is below * than specified percent of window height (default is 50%). * <br> Useful in cases with activated virtual keyboard, especially on Android. */ public void setHideFixedToolbarsIfContentAreaPercentBelow(double value) { double oldVal = hideFixedToolbarsIfContentAreaPercentBelow; hideFixedToolbarsIfContentAreaPercentBelow = value; if (oldVal != hideFixedToolbarsIfContentAreaPercentBelow && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); } }
/** * Fixed Header and Footer will be hidden if content area height percent is below * than specified percent of window height (default is 50%). * <br> Useful in cases with activated virtual keyboard, especially on Android. */ public void setHideFixedToolbarsIfContentAreaPercentBelow(double value) { double oldVal = hideFixedToolbarsIfContentAreaPercentBelow; hideFixedToolbarsIfContentAreaPercentBelow = value; if (oldVal != hideFixedToolbarsIfContentAreaPercentBelow && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); } }
/** * Content band will be centered between Header and Footer * (they must be defined as fixed="true" OR page.pseudoFixedToolbars="true"). */ public void setContentCentered(boolean contentCentered) { boolean oldVal = this.contentCentered; this.contentCentered = contentCentered; if (oldVal != this.contentCentered && content != null && content.isAttached()) { if (this.contentCentered) { centerContent(); initWindowResize(); } else { clearCenterContent(); } } }
/** * Content band will be centered between Header and Footer * (they must be defined as fixed="true" OR page.pseudoFixedToolbars="true"). */ public void setContentCentered(boolean contentCentered) { boolean oldVal = this.contentCentered; this.contentCentered = contentCentered; if (oldVal != this.contentCentered && content != null && content.isAttached()) { if (this.contentCentered) { centerContent(); initWindowResize(); } else { clearCenterContent(); } } }
/** * Fixed Header and Footer will be hidden if content area height percent is below * than specified percent of window height (default is 50%). * <br> Useful in cases with activated virtual keyboard, especially on Android. */ public void setHideFixedToolbarsIfContentAreaPercentBelow(double value) { double oldVal = hideFixedToolbarsIfContentAreaPercentBelow; hideFixedToolbarsIfContentAreaPercentBelow = value; if (oldVal != hideFixedToolbarsIfContentAreaPercentBelow && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); } }
/** * If content is short or scrollable (see {@link JQMPage#setContentHeightPercent(double)}), * we can get "fixed" header and footer without using CSS position: fixed (it's not working * quite good in mobile browsers). Just setPseudoFixedToolbars(true) and footer's position will * be calculated to be at the bottom of the page. */ public void setPseudoFixedToolbars(boolean value) { boolean oldVal = this.pseudoFixedToolbars; this.pseudoFixedToolbars = value; if (oldVal != this.pseudoFixedToolbars && content != null && content.isAttached()) { if (this.pseudoFixedToolbars) { centerContent(); initWindowResize(); } else { centerContent(); } } }
/** * Content band will be centered between Header and Footer * (they must be defined as fixed="true" OR page.pseudoFixedToolbars="true"). */ public void setContentCentered(boolean contentCentered) { boolean oldVal = this.contentCentered; this.contentCentered = contentCentered; if (oldVal != this.contentCentered && content != null && content.isAttached()) { if (this.contentCentered) { centerContent(); initWindowResize(); } else { clearCenterContent(); } } }
/** * If content is short or scrollable (see {@link JQMPage#setContentHeightPercent(double)}), * we can get "fixed" header and footer without using CSS position: fixed (it's not working * quite good in mobile browsers). Just setPseudoFixedToolbars(true) and footer's position will * be calculated to be at the bottom of the page. */ public void setPseudoFixedToolbars(boolean value) { boolean oldVal = this.pseudoFixedToolbars; this.pseudoFixedToolbars = value; if (oldVal != this.pseudoFixedToolbars && content != null && content.isAttached()) { if (this.pseudoFixedToolbars) { centerContent(); initWindowResize(); } else { centerContent(); } } }
/** * If content is short or scrollable (see {@link JQMPage#setContentHeightPercent(double)}), * we can get "fixed" header and footer without using CSS position: fixed (it's not working * quite good in mobile browsers). Just setPseudoFixedToolbars(true) and footer's position will * be calculated to be at the bottom of the page. */ public void setPseudoFixedToolbars(boolean value) { boolean oldVal = this.pseudoFixedToolbars; this.pseudoFixedToolbars = value; if (oldVal != this.pseudoFixedToolbars && content != null && content.isAttached()) { if (this.pseudoFixedToolbars) { centerContent(); initWindowResize(); } else { centerContent(); } } }
/** * Fixed Header and Footer will be hidden if virtual/on-screen keyboard is activated. * <br> This property is used as threshold(keyboard's height) in pixels * for keyboard detection (to work must be > 0, default is 0). */ public void setHideFixedToolbarsIfVirtualKeyboard(int value) { int oldVal = hideFixedToolbarsIfVirtualKeyboard; hideFixedToolbarsIfVirtualKeyboard = value; if (oldVal != hideFixedToolbarsIfVirtualKeyboard && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * Fixed Header and Footer will be hidden if virtual/on-screen keyboard is activated. * <br> This property is used as threshold(keyboard's height) in pixels * for keyboard detection (to work must be > 0, default is 0). */ public void setHideFixedToolbarsIfVirtualKeyboard(int value) { int oldVal = hideFixedToolbarsIfVirtualKeyboard; hideFixedToolbarsIfVirtualKeyboard = value; if (oldVal != hideFixedToolbarsIfVirtualKeyboard && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }
/** * Fixed Header and Footer will be hidden if virtual/on-screen keyboard is activated. * <br> This property is used as threshold(keyboard's height) in pixels * for keyboard detection (to work must be > 0, default is 0). */ public void setHideFixedToolbarsIfVirtualKeyboard(int value) { int oldVal = hideFixedToolbarsIfVirtualKeyboard; hideFixedToolbarsIfVirtualKeyboard = value; if (oldVal != hideFixedToolbarsIfVirtualKeyboard && content != null && content.isAttached()) { processFixedToolbars(); centerContent(); initWindowResize(); if (hideFixedToolbarsIfVirtualKeyboard > 0) initOrientationChange(); } }