소스 검색

Code cleanup

tags/7.0.0.alpha2
Artur Signell 12 년 전
부모
커밋
49c33ff2d0
1개의 변경된 파일10개의 추가작업 그리고 8개의 파일을 삭제
  1. 10
    8
      src/com/vaadin/ui/AbstractComponent.java

+ 10
- 8
src/com/vaadin/ui/AbstractComponent.java 파일 보기

@@ -438,14 +438,16 @@ public abstract class AbstractComponent implements Component, MethodEventSource
* @see com.vaadin.ui.Component#setVisible(boolean)
*/
public void setVisible(boolean visible) {
if (getState().isVisible() != visible) {
getState().setVisible(visible);
requestRepaint();
if (getParent() != null) {
// Must always repaint the parent (at least the hierarchy) when
// visibility of a child component changes.
getParent().requestRepaint();
}
if (getState().isVisible() == visible) {
return;
}

getState().setVisible(visible);
requestRepaint();
if (getParent() != null) {
// Must always repaint the parent (at least the hierarchy) when
// visibility of a child component changes.
getParent().requestRepaint();
}
}


Loading…
취소
저장