|
|
@ -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); |
|
|
|