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 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 JTabbedPanevoidlayout(EntityApplicationPanel<?> applicationPanel) Sets the layout to aBorderLayoutand lays out the given application panel, by adding all root entity panels to a tabbed pane.final voidselect(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 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- Parameters:
applicationPanel- the application panel to lay out
-
select
Description copied from interface:EntityApplicationPanel.ApplicationLayoutSelect the given entity panel by making it visible- Specified by:
selectin interfaceEntityApplicationPanel.ApplicationLayout- Specified by:
selectin interfaceEntityPanel.Selector- Parameters:
entityPanel- the entity panel to select
-
applicationTabPane
- Returns:
- the application tab pane
-