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