Browse Source

REPORT-12635

research/10.0
Mata.Li 6 years ago
parent
commit
0a9e59de66
  1. 26
      designer-base/src/main/java/com/fr/design/fun/MessageObjectProvider.java
  2. 17
      designer-base/src/main/java/com/fr/design/fun/impl/AbstractMessageObjectProvider.java

26
designer-base/src/main/java/com/fr/design/fun/MessageObjectProvider.java

@ -1,26 +0,0 @@
package com.fr.design.fun;
import com.fr.json.JSONObject;
import com.fr.stable.fun.mark.Mutable;
import java.util.Map;
public interface MessageObjectProvider extends Mutable {
String MARK_STRING = "MessageObjectProvider";
int CURRENT_LEVEL = 1;
//消息类型
int getMessageType();
/**
* 需要嵌入的组件内容
* @return
*/
Map<String,String> getValueEditorItems();
/**
* 实现发消息
* @param messageJo
*/
void sendMessage(JSONObject messageJo);
}

17
designer-base/src/main/java/com/fr/design/fun/impl/AbstractMessageObjectProvider.java

@ -1,17 +0,0 @@
package com.fr.design.fun.impl;
import com.fr.design.fun.MessageObjectProvider;
import com.fr.stable.fun.impl.AbstractProvider;
import com.fr.stable.fun.mark.API;
@API(level = MessageObjectProvider.CURRENT_LEVEL)
public abstract class AbstractMessageObjectProvider extends AbstractProvider implements MessageObjectProvider {
public int currentAPILevel() {
return CURRENT_LEVEL;
}
public String mark4Provider() {
return getClass().getName();
}
}
Loading…
Cancel
Save