You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.1 KiB
60 lines
2.1 KiB
3 years ago
|
/*
|
||
|
* Copyright (C), 2018-2020
|
||
|
* Project: starter
|
||
|
* FileName: DataSubmitItems
|
||
|
* Author: xx
|
||
|
* Date: 2020/9/1 8:47
|
||
|
*/
|
||
|
package com.fr.plugin.xx.submitjob.ui;
|
||
|
|
||
|
import com.fanruan.api.i18n.I18nKit;
|
||
|
import com.fr.design.designer.properties.items.Item;
|
||
|
import com.fr.design.designer.properties.items.ItemProvider;
|
||
|
import com.fr.plugin.xx.submitjob.job.*;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
* <Function Description><br>
|
||
|
* <DataSubmitItems>
|
||
|
*
|
||
|
* @author xx
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
public class DataSubmitItems implements ItemProvider {
|
||
|
|
||
|
public static List<Item> LIST_ITEMS = new ArrayList<Item>() {
|
||
|
private static final long serialVersionUID = 4517273885238014305L;
|
||
|
|
||
|
{
|
||
|
add(new Item(I18nKit.getLocText("Plugin-submitjob_ClassName_Get_Submit"), GetSubmitJob.class.getName()));
|
||
|
add(new Item(I18nKit.getLocText("Plugin-submitjob_ClassName_Post_Submit"), PostSubmitJob.class.getName()));
|
||
|
add(new Item(I18nKit.getLocText("Plugin-submitjob_ClassName_Post_Json_Submit"), PostJsonSubmitJob.class.getName()));
|
||
|
add(new Item(I18nKit.getLocText("Plugin-submitjob_ClassName_Post_Total_Submit"), PostTotalSubmitJob.class.getName()));
|
||
|
add(new Item(I18nKit.getLocText("Plugin-submitjob_ClassName_Soap_Submit"), SoapSubmitJob.class.getName()));
|
||
|
add(new Item(I18nKit.getLocText("Plugin-submitjob_ClassName_Soap_Total_Submit"), SoapTotalSubmitJob.class.getName()));
|
||
|
}
|
||
|
};
|
||
|
|
||
|
public static List<String> classNameList = new ArrayList<String>() {
|
||
|
private static final long serialVersionUID = 1815958019785941089L;
|
||
|
|
||
|
{
|
||
|
add(GetSubmitJob.class.getName());
|
||
|
add(PostSubmitJob.class.getName());
|
||
|
add(PostJsonSubmitJob.class.getName());
|
||
|
add(PostTotalSubmitJob.class.getName());
|
||
|
add(SoapSubmitJob.class.getName());
|
||
|
add(SoapTotalSubmitJob.class.getName());
|
||
|
}
|
||
|
};
|
||
|
|
||
|
public DataSubmitItems() {
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Item[] getItems() {
|
||
|
return LIST_ITEMS.toArray(new Item[0]);
|
||
|
}
|
||
|
}
|