Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityTableModel.EntityTableEditor
- All Known Implementing Classes:
AbstractEntityTableModel.AbstractEntityTableEditor,SwingEntityTableModel.SwingEntityTableEditor
- Enclosing interface:
EntityTableModel<E extends EntityEditModel>
public static interface EntityTableModel.EntityTableEditor
Controls table model editing
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecifies whether an attribute is editable for a given entity instance. -
Method Summary
-
Method Details
-
enabled
State enabled()- Returns:
- the
Statecontrolling whether editing is enabled
-
editable
Value<EntityTableModel.EntityTableEditor.Editable> editable()- Returns:
- the
Valuemanaging theEntityTableModel.EntityTableEditor.Editableinstance, which specifies whether an attribute is editable for a given entity instance
-
editable
- Parameters:
entity- the entityattribute- the attribute- Returns:
- true if the given attribute is editable for the given entity
- See Also:
-
set
Updates the value of the given attribute in the given entity.- Type Parameters:
T- the attribute type- Parameters:
value- the value to setentity- the entityattribute- the attribute- Throws:
IllegalStateException- in case the attribute is not editable- See Also:
-