/** * Change the status This is the master function which may change the status of one or more * instances. */ public static void changeStatus(int status, String messageText) { if (Preferences.getBoolean("jeti", "statusLinked", true)) { for (Iterator i = subInstances.iterator(); i.hasNext(); ) { StatusButton sub = (StatusButton) i.next(); sub.changeInstanceStatus(status, messageText); } master.changeInstanceStatus(status, messageText); } else { if (currentParent == master || currentParent == null) { for (Iterator i = subInstances.iterator(); i.hasNext(); ) { StatusButton sub = (StatusButton) i.next(); if (sub.status == master.status && ((sub.message == null && master.message == null) || (sub.message != null && sub.message.equals(master.message)))) { sub.changeInstanceStatus(status, messageText); } } } if (currentParent != null) { currentParent.changeInstanceStatus(status, messageText); } else { master.changeInstanceStatus(status, messageText); } } }
public MacRenderer() { renderer = new JLabel(); renderer.setOpaque(Preferences.getBoolean("jeti", "bmw", true)); renderer.setBackground(UIManager.getColor("Tree.selectionBackground")); renderer.setForeground(UIManager.getColor("Tree.textForeground")); renderer.setFont(UIManager.getFont("Tree.font")); }