Browse Source

web属性界面打不开

master
richie 9 years ago
parent
commit
0f54734d5a
  1. 2
      designer_base/src/com/fr/design/style/background/BackgroundFactory.java
  2. 6
      designer_base/src/com/fr/design/style/background/BackgroundPane.java
  3. 6
      designer_base/src/com/fr/design/style/background/BackgroundPane4Browser.java

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

@ -87,7 +87,7 @@ public class BackgroundFactory {
return browser.keySet(); return browser.keySet();
} }
public static BackgroundUIWrapper getBrosweWrapper(Class<? extends Background> category) { public static BackgroundUIWrapper getBrowserWrapper(Class<? extends Background> category) {
return browser.get(category); return browser.get(category);
} }

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

@ -117,7 +117,7 @@ public class BackgroundPane extends BasicPane {
* Populate background. * Populate background.
*/ */
public void populate(Background background) { public void populate(Background background) {
BackgroundUIWrapper wrapper = BackgroundFactory.getWrapper(background == null ? null : background.getClass()); BackgroundUIWrapper wrapper = getBackgroundUIWrapper(background);
int index = wrapper.getIndex(); int index = wrapper.getIndex();
BackgroundDetailPane quickPane = getTabItemPane(background, index); BackgroundDetailPane quickPane = getTabItemPane(background, index);
quickPane.populate(background); quickPane.populate(background);
@ -126,6 +126,10 @@ public class BackgroundPane extends BasicPane {
tabbedPane.validate(); tabbedPane.validate();
} }
protected BackgroundUIWrapper getBackgroundUIWrapper(Background background) {
return BackgroundFactory.getWrapper(background == null ? null : background.getClass());
}
/** /**
* Update background. * Update background.
*/ */

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

@ -16,12 +16,16 @@ public class BackgroundPane4Browser extends BackgroundPane {
protected void initTabPane() { protected void initTabPane() {
int index = 0; int index = 0;
for (Class<? extends Background> key : BackgroundFactory.browserKindsOfKey()) { for (Class<? extends Background> key : BackgroundFactory.browserKindsOfKey()) {
BackgroundUIWrapper wrapper = BackgroundFactory.getBrosweWrapper(key); BackgroundUIWrapper wrapper = BackgroundFactory.getBrowserWrapper(key);
wrapper.setIndex(index++); wrapper.setIndex(index++);
tabbedPane.addTab(Inter.getLocText(wrapper.getTitle()), FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane()); tabbedPane.addTab(Inter.getLocText(wrapper.getTitle()), FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane());
} }
} }
protected BackgroundUIWrapper getBackgroundUIWrapper(Background background) {
return BackgroundFactory.getBrowserWrapper(background == null ? null : background.getClass());
}
protected BackgroundDetailPane getTabItemPane(Background background, int index) { protected BackgroundDetailPane getTabItemPane(Background background, int index) {
BackgroundDetailPane quickPane = cacheMap.get(index); BackgroundDetailPane quickPane = cacheMap.get(index);
if (quickPane == null) { if (quickPane == null) {

Loading…
Cancel
Save