Package is.codion.swing.framework.model
Class SwingEntityEditor
java.lang.Object
is.codion.framework.model.DefaultEntityEditor<SwingEntityModel,SwingEntityEditModel,SwingEntityTableModel,SwingEntityEditor>
is.codion.swing.framework.model.SwingEntityEditor
- All Implemented Interfaces:
EntityEditor<SwingEntityModel,SwingEntityEditModel, SwingEntityTableModel, SwingEntityEditor>
public final class SwingEntityEditor
extends DefaultEntityEditor<SwingEntityModel,SwingEntityEditModel,SwingEntityTableModel,SwingEntityEditor>
A Swing extension of
DefaultEntityEditor-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classManages the combo box models used by aSwingEntityEditor.static interfaceASwingEntityEditor.SwingComponentModelsextension providing foreign key basedEntityComboBoxModeland column basedFilterComboBoxModel.Nested classes/interfaces inherited from interface is.codion.framework.model.EntityEditor
EntityEditor.ComponentModels<M extends EntityModel<M,E, T, R>, E extends EntityEditModel<M, E, T, R>, T extends EntityTableModel<M, E, T, R>, R extends EntityEditor<M, E, T, R>>, EntityEditor.DeleteTaskBuilder, EntityEditor.EditorEntity, EntityEditor.EditorPersistence, EntityEditor.EditorValue<T>, EntityEditor.Exists, EntityEditor.InsertTaskBuilder, EntityEditor.Modified, EntityEditor.PersistTask, EntityEditor.PersistTasks, EntityEditor.SearchModels, EntityEditor.UpdateTaskBuilder -
Field Summary
Fields inherited from interface is.codion.framework.model.EntityEditor
PERSIST_FOREIGN_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionSwingEntityEditor(EntityType entityType, EntityConnectionProvider connectionProvider) Instantiates a newSwingEntityEditorSwingEntityEditor(EntityType entityType, EntityConnectionProvider connectionProvider, SwingEntityEditor.SwingComponentModels componentModels) Instantiates a newSwingEntityEditor -
Method Summary
Methods inherited from class is.codion.framework.model.DefaultEntityEditor
clear, connectionProvider, defaults, entities, entity, entityDefinition, exists, modified, nullable, persistence, primaryKeyPresent, revert, searchModels, tasks, toString, valid, validate, validate, validate, validate, validator, value, valueChanged
-
Constructor Details
-
SwingEntityEditor
Instantiates a newSwingEntityEditor- Parameters:
entityType- the entity typeconnectionProvider- the connection provider
-
SwingEntityEditor
public SwingEntityEditor(EntityType entityType, EntityConnectionProvider connectionProvider, SwingEntityEditor.SwingComponentModels componentModels) Instantiates a newSwingEntityEditor- Parameters:
entityType- the entity typeconnectionProvider- the connection providercomponentModels- the component models
-
-
Method Details
-
comboBoxModels
- Returns:
- the
SwingEntityEditor.ComboBoxModelsinstance
-
componentModels
- Overrides:
componentModelsin classDefaultEntityEditor<SwingEntityModel,SwingEntityEditModel, SwingEntityTableModel, SwingEntityEditor> - Returns:
- the
EntityEditor.ComponentModelsinstance
-