Browse Source

REPORT-4047 [9.0一轮回归]单个单元格设置边框后,再对包含此单元格的一片单元格设置背景,边框消失

master
MoMeak 7 years ago
parent
commit
d4a4bfdee6
  1. 13
      designer_base/src/com/fr/design/style/color/NewColorSelectBox.java

13
designer_base/src/com/fr/design/style/color/NewColorSelectBox.java

@ -18,10 +18,12 @@ import com.fr.design.style.AbstractSelectBox;
*/
public class NewColorSelectBox extends AbstractSelectBox<Color> implements UIObserver, GlobalNameObserver {
private static final long serialVersionUID = 2782150678943960557L;
private Color color;
private NewColorSelectPane colorPane = new NewColorSelectPane();
private UIObserverListener uiObserverListener;
private String newColorSelectBoxName = "";
private GlobalNameListener globalNameListener = null;
public NewColorSelectBox(int preferredWidth) {
initBox(preferredWidth);
@ -36,6 +38,9 @@ public class NewColorSelectBox extends AbstractSelectBox<Color> implements UIObs
if(uiObserverListener == null){
return;
}
if (globalNameListener != null && shouldResponseNameListener()){
globalNameListener.setGlobalName(newColorSelectBoxName);
}
uiObserverListener.doChange();
}
});
@ -98,16 +103,16 @@ public class NewColorSelectBox extends AbstractSelectBox<Color> implements UIObs
@Override
public void registerNameListener(GlobalNameListener listener) {
globalNameListener = listener;
}
@Override
public boolean shouldResponseNameListener() {
return false;
return true;
}
@Override
public void setGlobalName(String name) {
newColorSelectBoxName = name;
}
}
Loading…
Cancel
Save