Package systems.dmx.core
Interface ViewConfig
-
public interface ViewConfigA container for config topics.Config topics can be accessed by their type URI. A view config can contain only one config topic with a certain type URI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TopicaddConfigTopic(TopicModel configTopic)Adds a config topic to this view config.TopicgetConfigTopic(String configTypeUri)Iterable<Topic>getConfigTopics()ViewConfigModelgetModel()ViewConfigsetConfigValue(String configTypeUri, String childTypeUri, Object value)Sets a single value of a certain config topic.ViewConfigsetConfigValueRef(String configTypeUri, String childTypeUri, Object topicIdOrUri)
-
-
-
Method Detail
-
getConfigTopic
Topic getConfigTopic(String configTypeUri)
- Returns:
- the config topic for the given type URI, or
nullif there is none.
-
addConfigTopic
Topic addConfigTopic(TopicModel configTopic)
Adds a config topic to this view config.- Returns:
- the (instantiated) config topic.
- Throws:
RuntimeException- if this view config already contains a config topic with the same type URI.
-
setConfigValue
ViewConfig setConfigValue(String configTypeUri, String childTypeUri, Object value)
Sets a single value of a certain config topic. If no such config topic exists in this view config it is created.- Parameters:
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)
-
setConfigValueRef
ViewConfig setConfigValueRef(String configTypeUri, String childTypeUri, Object topicIdOrUri)
-
getModel
ViewConfigModel getModel()
-
-