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
EntityApplicationPanel 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.protected final <T extends EntityApplicationPanel<?>>
Tlayout()
Sets the layout to aBorderLayout
and lays out the given application panel, by adding all root entity panels to a tabbed pane.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
Sets the layout to aBorderLayout
and lays out the given application panel, by adding all root entity panels to a tabbed pane. Note that this method is responsible for initializing any visible entity panels usingEntityPanel.initialize()
.- Specified by:
layout
in interfaceEntityApplicationPanel.ApplicationLayout
- Returns:
- the main application panel
-
activated
Description copied from interface:EntityApplicationPanel.ApplicationLayout
Called when the given entity panel is activated.- Specified by:
activated
in interfaceEntityApplicationPanel.ApplicationLayout
- Parameters:
entityPanel
- the entity panel to select- See Also:
-
tabbedPane
- Returns:
- the application tabbed pane
-
applicationPanel
- Type Parameters:
T
- the application panel type- Returns:
- the application panel
-