Class Window

java.lang.Object
net.lenni0451.imnbt.ui.types.Window
Direct Known Subclasses:
AboutWindow, DiffWindow, MainWindow

public abstract class Window extends Object
A window that can be shown.
There can only be one window shown at a time.
  • Field Details

  • Constructor Details

  • Method Details

    • show

      public final void show()
      Show this window and hide the current one.
    • hide

      public final void hide()
      Hide this window and show the main window.
    • render

      public abstract void render()
      Render the window content.
    • dragAndDrop

      public void dragAndDrop(File file, byte[] data)
      Handle a file being dropped on the window.
      Parameters:
      file - The file that was dropped
      data - The raw data of the file