Package net.lenni0451.imnbt.ui.windows
Class MainWindow
java.lang.Object
net.lenni0451.imnbt.ui.types.Window
net.lenni0451.imnbt.ui.windows.MainWindow
The main window of ImNbt.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMainWindow(ImNbtDrawer drawer, FontHandler fontHandler) Create a new main window.
The font handler is required when using the font size menu. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddragAndDrop(File file, byte[] data) Handle a file being dropped on the window.net.lenni0451.mcstructs.nbt.INbtTagnet.lenni0451.mcstructs.nbt.INbtTag[]getTabs()voidvoidrender()Render the window content.voidsaveFile()
-
Constructor Details
-
MainWindow
Create a new main window.
The font handler is required when using the font size menu. If you don't want to use it you can pass null.- Parameters:
drawer- The drawer instancefontHandler- The font handler to use
-
-
Method Details
-
getOpenTab
@Nullable public net.lenni0451.mcstructs.nbt.INbtTag getOpenTab()- Returns:
- The tag of the currently open tab
-
getTabs
public net.lenni0451.mcstructs.nbt.INbtTag[] getTabs()- Returns:
- The tags of all tabs
-
render
public void render()Description copied from class:WindowRender the window content. -
chooseFile
public void chooseFile() -
dragAndDrop
Description copied from class:WindowHandle a file being dropped on the window.- Overrides:
dragAndDropin classWindow- Parameters:
file- The file that was droppeddata- The raw data of the file
-
open
-
saveFile
public void saveFile()
-