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() |
void |
setConfigValue(String configTypeUri,
String childTypeUri,
Object value)
Sets a single value of a certain config topic.
|
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.void setConfigValue(String configTypeUri, String childTypeUri, Object value)
configTypeUri
- The type URI of the config topic, e.g. "dm4.webclient.view_config"childTypeUri
- The child type URI of the config value to set, e.g. "dm4.webclient.icon"value
- The config value (String, Integer, Long, Double, or Boolean)ViewConfigurationModel getModel()
Copyright © 2017. All Rights Reserved.