Package is.codion.swing.framework.model
Class SwingEntityModel
java.lang.Object
is.codion.framework.model.DefaultEntityModel<SwingEntityModel,SwingEntityEditModel,SwingEntityTableModel>
is.codion.swing.framework.model.SwingEntityModel
- All Implemented Interfaces:
EntityModel<SwingEntityModel,
SwingEntityEditModel, SwingEntityTableModel>
public class SwingEntityModel
extends DefaultEntityModel<SwingEntityModel,SwingEntityEditModel,SwingEntityTableModel>
A Swing implementation of
EntityModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.framework.model.EntityModel
EntityModel.DetailModels<M extends EntityModel<M,
E, T>, E extends EntityEditModel, T extends EntityTableModel<E>> -
Constructor Summary
ConstructorDescriptionSwingEntityModel
(EntityType entityType, EntityConnectionProvider connectionProvider) Instantiates a new SwingEntityModel with default SwingEntityEditModel and SwingEntityTableModel implementations.SwingEntityModel
(SwingEntityEditModel editModel) Instantiates a new SwingEntityModel, with a defaultSwingEntityTableModel
SwingEntityModel
(SwingEntityTableModel tableModel) Instantiates a new SwingEntityModel -
Method Summary
Modifier and TypeMethodDescriptionstatic SwingEntityModel.Builder
builder
(EntityType entityType) Instantiates a newSwingEntityModel.Builder
instanceMethods inherited from class is.codion.framework.model.DefaultEntityModel
connection, connectionProvider, containsTableModel, detailModels, editModel, entities, entityDefinition, entityType, tableModel, toString
-
Constructor Details
-
SwingEntityModel
Instantiates a new SwingEntityModel with default SwingEntityEditModel and SwingEntityTableModel implementations.- Parameters:
entityType
- the type of the entity to base this SwingEntityModel onconnectionProvider
- a EntityConnectionProvider
-
SwingEntityModel
Instantiates a new SwingEntityModel, with a defaultSwingEntityTableModel
- Parameters:
editModel
- the edit model
-
SwingEntityModel
Instantiates a new SwingEntityModel- Parameters:
tableModel
- the table model
-
-
Method Details
-
builder
Instantiates a newSwingEntityModel.Builder
instance- Parameters:
entityType
- the entity type- Returns:
- a new builder instance
-