package org.argeo.cms.ui;
+import java.util.HashMap;
import java.util.Map;
import javax.security.auth.login.LoginContext;
}
+ /**
+ * Convenience methods for when {@link #sendEvent(String, Map)} only requires
+ * one single parameter.
+ */
+ default void sendEvent(String topic, String param, Object value) {
+ Map<String, Object> properties = new HashMap<>();
+ properties.put(param, value);
+ sendEvent(topic, properties);
+ }
+
+ default void applyStyles(Object widget) {
+
+ }
+
static CmsView getCmsView(Composite parent) {
// find parent shell
Shell topShell = parent.getShell();