@ -0,0 +1,34 @@
|
||||
package com.fr.design.file.filter; |
||||
|
||||
import com.fr.stable.Filter; |
||||
import java.util.HashSet; |
||||
import java.util.Set; |
||||
|
||||
/** |
||||
* 过滤无需遍历的jdk class
|
||||
* |
||||
* @author hades |
||||
* @version 10.0 |
||||
* Created by hades on 2021/1/7 |
||||
*/ |
||||
public class ClassFilter implements Filter<String> { |
||||
|
||||
|
||||
private static final Set<String> FILTER_SET = new HashSet<>(); |
||||
|
||||
private static final Filter<String> INSTANCE = new ClassFilter(); |
||||
|
||||
public static Filter<String> getInstance() { |
||||
return INSTANCE; |
||||
} |
||||
|
||||
static { |
||||
FILTER_SET.add("java.awt.image.BufferedImage"); |
||||
FILTER_SET.add("sun.awt.AppContext"); |
||||
} |
||||
|
||||
@Override |
||||
public boolean accept(String s) { |
||||
return FILTER_SET.contains(s); |
||||
} |
||||
} |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 610 B |
After Width: | Height: | Size: 602 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 774 B |
After Width: | Height: | Size: 774 B |
@ -1,21 +1,37 @@
|
||||
package com.fr.design.mainframe.widget.ui; |
||||
|
||||
import com.fr.design.designer.creator.XCreator; |
||||
import com.fr.design.designer.creator.XWParameterLayout; |
||||
import com.fr.design.file.HistoryTemplateListCache; |
||||
import com.fr.design.mainframe.EastRegionContainerPane; |
||||
import com.fr.design.mainframe.JForm; |
||||
|
||||
/** |
||||
* Created by kerry on 2017/9/30. |
||||
*/ |
||||
public class WidgetBasicPropertyPaneFactory { |
||||
|
||||
public static FormBasicPropertyPane createBasicPropertyPane(XCreator xCreator){ |
||||
if(xCreator.supportSetVisible() && xCreator.supportSetEnable()){ |
||||
public static FormBasicPropertyPane createBasicPropertyPane(XCreator xCreator) { |
||||
freshPropertyMode(xCreator); |
||||
if (xCreator.supportSetVisible() && xCreator.supportSetEnable()) { |
||||
return new FormBasicWidgetPropertyPane(); |
||||
} |
||||
if(xCreator.supportSetVisible()){ |
||||
if (xCreator.supportSetVisible()) { |
||||
return new BasicSetVisiblePropertyPane(); |
||||
}else{ |
||||
} else { |
||||
return new FormBasicPropertyPane(); |
||||
} |
||||
|
||||
} |
||||
|
||||
private static void freshPropertyMode(XCreator xCreator) { |
||||
if (!(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate() instanceof JForm)) { |
||||
if (xCreator instanceof XWParameterLayout) { |
||||
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.REPORT_PARA); |
||||
} else { |
||||
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.REPORT_PARA_WIDGET); |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|