if (getSelectedIndex() == index) {
Content content = contentMap.get(index);
if (content == null)
return super.getIconAt(index);
ContentUI contentUI = content.getContentUI();
if (contentUI == null)
return super.getIconAt(index);
// Setup aggregate icon
aggregateIcon.setIconAt(0, super.getIconAt(index));
titleIcon.setText(super.getTitleAt(index));
titleIcon.setUnderlinedIndex(SwingUtil.findDisplayedMnemonicIndex(super.getTitleAt(index),
getContentAt(index).getMnemonic()));
aggregateIcon.setVisibleAt(2, contentUI.isMinimizable() && showMinimize);
if (content.isMaximized() || getContentMaximized(content) != null)
aggregateIcon.setIconAt(3, UIManager.getIcon(MyDoggyKeySpace.CONTENT_PAGE_RESTORE));
else
aggregateIcon.setIconAt(3, UIManager.getIcon(MyDoggyKeySpace.CONTENT_PAGE_MAXIMIZE));
aggregateIcon.setVisibleAt(3, contentUI.isMaximizable() && showMaximize);
aggregateIcon.setVisibleAt(4, contentUI.isDetachable() && showDetach);
aggregateIcon.setVisibleAt(5, contentUI.isCloseable() && showClose);
aggregateIcon.setIndex(index);
return aggregateIcon;
} else if (flashingContents.containsKey(getContentAt(index))) {