Interface MainForm
- All Superinterfaces:
Form
,com.github.tadukoo.util.pojo.MappedPojo
- All Known Subinterfaces:
SimpleMainForm
,TabbedMainForm
- All Known Implementing Classes:
AbstractSimpleMainForm
,AbstractTabbedMainForm
Main Form represents the main
Form
in a program for a user to interact with. As such, it's expected
that the Main Form will inherit from JFrame
to provide everything needed.- Version:
- Alpha v.0.3.3
- Author:
- Logan Ferree (Tadukoo)
-
Method Summary
Methods inherited from interface com.github.tadukoo.view.form.Form
asComponent, saveValues
Methods inherited from interface com.github.tadukoo.util.pojo.MappedPojo
clear, getItem, getKeys, getListItem, getListItemNoThrow, getListItemNoThrow, getMap, getPojoItem, getPojoItemNoThrow, getPojoItemNoThrow, hasItem, hasKey, isEmpty, removeItem, setItem
-
Method Details
-
asFrame
JFrame asFrame()- Returns:
- This form as a
JFrame
-
defaultCloseOperation
- Returns:
- The default
CloseOperation
to use for this Main Form
-
iconPath
- Returns:
- The filepath to the icon to use for this Main Form (can be null to not set an icon)
-
framePreferredSize
- Returns:
- The
Dimension
for the preferred size of this Main Form (can be null to not set a preferred size)
-
configureFrameSettings
default void configureFrameSettings()Configures frame settings for this Main Form. This method should be called by the constructor to at least set thedefaultCloseOperation()
, use theiconPath()
andframePreferredSize()
if they're not null, and add the inner component to the frame -
launch
default void launch()Launches this Main Form (default is setting visible to true)
-