Module is.codion.framework.model
Package is.codion.framework.model
Class DefaultDetailModelLink<M extends DefaultEntityModel<M,E,T>,E extends AbstractEntityEditModel,T extends EntityTableModel<E>>
java.lang.Object
is.codion.framework.model.DefaultDetailModelLink<M,E,T>
- Type Parameters:
M
- theEntityModel
typeE
- theEntityEditModel
typeT
- theEntityTableModel
type
- All Implemented Interfaces:
DetailModelLink<M,
E, T>
- Direct Known Subclasses:
DefaultForeignKeyDetailModelLink
,SwingDetailModelLink
public class DefaultDetailModelLink<M extends DefaultEntityModel<M,E,T>,E extends AbstractEntityEditModel,T extends EntityTableModel<E>>
extends Object
implements DetailModelLink<M,E,T>
A default
DetailModelLink
implementation which does nothing.
Override one or more methods that define the detail model behaviour.-
Constructor Summary
ConstructorDescriptionDefaultDetailModelLink
(M detailModel) Instantiates aDefaultDetailModelLink
for the given detail model -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.codion.framework.model.DetailModelLink
onDelete, onInsert, onSelection, onUpdate
-
Constructor Details
-
DefaultDetailModelLink
Instantiates aDefaultDetailModelLink
for the given detail model- Parameters:
detailModel
- the detail model to link
-
-
Method Details
-
detailModel
- Specified by:
detailModel
in interfaceDetailModelLink<M extends DefaultEntityModel<M,
E, T>, E extends AbstractEntityEditModel, T extends EntityTableModel<E>> - Returns:
- the detail model
-
active
Description copied from interface:DetailModelLink
Controls the active status of this link. Active detail model links update and filter the detail model according to the entity/entities selected in the master model.- Specified by:
active
in interfaceDetailModelLink<M extends DefaultEntityModel<M,
E, T>, E extends AbstractEntityEditModel, T extends EntityTableModel<E>> - Returns:
- the
State
controlling the active status of this detail model link
-