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 -
Constructor Summary
ConstructorsConstructorDescriptionSwingEntityModel
(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
addDetailModel, addDetailModel, addDetailModel, addDetailModels, connection, connectionProvider, containsDetailModel, containsDetailModel, containsDetailModel, containsTableModel, detailModel, detailModel, detailModelLink, detailModels, editModel, entities, entityDefinition, entityType, linkedDetailModels, 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
-