if (content.getForeground() != null)
tabbedContentManager.setForegroundAt(index, content.getForeground());
}
protected void fireContentUIRemoving(ContentUI contentUI) {
ContentManagerUIEvent event = new ContentManagerUIEvent(this, ContentManagerUIEvent.ActionId.CONTENTUI_REMOVING, contentUI);
for (ContentManagerUIListener listener : contentManagerUIListeners.getListeners(ContentManagerUIListener.class)) {
if (!listener.contentUIRemoving(event))
throw new RuntimeException("Cannot remove Content.");
}
}