forked from fanruan/demo-show-type
Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
operation | dda45a05d1 | 4 years ago |
dailer | 76c89a66d4 | 4 years ago |
richie | e070299bcd | 4 years ago |
richie | 2270a2e09e | 4 years ago |
4 changed files with 47 additions and 23 deletions
@ -1,38 +1,28 @@
|
||||
package com.fr.plugin.showtype; |
||||
|
||||
import com.fr.decision.fun.impl.AbstractShowTypeProvider; |
||||
import com.fr.decision.web.DirectoryComponent; |
||||
import com.fr.decision.authority.base.constant.type.show.ShowType; |
||||
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 17:42 |
||||
* @Date 2020/8/18 18:18 |
||||
* @Version 10.0 |
||||
*/ |
||||
@EnableMetrics |
||||
public class NewPreviewType extends AbstractShowTypeProvider { |
||||
public class NewPreviewType extends ShowType { |
||||
|
||||
@Override |
||||
public Atom attach() { |
||||
return DirectoryComponent.KEY; |
||||
} |
||||
public static final NewPreviewType KEY = new NewPreviewType(); |
||||
|
||||
@Override |
||||
public Atom client() { |
||||
return NewPreviewComponent.KEY; |
||||
@Focus(id = "com.fr.plugin.showtype.v10", text = "Fine-Plugin_New_Preview_Type", source = Original.PLUGIN) |
||||
protected int getTypeValue() { |
||||
return 8; |
||||
} |
||||
|
||||
@Override |
||||
public String typeName() { |
||||
public String getTypeName() { |
||||
return "newPreview"; |
||||
} |
||||
|
||||
@Override |
||||
@Focus(id = "com.fr.plugin.showtype.v10", text = "Fine-Plugin_New_Preview_Type", source = Original.PLUGIN) |
||||
public int typeValue() { |
||||
return 5; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,34 @@
|
||||
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