Interface IRelationEditor
-
- All Known Implementing Classes:
GenericRelationEditor,RelationEditor
public interface IRelationEditor
Super interface of relation editors.- Since:
- 9659
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OsmDataLayergetLayer()Replies theOsmDataLayerin whose context this relation editor is openRelationgetRelation()Replies the currently edited relationRelationgetRelationSnapshot()Replies the state of the edited relation when the editor has been launched.booleanisDirtyEditor()Replies true if the relation has been changed in the editor (but not yet applied).default booleanisDirtyRelation()Replies true if the currently edited relation has been changed elsewhere.booleanisDirtyRelation(boolean ignoreUninterestingTags)Replies true if the currently edited relation has been changed elsewhere.voidreloadDataFromRelation()Reloads data from relation.voidsetIsSaving(boolean b)Set the isSaving flag to the given value.voidsetRelation(Relation relation)Sets the currently edited relation.
-
-
-
Method Detail
-
getRelation
Relation getRelation()
Replies the currently edited relation- Returns:
- the currently edited relation
-
setRelation
void setRelation(Relation relation)
Sets the currently edited relation. Creates a snapshot of the current state of the relation. SeegetRelationSnapshot()- Parameters:
relation- the relation
-
getRelationSnapshot
Relation getRelationSnapshot()
Replies the state of the edited relation when the editor has been launched.- Returns:
- the state of the edited relation when the editor has been launched
-
isDirtyRelation
default boolean isDirtyRelation()
Replies true if the currently edited relation has been changed elsewhere. In this case a relation editor can't apply updates to the relation directly. Rather, it has to create a conflict.- Returns:
- true if the currently edited relation has been changed elsewhere.
-
isDirtyRelation
boolean isDirtyRelation(boolean ignoreUninterestingTags)
Replies true if the currently edited relation has been changed elsewhere. In this case a relation editor can't apply updates to the relation directly. Rather, it has to create a conflict.- Parameters:
ignoreUninterestingTags- whether to ignore uninteresting tag changes- Returns:
- true if the currently edited relation has been changed elsewhere.
- Since:
- 19398
-
isDirtyEditor
boolean isDirtyEditor()
Replies true if the relation has been changed in the editor (but not yet applied). Reloading data from the relation would cause the pending changes to be lost.- Returns:
- true if the currently edited relation has been changed in the editor.
- Since:
- 19398
-
setIsSaving
void setIsSaving(boolean b)
Set the isSaving flag to the given value. See #24444- Parameters:
b- the flag value- Since:
- 19438
-
reloadDataFromRelation
void reloadDataFromRelation()
Reloads data from relation.
-
getLayer
OsmDataLayer getLayer()
Replies theOsmDataLayerin whose context this relation editor is open- Returns:
- the
OsmDataLayerin whose context this relation editor is open
-
-