Mata.Li
6 years ago
2 changed files with 43 additions and 0 deletions
@ -0,0 +1,26 @@
|
||||
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); |
||||
} |
@ -0,0 +1,17 @@
|
||||
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…
Reference in new issue