headerWidth += parent.getTextWidth(text) + HORIZONTAL_MARGIN;
headerWidth += getTextWidth(text) + HORIZONTAL_MARGIN;
int getPreferredWidth(int index) {	Image image = getImage(index);	String text = getText(index);		int headerWidth = HORIZONTAL_MARGIN;	if (image != null){		headerWidth += getImageExtent().x + HORIZONTAL_MARGIN;	}	if (text != null) {		headerWidth += parent.getTextWidth(text) + HORIZONTAL_MARGIN;	}		return headerWidth;}