forked from fanruan/demo-show-type
Roger.Chen
4 years ago
3 changed files with 21 additions and 45 deletions
@ -1,28 +1,38 @@
|
||||
package com.fr.plugin.showtype; |
||||
|
||||
import com.fr.decision.authority.base.constant.type.show.ShowType; |
||||
import com.fr.decision.fun.impl.AbstractShowTypeProvider; |
||||
import com.fr.decision.web.DirectoryComponent; |
||||
import com.fr.intelli.record.Focus; |
||||
import com.fr.intelli.record.Original; |
||||
import com.fr.record.analyzer.EnableMetrics; |
||||
import com.fr.web.struct.Atom; |
||||
|
||||
/** |
||||
* @Author Roger |
||||
* @Date 2020/8/18 18:18 |
||||
* @Date 2020/8/18 17:42 |
||||
* @Version 10.0 |
||||
*/ |
||||
@EnableMetrics |
||||
public class NewPreviewType extends ShowType { |
||||
public class NewPreviewType extends AbstractShowTypeProvider { |
||||
|
||||
public static final NewPreviewType KEY = new NewPreviewType(); |
||||
@Override |
||||
public Atom attach() { |
||||
return DirectoryComponent.KEY; |
||||
} |
||||
|
||||
@Override |
||||
@Focus(id = "com.fr.plugin.showtype.v10", text = "Fine-Plugin_New_Preview_Type", source = Original.PLUGIN) |
||||
protected int getTypeValue() { |
||||
return 5; |
||||
public Atom client() { |
||||
return NewPreviewComponent.KEY; |
||||
} |
||||
|
||||
@Override |
||||
public String getTypeName() { |
||||
public String typeName() { |
||||
return "newPreview"; |
||||
} |
||||
|
||||
@Override |
||||
@Focus(id = "com.fr.plugin.showtype.v10", text = "Fine-Plugin_New_Preview_Type", source = Original.PLUGIN) |
||||
public int typeValue() { |
||||
return 5; |
||||
} |
||||
} |
||||
|
@ -1,34 +0,0 @@
|
||||
package com.fr.plugin.showtype; |
||||
|
||||
import com.fr.decision.authority.base.constant.type.show.ShowType; |
||||
import com.fr.decision.fun.impl.AbstractShowTypeProvider; |
||||
import com.fr.decision.web.DirectoryComponent; |
||||
import com.fr.web.struct.Atom; |
||||
|
||||
/** |
||||
* @Author Roger |
||||
* @Date 2020/8/18 17:42 |
||||
* @Version 10.0 |
||||
*/ |
||||
public class NewPreviewTypeProvider extends AbstractShowTypeProvider { |
||||
|
||||
@Override |
||||
public String nameForShowType() { |
||||
return "newPreview"; |
||||
} |
||||
|
||||
@Override |
||||
public ShowType registerShowType() { |
||||
return NewPreviewType.KEY; |
||||
} |
||||
|
||||
@Override |
||||
public Atom attach() { |
||||
return DirectoryComponent.KEY; |
||||
} |
||||
|
||||
@Override |
||||
public Atom client() { |
||||
return NewPreviewComponent.KEY; |
||||
} |
||||
} |
Loading…
Reference in new issue