Class ModalPanel

    • Constructor Detail

      • ModalPanel

        public ModalPanel()
        Creates a new model panel.
      • ModalPanel

        public ModalPanel​(ModalPanel.ModalPanelAppearance appearance)
        Creates a model panel with the specified appearance.
        Parameters:
        appearance - the appearance of the modal panel
    • Method Detail

      • pop

        public static ModalPanel pop()
        Returns a ModalPanel from the stack.
        Returns:
        the panel
      • push

        public static void push​(ModalPanel panel)
        Pushes a panel back onto the stack.
        Parameters:
        panel - the panel
      • getEventPreview

        public BaseEventPreview getEventPreview()
        Returns the panel's event preview.
        Returns:
        the event preview
      • hide

        public void hide()
        Hides the panel.
        Overrides:
        hide in class Component
      • isBlink

        public boolean isBlink()
        Returns true if blinking is enabled.
        Returns:
        the blink state
      • setBlink

        public void setBlink​(boolean blink)
        True to blink the widget being displayed when the use clicks outside of the widgets bounds (defaults to false).
        Parameters:
        blink - true to blink
      • show

        public void show​(Component component)
        Displays the panel.
        Parameters:
        component - the component displayed above this modal panel.
      • syncModal

        public void syncModal()
        Syncs to the viewport.