Package dk.gtz.graphedit.viewmodel
Class SyntaxFactoryCollection
java.lang.Object
dk.gtz.graphedit.viewmodel.SyntaxFactoryCollection
- All Implemented Interfaces:
Map<String,,ISyntaxFactory> javafx.beans.Observable,javafx.collections.ObservableMap<String,ISyntaxFactory>
public final class SyntaxFactoryCollection
extends Object
implements javafx.collections.ObservableMap<String,ISyntaxFactory>
Collection type of syntax factories.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ISyntaxFactory factory) Add a new syntax factory to the collectionvoidadd(ISyntaxFactory... factories) Add a list of syntax factories to the collectionvoidadd(Collection<ISyntaxFactory> factories) Add a collection of syntax factories to the collectionvoidaddChangeListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) Add a change listener to the collection.voidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()put(String key, ISyntaxFactory value) voidputAll(Map<? extends String, ? extends ISyntaxFactory> m) voidremoveChangeListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) Remove a change listener from the collection.voidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) intsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SyntaxFactoryCollection
public SyntaxFactoryCollection()Construct a new instance with oneDemoSyntaxFactoryelement
-
-
Method Details
-
add
Add a new syntax factory to the collection- Parameters:
factory- The factory instance to add
-
add
Add a collection of syntax factories to the collection- Parameters:
factories- A collection of factires to add
-
add
Add a list of syntax factories to the collection- Parameters:
factories- Varargs list of factories to add
-
size
public int size()- Specified by:
sizein interfaceMap<String,ISyntaxFactory>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<String,ISyntaxFactory>
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,ISyntaxFactory>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,ISyntaxFactory>
-
get
- Specified by:
getin interfaceMap<String,ISyntaxFactory>
-
put
- Specified by:
putin interfaceMap<String,ISyntaxFactory>
-
remove
- Specified by:
removein interfaceMap<String,ISyntaxFactory>
-
putAll
- Specified by:
putAllin interfaceMap<String,ISyntaxFactory>
-
clear
public void clear()- Specified by:
clearin interfaceMap<String,ISyntaxFactory>
-
keySet
- Specified by:
keySetin interfaceMap<String,ISyntaxFactory>
-
values
- Specified by:
valuesin interfaceMap<String,ISyntaxFactory>
-
entrySet
- Specified by:
entrySetin interfaceMap<String,ISyntaxFactory>
-
addListener
public void addListener(javafx.beans.InvalidationListener listener) - Specified by:
addListenerin interfacejavafx.beans.Observable
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener) - Specified by:
removeListenerin interfacejavafx.beans.Observable
-
addListener
public void addListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) - Specified by:
addListenerin interfacejavafx.collections.ObservableMap<String,ISyntaxFactory>
-
removeListener
public void removeListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) - Specified by:
removeListenerin interfacejavafx.collections.ObservableMap<String,ISyntaxFactory>
-
addChangeListener
public void addChangeListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) Add a change listener to the collection. This will be invoked when the collection changes.- Parameters:
listener- The listener to add
-
removeChangeListener
public void removeChangeListener(javafx.collections.MapChangeListener<? super String, ? super ISyntaxFactory> listener) Remove a change listener from the collection.- Parameters:
listener- The listener to remove
-