Browse Source

REPORT-8354 变量名修改

master
kerry 7 years ago
parent
commit
1ad692f26c
  1. 6
      designer-base/src/com/fr/design/widget/component/BackgroundCompPane.java
  2. 8
      designer-form/src/com/fr/design/widget/ui/designer/component/TabFitLayoutBackgroundPane.java

6
designer-base/src/com/fr/design/widget/component/BackgroundCompPane.java

@ -21,7 +21,7 @@ import java.awt.Component;
*/
public abstract class BackgroundCompPane<T extends Widget> extends BasicPane {
protected UIButtonGroup backgroundHead;
protected AccessibleImgBackgroundEditor initalBackgroundEditor;
protected AccessibleImgBackgroundEditor initialBackgroundEditor;
protected AccessibleImgBackgroundEditor overBackgroundEditor;
protected AccessibleImgBackgroundEditor clickBackgroundEditor;
private JPanel panel;
@ -42,7 +42,7 @@ public abstract class BackgroundCompPane<T extends Widget> extends BasicPane {
double[] columnSize = {p, f};
int[][] rowCount = {{1, 1},{1, 1},{1, 1}};
Component[][] components = new Component[][]{
new Component[]{new UILabel(Inter.getLocText("FR-Designer_Background-Initial")), initalBackgroundEditor},
new Component[]{new UILabel(Inter.getLocText("FR-Designer_Background-Initial")), initialBackgroundEditor},
new Component[]{new UILabel(Inter.getLocText("FR-Designer_Background-Over")), overBackgroundEditor},
new Component[]{getClickLabel(), clickBackgroundEditor},
};
@ -58,7 +58,7 @@ public abstract class BackgroundCompPane<T extends Widget> extends BasicPane {
}
protected void initBackgroundEditor(){
initalBackgroundEditor = new AccessibleImgBackgroundEditor();
initialBackgroundEditor = new AccessibleImgBackgroundEditor();
overBackgroundEditor = new AccessibleImgBackgroundEditor();
clickBackgroundEditor = new AccessibleImgBackgroundEditor();
}

8
designer-form/src/com/fr/design/widget/ui/designer/component/TabFitLayoutBackgroundPane.java

@ -18,7 +18,7 @@ public class TabFitLayoutBackgroundPane extends BackgroundCompPane<WTabFitLayout
@Override
protected void initBackgroundEditor(){
initalBackgroundEditor = new AccessibleTabBackgroundEditor();
initialBackgroundEditor = new AccessibleTabBackgroundEditor();
overBackgroundEditor = new AccessibleTabBackgroundEditor();
clickBackgroundEditor = new AccessibleTabBackgroundEditor();
}
@ -38,7 +38,7 @@ public class TabFitLayoutBackgroundPane extends BackgroundCompPane<WTabFitLayout
tabFitLayout.setClickBackground(null);
}else{
tabFitLayout.setCustomStyle(true);
tabFitLayout.setInitialBackground((Background) initalBackgroundEditor.getValue());
tabFitLayout.setInitialBackground((Background) initialBackgroundEditor.getValue());
tabFitLayout.setOverBackground((Background) overBackgroundEditor.getValue());
tabFitLayout.setClickBackground((Background)clickBackgroundEditor.getValue());
}
@ -49,12 +49,12 @@ public class TabFitLayoutBackgroundPane extends BackgroundCompPane<WTabFitLayout
public void populate(WTabFitLayout tabFitLayout){
if(!tabFitLayout.isCustomStyle()){
backgroundHead.setSelectedIndex(0);
initalBackgroundEditor.setValue(null);
initialBackgroundEditor.setValue(null);
overBackgroundEditor.setValue(null);
clickBackgroundEditor.setValue(null);
}else{
backgroundHead.setSelectedIndex(1);
initalBackgroundEditor.setValue(tabFitLayout.getInitialBackground());
initialBackgroundEditor.setValue(tabFitLayout.getInitialBackground());
overBackgroundEditor.setValue(tabFitLayout.getOverBackground());
clickBackgroundEditor.setValue(tabFitLayout.getClickBackground());
}

Loading…
Cancel
Save