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
,EntityPanel.Selector
public class TabbedApplicationLayout
extends Object
implements EntityApplicationPanel.ApplicationLayout
EntityApplicationPanel 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 JTabbedPane
void
layout
(EntityApplicationPanel<?> applicationPanel) Sets the layout to aBorderLayout
and lays out the given application panel, by adding all root entity panels to a tabbed pane.final void
select
(EntityPanel entityPanel) Select the given entity panel by making it visible
-
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
public TabbedApplicationLayout()
-
-
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
- Parameters:
applicationPanel
- the application panel to lay out
-
select
Description copied from interface:EntityApplicationPanel.ApplicationLayout
Select the given entity panel by making it visible- Specified by:
select
in interfaceEntityApplicationPanel.ApplicationLayout
- Specified by:
select
in interfaceEntityPanel.Selector
- Parameters:
entityPanel
- the entity panel to select
-
applicationTabPane
- Returns:
- the application tab pane
-