Browse Source

添加是否顯示滾動條接口

master
xiaohu 9 years ago
parent
commit
a0d9a7b141
  1. 9
      designer_base/src/com/fr/design/dialog/BasicScrollPane.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.setVisible(false);
} else {
scrollBar.setEnabled(true);
scrollBar.setVisible(true);
boolean show = isShowScrollBar();
scrollBar.setEnabled(show);
scrollBar.setVisible(show);
}
maxheight = getHeight() - DET_HEIGHT;
if ((MAXVALUE - scrollBar.getVisibleAmount()) == 0) {
@ -181,6 +182,10 @@ public abstract class BasicScrollPane<T> extends BasicBeanPane<T>{
}
}
protected boolean isShowScrollBar() {
return true;
}
@Override
public T updateBean() {
return null;

Loading…
Cancel
Save