Class FeaturesModel
java.lang.Object
org.bidib.wizard.mvc.features.model.FeaturesModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeatureListener(FeatureListener listener) List<org.bidib.jbidibc.messages.Feature> 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.
-
Constructor Details
-
FeaturesModel
public FeaturesModel(org.bidib.wizard.api.model.NodeInterface node)
-
-
Method Details
-
getNode
public org.bidib.wizard.api.model.NodeInterface getNode() -
addFeatureListener
-
removeFeatureListener
-
getFeatures
-
setFeatures
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
-