T
- type of entitypublic interface EditorScreen<T extends Entity> extends ChangeTracker
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WINDOW_CLOSE
Name of action that closes the screen.
|
static java.lang.String |
WINDOW_COMMIT
Name of action that commits changes.
|
static java.lang.String |
WINDOW_COMMIT_AND_CLOSE
Name of action that commits changes and closes the screen.
|
Modifier and Type | Method and Description |
---|---|
T |
getEditedEntity() |
boolean |
isLocked() |
void |
setEntityToEdit(T entity)
Sets entity instance to editor.
|
hasUnsavedChanges
static final java.lang.String WINDOW_COMMIT
WINDOW_COMMIT_AND_CLOSE
ID, this action also
closes the screen after commit.static final java.lang.String WINDOW_COMMIT_AND_CLOSE
static final java.lang.String WINDOW_CLOSE
void setEntityToEdit(T entity)
entity
- entityT getEditedEntity()
boolean isLocked()