Package is.codion.swing.framework.model
Class SwingEntityEditModel
java.lang.Object
is.codion.framework.model.DefaultEntityEditModel
is.codion.swing.framework.model.SwingEntityEditModel
- All Implemented Interfaces:
EntityEditModel
A Swing implementation of
EntityEditModel.-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.framework.model.EntityEditModel
EntityEditModel.EditEvents, EntityEditModel.EditTask, EntityEditModel.Settings -
Field Summary
Fields inherited from interface is.codion.framework.model.EntityEditModel
EDIT_EVENTS -
Constructor Summary
ConstructorsConstructorDescriptionSwingEntityEditModel(EntityType entityType, EntityConnectionProvider connectionProvider) Instantiates a newSwingEntityEditModelbased on the given entity type.SwingEntityEditModel(EntityType entityType, EntityConnectionProvider connectionProvider, SwingEntityEditor.SwingComponentModels componentModels) Instantiates a newSwingEntityEditModelbased on the given entity type. -
Method Summary
Modifier and TypeMethodDescriptionfinal SwingEntityEditoreditor()Returns aEntityEditorwrapping the entity being edited.Methods inherited from class is.codion.framework.model.DefaultEntityEditModel
afterDelete, afterInsert, afterInsertUpdateOrDelete, afterUpdate, applyEdit, beforeDelete, beforeInsert, beforeUpdate, connection, connectionProvider, delete, delete, delete, deleted, deleteTask, deleteTask, entities, entityDefinition, entityType, insert, insert, insert, inserted, insertTask, insertTask, notifyAfterDelete, notifyAfterInsert, notifyAfterUpdate, notifyBeforeDelete, notifyBeforeInsert, notifyBeforeUpdate, settings, toString, update, update, update, updated, updateTask, updateTask
-
Constructor Details
-
SwingEntityEditModel
Instantiates a newSwingEntityEditModelbased on the given entity type.- Parameters:
entityType- the type of the entity to base thisSwingEntityEditModelonconnectionProvider- theEntityConnectionProviderinstance
-
SwingEntityEditModel
public SwingEntityEditModel(EntityType entityType, EntityConnectionProvider connectionProvider, SwingEntityEditor.SwingComponentModels componentModels) Instantiates a newSwingEntityEditModelbased on the given entity type.- Parameters:
entityType- the type of the entity to base thisSwingEntityEditModelonconnectionProvider- theEntityConnectionProviderinstancecomponentModels- the component models
-
-
Method Details
-
editor
Description copied from interface:EntityEditModelReturns aEntityEditorwrapping the entity being edited.EntityEditor.get()returns an immutable copy of theEntityinstance being edited, whileEntityEditor.set(Entity)copies the values from the givenEntityinto the underlyingEntity. Note that value changes must go through theEntityEditor.EditorValueaccessible viaEntityEditor.value(Attribute).- Specified by:
editorin interfaceEntityEditModel- Overrides:
editorin classDefaultEntityEditModel- Returns:
- the
EntityEditorwrapping theEntityinstance being edited - See Also:
-