public static final String CLASSNAME = "v-captionwrapper";
VCaption caption;
- ComponentConnector paintable;
+ ComponentConnector wrappedConnector;
/**
* Creates a new caption wrapper panel.
ApplicationConnection client) {
caption = new VCaption(toBeWrapped, client);
add(caption);
- paintable = toBeWrapped;
- add(paintable.getWidget());
+ wrappedConnector = toBeWrapped;
+ add(wrappedConnector.getWidget());
setStyleName(CLASSNAME);
}
caption.updateCaption();
}
- public ComponentConnector getPaintable() {
- return paintable;
+ public ComponentConnector getWrappedConnector() {
+ return wrappedConnector;
}
}
getLayoutManager().setNeedsUpdate(this);
}
- public void updateCaption(ComponentConnector paintable) {
+ public void updateCaption(ComponentConnector childConnector) {
VGridLayout layout = getWidget();
- if (VCaption.isNeeded(paintable.getState())) {
- Cell cell = layout.widgetToCell.get(paintable.getWidget());
+ if (VCaption.isNeeded(childConnector.getState())) {
+ Cell cell = layout.widgetToCell.get(childConnector.getWidget());
VLayoutSlot layoutSlot = cell.slot;
VCaption caption = layoutSlot.getCaption();
if (caption == null) {
- caption = new VCaption(paintable, getConnection());
+ caption = new VCaption(childConnector, getConnection());
- Widget widget = paintable.getWidget();
+ Widget widget = childConnector.getWidget();
layout.setCaption(widget, caption);
}
caption.updateCaption();
} else {
- layout.setCaption(paintable.getWidget(), null);
+ layout.setCaption(childConnector.getWidget(), null);
}
}