return super.getTitleAt(index);
}
public Icon getIconAt(int index) {
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))) {
Content content = getContentAt(index);
Object o = flashingContents.get(content);
if (o == null) {
Icon icon = new AggregateIcon(UIManager.getIcon(MyDoggyKeySpace.CONTENT_FLASHING),
super.getIconAt(index),
SwingConstants.HORIZONTAL);