Class PopupWindow

All Implemented Interfaces:
Globals, org.rusherhack.core.bind.IBindable, org.rusherhack.core.feature.IFeature, org.rusherhack.core.feature.IFeatureConfigurable, org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IDraggable, org.rusherhack.core.interfaces.IHideable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.INamed, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.ITypeable, org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>, org.rusherhack.core.serialize.JsonSerializable

public abstract class PopupWindow extends Window
A popup window which is meant to be created as a child of another window.
  • Field Details

  • Constructor Details

    • PopupWindow

      public PopupWindow(String title, Window parent, double width, double height)
      Constructs a new PopupWindow with the specified title, parent window, and size. The position of the popup window is centered relative to the parent window.
      Parameters:
      title - the title of the popup window
      parent - the parent window of the popup window
      width - the width of the popup window
      height - the height of the popup window
  • Method Details

    • addContent

      public void addContent(WindowContent content)
      Adds a WindowContent to the content list of this popup window.
      Parameters:
      content - the WindowContent to be added
    • getRootView

      public WindowView getRootView()
      Description copied from class: Window
      The root view that should contain all of this window's content
      Specified by:
      getRootView in class Window
      Returns:
      the root view of this window
    • onClose

      public void onClose()
      Overrides:
      onClose in class Window
    • shouldSerialize

      public boolean shouldSerialize(boolean autosave)