|
|
|
@ -4,17 +4,12 @@ import com.fr.design.file.HistoryTemplateListCache;
|
|
|
|
|
import com.fr.design.fun.impl.AbstractPreviewProvider; |
|
|
|
|
import com.fr.design.mainframe.JForm; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.general.web.ParameterConstants; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Created by kerry on 2020-04-23 |
|
|
|
|
*/ |
|
|
|
|
public class FormAdaptivePreview extends AbstractPreviewProvider { |
|
|
|
|
private static final int PREVIEW_TYPE = 6; |
|
|
|
|
public static final String PREVIEW_OP = "form_adaptive"; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String nameForPopupItem() { |
|
|
|
@ -36,14 +31,6 @@ public class FormAdaptivePreview extends AbstractPreviewProvider {
|
|
|
|
|
return PREVIEW_TYPE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Map<String, Object> parametersForPreview() { |
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>(); |
|
|
|
|
map.put(ParameterConstants.OP, PREVIEW_OP); |
|
|
|
|
return map; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean accept(JTemplate jTemplate) { |
|
|
|
|
if (jTemplate == null) { |
|
|
|
|