neil 9 years ago
parent
commit
e8153b0963
  1. 9
      designer_base/src/com/fr/design/dialog/BasicScrollPane.java
  2. 6
      designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java

9
designer_base/src/com/fr/design/dialog/BasicScrollPane.java

@ -153,8 +153,9 @@ public abstract class BasicScrollPane<T> extends BasicBeanPane<T>{
scrollBar.setEnabled(false); scrollBar.setEnabled(false);
scrollBar.setVisible(false); scrollBar.setVisible(false);
} else { } else {
scrollBar.setEnabled(true); boolean show = isShowScrollBar();
scrollBar.setVisible(true); scrollBar.setEnabled(show);
scrollBar.setVisible(show);
} }
maxheight = getHeight() - DET_HEIGHT; maxheight = getHeight() - DET_HEIGHT;
if ((MAXVALUE - scrollBar.getVisibleAmount()) == 0) { if ((MAXVALUE - scrollBar.getVisibleAmount()) == 0) {
@ -181,6 +182,10 @@ public abstract class BasicScrollPane<T> extends BasicBeanPane<T>{
} }
} }
protected boolean isShowScrollBar() {
return true;
}
@Override @Override
public T updateBean() { public T updateBean() {
return null; return null;

6
designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java

@ -15,9 +15,13 @@ import com.fr.general.ComparatorUtils;
* Created by Mitisky on 16/3/7. * Created by Mitisky on 16/3/7.
*/ */
public abstract class AbstractIndependentChartUIWithAPILevel implements IndependentChartUIProvider { public abstract class AbstractIndependentChartUIWithAPILevel implements IndependentChartUIProvider {
private static final int OLD_PLUGIN_LEVEL = -2;
@Override @Override
//以前的插件没有覆写这个方法,所以始终获取到-2,比当前level低,提示更新.
//新的插件编译进去的是当前LEVEL,当之后LEVEL增加,会比编译进去的LEVEL大,提示更新.
public int currentAPILevel() { public int currentAPILevel() {
return CURRENT_API_LEVEL; return OLD_PLUGIN_LEVEL;
} }
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener){ public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener){

Loading…
Cancel
Save