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
FieldsModifier and TypeFieldDescriptionstatic final is.codion.common.property.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.protected final <T extends EntityApplicationPanel<?>>
Tlayout()Sets the layout to aBorderLayoutand 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 aBorderLayoutand 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:
layoutin interfaceEntityApplicationPanel.ApplicationLayout- Returns:
- the main application panel
-
activated
Description copied from interface:EntityApplicationPanel.ApplicationLayoutCalled when the given entity panel is activated.- Specified by:
activatedin 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
-