Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class TabbedApplicationLayout
java.lang.Object
is.codion.swing.framework.ui.TabbedApplicationLayout
- All Implemented Interfaces:
EntityApplicationPanel.ApplicationLayout
public class TabbedApplicationLayout
extends Object
implements EntityApplicationPanel.ApplicationLayout
A
EntityApplicationPanel.ApplicationLayout
layout based on a JTabbedPane
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<Integer>
Specifies the tab placement Value type: Integer (SwingConstants.TOP, SwingConstants.BOTTOM, SwingConstants.LEFT, SwingConstants.RIGHT) Default value:SwingConstants.TOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
activated
(EntityPanel entityPanel) Called when the given entity panel is activated, responsible for making sure it becomes visible.layout()
Lays out the main component for a given application panel.final JTabbedPane
-
Field Details
-
TAB_PLACEMENT
Specifies the tab placement- Value type: Integer (SwingConstants.TOP, SwingConstants.BOTTOM, SwingConstants.LEFT, SwingConstants.RIGHT)
- Default value:
SwingConstants.TOP
-
-
Constructor Details
-
TabbedApplicationLayout
- Parameters:
applicationPanel
- the application panel to layout
-
-
Method Details
-
layout
Description copied from interface:EntityApplicationPanel.ApplicationLayout
Lays out the main component for a given application panel. Note that this method is responsible for initializing any visible entity panels usingEntityPanel.initialize()
.- Specified by:
layout
in interfaceEntityApplicationPanel.ApplicationLayout
- Returns:
- a
JPanel
using aBorderLayout
containing aJTabbedPane
with a tab for each root entity panel. - See Also:
-
activated
Description copied from interface:EntityApplicationPanel.ApplicationLayout
Called when the given entity panel is activated, responsible for making sure it becomes visible.- Specified by:
activated
in interfaceEntityApplicationPanel.ApplicationLayout
- Parameters:
entityPanel
- the entity panel being activated- See Also:
-
tabbedPane
- Returns:
- the application tabbed pane
-