Class FeaturesModel
- java.lang.Object
-
- org.bidib.wizard.mvc.features.model.FeaturesModel
-
public class FeaturesModel extends Object
-
-
Constructor Summary
Constructors Constructor Description FeaturesModel(org.bidib.wizard.api.model.NodeInterface node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeatureListener(FeatureListener listener)List<org.bidib.jbidibc.messages.Feature>getFeatures()org.bidib.wizard.api.model.NodeInterfacegetNode()Collection<org.bidib.jbidibc.messages.Feature>prepareUpdateFeatures(Collection<org.bidib.jbidibc.messages.Feature> features)Prepare a collection of the changed features that can be written to the node.voidremoveFeatureListener(FeatureListener listener)voidsetFeatures(Collection<org.bidib.jbidibc.messages.Feature> features)Set the new feature values and notify the listener if a value has changed.
-
-
-
Method Detail
-
getNode
public org.bidib.wizard.api.model.NodeInterface getNode()
-
addFeatureListener
public void addFeatureListener(FeatureListener listener)
-
removeFeatureListener
public void removeFeatureListener(FeatureListener listener)
-
getFeatures
public List<org.bidib.jbidibc.messages.Feature> getFeatures()
-
setFeatures
public void setFeatures(Collection<org.bidib.jbidibc.messages.Feature> features)
Set the new feature values and notify the listener if a value has changed.- Parameters:
features- the feature values
-
prepareUpdateFeatures
public Collection<org.bidib.jbidibc.messages.Feature> prepareUpdateFeatures(Collection<org.bidib.jbidibc.messages.Feature> features)
Prepare a collection of the changed features that can be written to the node.- Parameters:
features- all features- Returns:
- the changed features that must be written to the node
-
-