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:
is.codion.framework.model.EntityModel<SwingEntityModel,SwingEntityEditModel, SwingEntityTableModel>
public class SwingEntityModel
extends is.codion.framework.model.DefaultEntityModel<SwingEntityModel,SwingEntityEditModel,SwingEntityTableModel>
A Swing implementation of
EntityModel-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface is.codion.framework.model.EntityModel
USE_CLIENT_PREFERENCES -
Constructor Summary
ConstructorsConstructorDescriptionSwingEntityModel(is.codion.framework.domain.entity.EntityType entityType, is.codion.framework.db.EntityConnectionProvider connectionProvider) Instantiates a new SwingEntityModel with default SwingEntityEditModel and SwingEntityTableModel implementations.SwingEntityModel(SwingEntityEditModel editModel) Instantiates a new SwingEntityModel, with a defaultSwingEntityTableModelSwingEntityModel(SwingEntityTableModel tableModel) Instantiates a new SwingEntityModel -
Method Summary
Modifier and TypeMethodDescriptionstatic SwingEntityModel.Builderbuilder(is.codion.framework.domain.entity.EntityType entityType) Instantiates a newSwingEntityModel.BuilderinstanceMethods inherited from class is.codion.framework.model.DefaultEntityModel
activeDetailModels, addActiveDetailModelsListener, addDetailModel, addDetailModel, addDetailModel, addDetailModels, connectionProvider, containsDetailModel, containsDetailModel, containsDetailModel, containsTableModel, detailModel, detailModel, detailModelLink, detailModels, editModel, entities, entityDefinition, entityType, removeActiveDetailModelsListener, savePreferences, tableModel, toString
-
Constructor Details
-
SwingEntityModel
public SwingEntityModel(is.codion.framework.domain.entity.EntityType entityType, is.codion.framework.db.EntityConnectionProvider connectionProvider) 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
public static SwingEntityModel.Builder builder(is.codion.framework.domain.entity.EntityType entityType) Instantiates a newSwingEntityModel.Builderinstance- Parameters:
entityType- the entity type- Returns:
- a new builder instance
-