private Widget widget;
private ApplicationConnection connection;
private String id;
- private VPaintableWidgetContainer parent;
/* State variables */
private boolean enabled = true;
}
public VPaintableWidgetContainer getParent() {
- if (parent != null) {
- return parent;
- }
-
// FIXME: Hierarchy should be set by framework instead of looked up here
VPaintableMap paintableMap = VPaintableMap.get(getConnection());
while (w != null) {
w = w.getParent();
if (paintableMap.isPaintable(w)) {
- parent = (VPaintableWidgetContainer) paintableMap
+ return (VPaintableWidgetContainer) paintableMap
.getPaintable(w);
- return parent;
}
}