Explorar el Código

Code cleanup

tags/7.0.0.alpha2
Artur Signell hace 12 años
padre
commit
49c33ff2d0
Se han modificado 1 ficheros con 10 adiciones y 8 borrados
  1. 10
    8
      src/com/vaadin/ui/AbstractComponent.java

+ 10
- 8
src/com/vaadin/ui/AbstractComponent.java Ver fichero

@@ -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();
}
}


Cargando…
Cancelar
Guardar