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="designer_base" />
<orderEntry type="module" module-name="engine" /> <orderEntry type="module" module-name="engine" />
<orderEntry type="library" name="lib" level="project" /> <orderEntry type="library" name="lib" level="project" />
<orderEntry type="module" module-name="plugins-free" />
</component> </component>
</module> </module>

2
designer_base/designer_base.iml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4"> <module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false"> <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$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content> </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.Background;
import com.fr.general.Inter; import com.fr.general.Inter;
import java.util.HashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
@ -18,8 +18,8 @@ import java.util.Set;
*/ */
public class BackgroundFactory { public class BackgroundFactory {
private static Map<Class<? extends Background>, BackgroundUIWrapper> map = new HashMap<>(); private static Map<Class<? extends Background>, BackgroundUIWrapper> map = new LinkedHashMap<>();
private static Map<Class<? extends Background>, BackgroundUIWrapper> browser = new HashMap<>(); private static Map<Class<? extends Background>, BackgroundUIWrapper> browser = new LinkedHashMap<>();
static { static {
registerUniversal(map); registerUniversal(map);

Loading…
Cancel
Save