Package totalcross.ui

Class SlidingWindow

    • Field Detail

      • animDir

        protected int animDir
      • slackSpace

        protected int slackSpace
      • totalTime

        protected int totalTime
      • delayedUiSpinner

        protected Spinner delayedUiSpinner
      • delayInitUI

        protected boolean delayInitUI
    • Method Detail

      • setRect

        protected void setRect​(boolean screenResized)
      • unpop

        public void unpop()
        Description copied from class: Window
        Hides this window. Calling unpop when only the MainWindow is active does nothing.
        Overrides:
        unpop in class Window
      • popup

        public void popup()
        Description copied from class: Window
        Pops up this window, blocking the execution until the window closes.
        Overrides:
        popup in class Window
      • initUI

        public void initUI()
        Description copied from class: Container
        Called to initialize the User Interface of this container. This differs from the onAddAgain method by that this method is called only once, at the first time the control is added to the parent. When the container is being setup, the initUI method is called; then, the onAddAgain is called every time the container is added again.
        Overrides:
        initUI in class Container
      • postPopup

        protected void postPopup()
        Description copied from class: Window
        Placeholder called after the popup is done and after the repaint of this window. The default implementation does nothing.
        Overrides:
        postPopup in class Window
      • onPopup

        public void onPopup()
        Description copied from class: Window
        Placeholder called imediatly before the popup began. The default implementation does nothing.
        Overrides:
        onPopup in class Window
      • screenResized

        public void screenResized()
        Description copied from class: Window
        Called when the screen is resized, probably caused by a rotation. ATTENTION: THIS CALL CANNOT BE BLOCKED OR THE SYSTEM WILL LOCK!
        Overrides:
        screenResized in class Window
      • getSlackSpace

        public int getSlackSpace()
        Gets the slack space left by this window on pop-up
      • setSlackSpace

        public void setSlackSpace​(int slackSpace)
        Sets the slack space left by this window on pop-up