Interface TabbedForm
- All Superinterfaces:
Form
,com.github.tadukoo.util.pojo.MappedPojo
,com.github.tadukoo.util.pojo.OrderedMappedPojo
- All Known Subinterfaces:
TabbedMainForm
- All Known Implementing Classes:
AbstractTabbedForm
,AbstractTabbedMainForm
Tabbed Form represents a
Form
composed of multiple tabs (each tab being its own Form
) for the
user to be able to interact with.- Version:
- Alpha v.0.3.3
- Author:
- Logan Ferree (Tadukoo)
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Adds the givenForm
tab to this Tabbed Form, using the default tab label type fromdefaultTabLabelType()
with the given titledefault void
addTab
(String title, Form tab, TabLabelType tabLabelType) Adds the givenForm
tab to this Tabbed Form, using the givenTabLabelType
with the given titledefault void
Adds the givenForm
tab to this Tabbed Form, using the given tab label component and the given titledefault void
Configures settings for this Tabbed Form.default TabLabelType
default Collection<Form>
default int
default void
This method can be called by subclasses to update the values present in the form from the Component valuesvoid
Used by subclasses to setup the tabs used in the Tabbed Form, mainly by calling the addTab methodsdefault TabLayoutPolicy
default TabPlacement
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
Methods inherited from interface com.github.tadukoo.util.pojo.OrderedMappedPojo
getKeyOrder
-
Method Details
-
getTabMap
- Returns:
- The Map of
Form
tabs in this Tabbed Form
-
asComponent
JTabbedPane asComponent()- Specified by:
asComponent
in interfaceForm
- Returns:
- This Form as a
Component
-
saveValues
default void saveValues()This method can be called by subclasses to update the values present in the form from the Component values- Specified by:
saveValues
in interfaceForm
-
tabPlacement
- Returns:
- The
TabPlacement
to use for this Tabbed Form
-
tabLayoutPolicy
- Returns:
- The
TabLayoutPolicy
to use for this Tabbed Form
-
configureSettings
default void configureSettings()Configures settings for this Tabbed Form. This method should be called by the constructor in order to set at least thetabPlacement()
andtabLayoutPolicy()
-
defaultTabLabelType
- Returns:
- The default
TabLabelType
to use for added tabs that don't specify a label type or custom label
-
addTab
Adds the givenForm
tab to this Tabbed Form, using the default tab label type fromdefaultTabLabelType()
with the given title- Parameters:
title
- The title for the tab, also used as the keytab
- TheForm
tab to be added
-
addTab
Adds the givenForm
tab to this Tabbed Form, using the givenTabLabelType
with the given title- Parameters:
title
- The title for the tab, also used as the keytab
- TheForm
tab to be addedtabLabelType
- TheTabLabelType
to be used to create the tab's label
-
addTab
Adds the givenForm
tab to this Tabbed Form, using the given tab label component and the given title- Parameters:
title
- The title for the tab, also used as the keytab
- TheForm
tab to be addedcustomTabLabel
- The component to use for the tab's label
-
setDefaultTabs
Used by subclasses to setup the tabs used in the Tabbed Form, mainly by calling the addTab methods- Throws:
Throwable
- If anything goes wrong
-
getAllTabs
- Returns:
- All the
Form
tabs contained in this Tabbed Form
-
getNumTabs
default int getNumTabs()- Returns:
- The number of
Form
tabs contained in this Tabbed Form
-