Package net.lenni0451.imnbt.ui.types
Class Window
java.lang.Object
net.lenni0451.imnbt.ui.types.Window
- Direct Known Subclasses:
AboutWindow,DiffWindow,MainWindow
A window that can be shown.
There can only be one window shown at a time.
There can only be one window shown at a time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddragAndDrop(File file, byte[] data) Handle a file being dropped on the window.final voidhide()Hide this window and show the main window.abstract voidrender()Render the window content.final voidshow()Show this window and hide the current one.
-
Field Details
-
drawer
-
-
Constructor Details
-
Window
-
-
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
Handle a file being dropped on the window.- Parameters:
file- The file that was droppeddata- The raw data of the file
-