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 Modifier and Type Method Description OsmDataLayer
getLayer()
Replies theOsmDataLayer
in whose context this relation editor is openRelation
getRelation()
Replies the currently edited relationRelation
getRelationSnapshot()
Replies the state of the edited relation when the editor has been launched.boolean
isDirtyRelation()
Replies true if the currently edited relation has been changed elsewhere.void
reloadDataFromRelation()
Reloads data from relation.void
setRelation(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
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.
-
reloadDataFromRelation
void reloadDataFromRelation()
Reloads data from relation.
-
getLayer
OsmDataLayer getLayer()
Replies theOsmDataLayer
in whose context this relation editor is open- Returns:
- the
OsmDataLayer
in whose context this relation editor is open
-
-