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 voidAdds the givenFormtab to this Tabbed Form, using the default tab label type fromdefaultTabLabelType()with the given titledefault voidaddTab(String title, Form tab, TabLabelType tabLabelType) Adds the givenFormtab to this Tabbed Form, using the givenTabLabelTypewith the given titledefault voidAdds the givenFormtab to this Tabbed Form, using the given tab label component and the given titledefault voidConfigures settings for this Tabbed Form.default TabLabelTypedefault Collection<Form>default intdefault voidThis method can be called by subclasses to update the values present in the form from the Component valuesvoidUsed by subclasses to setup the tabs used in the Tabbed Form, mainly by calling the addTab methodsdefault TabLayoutPolicydefault TabPlacementMethods inherited from interface com.github.tadukoo.util.pojo.MappedPojo
clear, getItem, getKeys, getListItem, getListItemNoThrow, getListItemNoThrow, getMap, getPojoItem, getPojoItemNoThrow, getPojoItemNoThrow, hasItem, hasKey, isEmpty, removeItem, setItemMethods inherited from interface com.github.tadukoo.util.pojo.OrderedMappedPojo
getKeyOrder
-
Method Details
-
getTabMap
- Returns:
- The Map of
Formtabs in this Tabbed Form
-
asComponent
JTabbedPane asComponent()- Specified by:
asComponentin 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:
saveValuesin interfaceForm
-
tabPlacement
- Returns:
- The
TabPlacementto use for this Tabbed Form
-
tabLayoutPolicy
- Returns:
- The
TabLayoutPolicyto 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
TabLabelTypeto use for added tabs that don't specify a label type or custom label
-
addTab
Adds the givenFormtab 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- TheFormtab to be added
-
addTab
Adds the givenFormtab to this Tabbed Form, using the givenTabLabelTypewith the given title- Parameters:
title- The title for the tab, also used as the keytab- TheFormtab to be addedtabLabelType- TheTabLabelTypeto be used to create the tab's label
-
addTab
Adds the givenFormtab 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- TheFormtab 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
Formtabs contained in this Tabbed Form
-
getNumTabs
default int getNumTabs()- Returns:
- The number of
Formtabs contained in this Tabbed Form
-