Browse Source

Merge pull request #116 in BA/design from ~XIAOHU/design:dev to dev

* commit '060d1181c38371270269d0e6365abc2a11909b6f':
  添加是否顯示滾動條接口
master
superman 9 years ago
parent
commit
a7ea734e91
  1. 11
      designer_base/src/com/fr/design/dialog/BasicScrollPane.java

11
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) {
@ -179,7 +180,11 @@ public abstract class BasicScrollPane<T> extends BasicBeanPane<T>{
}
leftcontentPane.validate();
}
}
}
protected boolean isShowScrollBar() {
return true;
}
@Override
public T updateBean() {

Loading…
Cancel
Save