【仅供内部供应商使用,不提供对外解答和培训】
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
package com.fr.fs.fun; import com.fr.fs.FSPlate; import com.fr.stable.fun.Level; /** * @author richie * @date 2015-04-14 * @since 8.0 */ public interface PlateProvider extends Level { String XML_TAG = "PlateProvider"; int CURRENT_LEVEL = 1; /** * 移动模块所对应的类 * @return 类 */ Class<? extends FSPlate> classForPlate(); /** * 模块标记字符串,该标记将会出现在FS.config.supportModules中(用于JS中调用) * @return 标记 */ String mark(); } |
...
在Modern主题下,需要有一个图片在包com/fr/fs/resources/images/frame/fsmodule{id}.png,其中{id}为PlatformManageModule的id。
Web端为了点击模块选项的时候打开对应的设置界面,需要FS.Design.op对象
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
$.extend(FS.Design.op, {
{id}: function (designContainer) {
FS.Plugin.DemoModule.init(designContainer);
}
}); |
其中{id}为PlatformManageModule的id。
Code Block |
---|
<extra-platform> <PlateProvider class="com.fr.plugin.xxx.youclassname"/> </extra-platform> |
源码:http://wwwcloud.finedevelop.com:2015/projects/fs/repos/plugins/browse/plugin-message
View file | ||||
---|---|---|---|---|
|