Components that do not delegate caption handling to parent should not get a captiontags/7.0.0.alpha2
public boolean hasEventListener(String eventIdentifier); | 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; | return true; | ||||
} | } | ||||
} | } | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
Paintable { | Paintable { | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
needCaptionUpdate = false; | needCaptionUpdate = false; | ||||
for (ComponentConnector child : getChildren()) { | for (ComponentConnector child : getChildren()) { | ||||
updateCaption(child); | |||||
if (child.delegateCaptionHandling()) { | |||||
updateCaption(child); | |||||
} | |||||
} | } | ||||
} | } | ||||
getLayoutManager().setNeedsUpdate(this); | getLayoutManager().setNeedsUpdate(this); |
Paintable { | Paintable { | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
private boolean centerAfterLayout = false; | private boolean centerAfterLayout = false; | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
implements Paintable { | implements Paintable { | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
} | } | ||||
private WindowServerRPC rpc; | private WindowServerRPC rpc; | ||||
@Override | @Override | ||||
protected boolean delegateCaptionHandling() { | |||||
public boolean delegateCaptionHandling() { | |||||
return false; | return false; | ||||
}; | }; | ||||