requestRepaint();
}
}
+
+ // Identical to AbstractCompoenentContainer.setEnabled();
+ public void setEnabled(boolean enabled) {
+ super.setEnabled(enabled);
+ if (getParent() != null && !getParent().isEnabled()) {
+ // some ancestor still disabled, don't update children
+ return;
+ } else {
+ requestRepaintAll();
+ }
+ }
+
+ // Virtually identical to AbstractCompoenentContainer.setEnabled();
+ public void requestRepaintAll() {
+ requestRepaint();
+ for (Iterator childIterator = visibleComponents.iterator(); childIterator
+ .hasNext();) {
+ Component c = (Component) childIterator.next();
+ if (c instanceof Form) {
+ // Form has children in layout, but is not ComponentContainer
+ c.requestRepaint();
+ ((Form) c).getLayout().requestRepaintAll();
+ } else if (c instanceof Table) {
+ ((Table) c).requestRepaintAll();
+ } else if (c instanceof ComponentContainer) {
+ ((ComponentContainer) c).requestRepaintAll();
+ } else {
+ c.requestRepaint();
+ }
+ }
+ }
}