Browse Source

自定义背景的示例

master
richie 9 years ago
parent
commit
3d5b65368a
  1. 1
      designer/designer.iml
  2. 2
      designer_base/designer_base.iml
  3. 6
      designer_base/src/com/fr/design/style/background/BackgroundFactory.java

1
designer/designer.iml

@ -17,6 +17,5 @@
<orderEntry type="module" module-name="designer_base" />
<orderEntry type="module" module-name="engine" />
<orderEntry type="library" name="lib" level="project" />
<orderEntry type="module" module-name="plugins-free" />
</component>
</module>

2
designer_base/designer_base.iml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
<output url="file://E:/env/8.0/WebReport/WEB-INF/classes" />
<output url="file://$MODULE_DIR$/../../env/WebReport/WEB-INF/classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>

6
designer_base/src/com/fr/design/style/background/BackgroundFactory.java

@ -9,7 +9,7 @@ import com.fr.design.style.background.impl.*;
import com.fr.general.Background;
import com.fr.general.Inter;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
@ -18,8 +18,8 @@ import java.util.Set;
*/
public class BackgroundFactory {
private static Map<Class<? extends Background>, BackgroundUIWrapper> map = new HashMap<>();
private static Map<Class<? extends Background>, BackgroundUIWrapper> browser = new HashMap<>();
private static Map<Class<? extends Background>, BackgroundUIWrapper> map = new LinkedHashMap<>();
private static Map<Class<? extends Background>, BackgroundUIWrapper> browser = new LinkedHashMap<>();
static {
registerUniversal(map);

Loading…
Cancel
Save