mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-09 00:43:23 +01:00
hasLabel method for mindmap
This commit is contained in:
parent
7d9ccaec91
commit
684c412e95
@ -317,4 +317,13 @@ public class Mindmap {
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasLabel(@NotNull final String name) {
|
||||||
|
for (Label label : this.labels) {
|
||||||
|
if (label.getTitle().equals(name)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user