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
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidactivated(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.ApplicationLayoutLays 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:
layoutin interfaceEntityApplicationPanel.ApplicationLayout- Returns:
- a
JPanelusing aBorderLayoutcontaining aJTabbedPanewith a tab for each root entity panel. - See Also:
-
activated
Description copied from interface:EntityApplicationPanel.ApplicationLayoutCalled when the given entity panel is activated, responsible for making sure it becomes visible.- Specified by:
activatedin interfaceEntityApplicationPanel.ApplicationLayout- Parameters:
entityPanel- the entity panel being activated- See Also:
-
tabbedPane
- Returns:
- the application tabbed pane
- Throws:
IllegalStateException- in case the application panel has not been laid out
-