projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store UI context data in CMS View.
[lgpl/argeo-commons.git]
/
org.argeo.cms.ui
/
src
/
org
/
argeo
/
cms
/
ui
/
CmsView.java
diff --git
a/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java
b/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java
index e18d4b4330d3098a6c8178fa71f1cda29382497b..44e2837ec177e5a0cead77028865df32e5b946c4 100644
(file)
--- a/
org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java
+++ b/
org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java
@@
-37,7
+37,7
@@
public interface CmsView {
boolean isAnonymous();
/**
boolean isAnonymous();
/**
- * Send an event to this topic. Does no
o
thing by default., but if implemented it
+ * Send an event to this topic. Does nothing by default., but if implemented it
* MUST set the {@link #CMS_VIEW_UID_PROPERTY} in the properties.
*/
default void sendEvent(String topic, Map<String, Object> properties) {
* MUST set the {@link #CMS_VIEW_UID_PROPERTY} in the properties.
*/
default void sendEvent(String topic, Map<String, Object> properties) {
@@
-81,6
+81,14
@@
public interface CmsView {
throw new UnsupportedOperationException();
}
throw new UnsupportedOperationException();
}
+ default Object getData(String key) {
+ throw new UnsupportedOperationException();
+ }
+
+ default void setData(String key, Object value) {
+ throw new UnsupportedOperationException();
+ }
+
static CmsView getCmsView(Control parent) {
// find parent shell
Shell topShell = parent.getShell();
static CmsView getCmsView(Control parent) {
// find parent shell
Shell topShell = parent.getShell();