isEditable = true;
setBackground(colors[(isSelected ? 0:1) + (isEditable ? 0:2)]);
setHorizontalAlignment(SwingConstants.CENTER);
HierarchyNote note = null;
boolean hasError = false;
if (value instanceof Map) {
Map noteData = (Map) value;
note = (HierarchyNote) noteData.get(
HierarchyNoteManager.NOTE_KEY);
hasError = noteData.containsKey(
HierarchyNoteManager.NOTE_CONFLICT_KEY);
}
if (note == null) {
setIcon(null);
setToolTipText(null);
} else {
setIcon(hasError ? noteErrorIcon : noteIcon);
setToolTipText("<html><div width='300'>"
+ note.getAsHTML() + "</div></html>");
}
return result;
}