Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityPanel.Builder
- Enclosing class:
EntityPanel
public static interface EntityPanel.Builder
A builder for
EntityPanel instances.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides aEntityPanel.Builder.PanelBuilderstatic interfaceProvides aEntityPanel.Builder -
Method Summary
Modifier and TypeMethodDescriptionbuild(EntityConnectionProvider connectionProvider) Builds anEntityPanelbased on this builder configuration.caption()description(@Nullable String description) icon()icon(@Nullable ControlIcon icon)
-
Method Details
-
entityType
EntityType entityType()- Returns:
- the entityType
-
caption
- Parameters:
caption- the panel caption- Returns:
- this builder instance
-
caption
- Returns:
- the caption, an empty Optional if none has been set
-
description
- Parameters:
description- the panel description- Returns:
- this builder instance
-
description
- Returns:
- the description, an empty Optional if none has been set
-
icon
- Parameters:
icon- the panel icon- Returns:
- this builder instance
-
icon
Optional<ControlIcon> icon()- Returns:
- the icon, an empty Optional if none has been set
-
build
Builds anEntityPanelbased on this builder configuration.- Parameters:
connectionProvider- the connection provider- Returns:
- an
EntityPanelbased on this builder
-