Interface EntityEditor.EditorEntity

All Superinterfaces:
Observable<Entity>, Observer<Entity>
Enclosing interface:
EntityEditor<R extends EntityEditor<R>>

public static interface EntityEditor.EditorEntity extends Observable<Entity>
Provides access to the entity instance being edited.

A new editor starts out holding a null valued entity, not a defaulted one — present() reports no value for every attribute, including those specifying a default value. Applying the defaults is left to whatever presents the editor, which calls defaults() once it is set up to edit a new record, as the Swing edit panel and the Android edit view both do on construction. The editor can not do so itself: a default value supplied via EntityEditor.EditorValue.defaultValue() is resolved when the defaults are applied, and the edit model must have had the chance to configure those first.

See Also: