public boolean hasEventListener(String eventIdentifier);
+ /**
+ * Return true if parent handles caption, false if the paintable handles the
+ * caption itself.
+ *
+ * <p>
+ * This should always return true and all components should let the parent
+ * handle the caption and use other attributes for internal texts in the
+ * component
+ * </p>
+ *
+ * @return true if caption handling is delegated to the parent, false if
+ * parent should not be allowed to render caption
+ */
+ public boolean delegateCaptionHandling();
+
}
}
}
- /**
- * Return true if parent handles caption, false if the paintable handles the
- * caption itself.
- *
+ /*
+ * (non-Javadoc)
*
- * @deprecated This should always return true and all components should let
- * the parent handle the caption and use other attributes for
- * internal texts in the component
- * @return
+ * @see
+ * com.vaadin.terminal.gwt.client.ComponentConnector#delegateCaptionHandling
+ * ()
*/
- @Deprecated
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return true;
}
}
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
Paintable {
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
}
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
needCaptionUpdate = false;
for (ComponentConnector child : getChildren()) {
- updateCaption(child);
+ if (child.delegateCaptionHandling()) {
+ updateCaption(child);
+ }
}
}
getLayoutManager().setNeedsUpdate(this);
Paintable {
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
}
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
}
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
private boolean centerAfterLayout = false;
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
implements Paintable {
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
}
private WindowServerRPC rpc;
@Override
- protected boolean delegateCaptionHandling() {
+ public boolean delegateCaptionHandling() {
return false;
};