public interface ViewConfiguration
Config topics can be accessed by their type URI. A view config can contain only one config topic with a certain type URI.
Modifier and Type | Method and Description |
---|---|
Topic |
addConfigTopic(TopicModel configTopic)
Adds a config topic to this view config.
|
Topic |
getConfigTopic(String configTypeUri) |
Iterable<Topic> |
getConfigTopics() |
ViewConfigurationModel |
getModel() |
ViewConfiguration |
setConfigValue(String configTypeUri,
String childTypeUri,
Object value)
Sets a single value of a certain config topic.
|
ViewConfiguration |
setConfigValueRef(String configTypeUri,
String childTypeUri,
Object topicIdOrUri) |
Iterable<Topic> getConfigTopics()
Topic getConfigTopic(String configTypeUri)
null
if there is none.Topic addConfigTopic(TopicModel configTopic)
RuntimeException
- if this view config already contains a config topic with the same type URI.ViewConfiguration setConfigValue(String configTypeUri, String childTypeUri, Object value)
configTypeUri
- The type URI of the config topic, e.g. "dmx.webclient.view_config"childTypeUri
- The child type URI of the config value to set, e.g. "dmx.webclient.icon"value
- The config value (String, Integer, Long, Double, or Boolean)ViewConfiguration setConfigValueRef(String configTypeUri, String childTypeUri, Object topicIdOrUri)
ViewConfigurationModel getModel()
Copyright © 2018. All Rights Reserved.