super.uninstall();
}
@Override
public int getPreferredWidth(int height) {
Rollup rollup = (Rollup)getComponent();
Component heading = rollup.getHeading();
Component content = rollup.getContent();
int preferredWidth = 0;
if (heading != null) {
preferredWidth = heading.getPreferredWidth(-1);
}
if (rollup.isExpanded() && content != null) {
preferredWidth = Math.max(preferredWidth, content.getPreferredWidth(-1));
}
preferredWidth += rollupButton.getPreferredWidth(-1) + buffer;