Browse Source

方法调用一点小错误

master
richie 9 years ago
parent
commit
6c3c766fdc
  1. 2
      designer_base/src/com/fr/design/style/background/BackgroundFactory.java
  2. 4
      designer_base/src/com/fr/design/style/background/BackgroundPane4Browser.java

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

@ -96,7 +96,7 @@ public class BackgroundFactory {
return createByWrapper(wrapper); return createByWrapper(wrapper);
} }
public static BackgroundDetailPane createBrowerIfAbsent(int index) { public static BackgroundDetailPane createBrowserIfAbsent(int index) {
for (BackgroundUIWrapper wrapper : browser.values()) { for (BackgroundUIWrapper wrapper : browser.values()) {
if (wrapper.getIndex() == index) { if (wrapper.getIndex() == index) {
return createByWrapper(wrapper); return createByWrapper(wrapper);

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

@ -16,7 +16,7 @@ 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.getWrapper(key); BackgroundUIWrapper wrapper = BackgroundFactory.getBrosweWrapper(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());
} }
@ -37,7 +37,7 @@ public class BackgroundPane4Browser extends BackgroundPane {
protected BackgroundDetailPane getTabItemPaneByIndex(int index) { protected BackgroundDetailPane getTabItemPaneByIndex(int index) {
BackgroundDetailPane quickPane = cacheMap.get(index); BackgroundDetailPane quickPane = cacheMap.get(index);
if (quickPane == null) { if (quickPane == null) {
quickPane = BackgroundFactory.createBrowerIfAbsent(index); quickPane = BackgroundFactory.createBrowserIfAbsent(index);
tabbedPane.setComponentAt(index, quickPane); tabbedPane.setComponentAt(index, quickPane);
cacheMap.put(index, quickPane); cacheMap.put(index, quickPane);
quickPane.addChangeListener(backgroundChangeListener); quickPane.addChangeListener(backgroundChangeListener);

Loading…
Cancel
Save