//# 0 errors, 181 messages
//#
/*
    //#NodeLabel.java:1:1: class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#NodeLabel.java:1:1: method: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.addons.ui_swing.framemanager.tree;

import com.dmdirc.interfaces.IconChangeListener;
import com.dmdirc.interfaces.NotificationListener;
import com.dmdirc.interfaces.SelectionListener;
import com.dmdirc.ui.interfaces.Window;

import java.awt.Color;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.JLabel;

import net.miginfocom.layout.PlatformDefaults;

/**
 * Node label.
 */
public class NodeLabel extends JLabel implements SelectionListener,
        NotificationListener, IconChangeListener {

    /**
     * A version number for this class. It should be changed whenever the class
     * structure is changed (or anything else that would prevent serialized
     * objects being unserialized with the new class).
     */
    private static final long serialVersionUID = 1;
    /** Node window. */
    private final Window window;
    /** Rollover colours. */
    private boolean rollover;
    /** notification colour */
    private Color notificationColour;
    /** Selected. */
    private boolean selected;

    /** 
     * Instantiates a new node label.
     * 
     * @param window Window for this node
     */
    public NodeLabel(final Window window) {
        super();
    //#NodeLabel.java:65: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)
    //#input(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): this
    //#input(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): window
    //#output(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): this.notificationColour
    //#output(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): this.selected
    //#output(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): this.window
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): init'ed(this.notificationColour)
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): init'ed(this.selected)
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): this.window == window
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): init'ed(this.window)
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.ui.interfaces.Window:getContainer
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.FrameContainer:toString
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setText
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setOpaque
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setToolTipText
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.FrameContainer:getIcon
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setIcon
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:javax.swing.BorderFactory:createEmptyBorder
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setBorder
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:getFont
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:java.awt.Font:getSize
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:net.miginfocom.layout.PlatformDefaults:getUnitValueX
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:net.miginfocom.layout.UnitValue:getValue
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:java.awt.Dimension
    //#unanalyzed(void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)): Effects-of-calling:com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setPreferredSize

        this.window = window;
        
        init();
    }
    //#NodeLabel.java:70: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel(Window)

    /**
     * Initialises the label.
     */
    private void init() {
        if (window == null) {
    //#NodeLabel.java:76: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.init()
    //#input(void init()): this
    //#input(void init()): this.window
    //#output(void init()): this.notificationColour
    //#output(void init()): this.selected
    //#presumption(void init()): (int) (net.miginfocom.layout.UnitValue:getValue(...)@87) in {-6_442_450_943..6_442_450_943}
    //#presumption(void init()): (int) (net.miginfocom.layout.UnitValue:getValue(...)@87) + java.awt.Font:getSize(...)@87 in {-2_147_483_648..4_294_967_295}
    //#presumption(void init()): com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:getFont(...)@87 != null
    //#presumption(void init()): com.dmdirc.ui.interfaces.Window:getContainer(...)@80 != null
    //#presumption(void init()): com.dmdirc.ui.interfaces.Window:getContainer(...)@84 != null
    //#presumption(void init()): net.miginfocom.layout.PlatformDefaults:getUnitValueX(...)@87 != null
    //#post(void init()): this.notificationColour == One-of{old this.notificationColour, null}
    //#post(void init()): possibly_updated(this.selected)
    //#test_vector(void init()): this.window: Inverse{null}, Addr_Set{null}
            return;
        }

        setText(window.getContainer().toString());
    //#NodeLabel.java:80: Warning: method not available - call not analyzed
    //#    call on FrameContainer com.dmdirc.ui.interfaces.Window:getContainer()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: FrameContainer com.dmdirc.ui.interfaces.Window:getContainer()
    //#NodeLabel.java:80: Warning: method not available - call not analyzed
    //#    call on String com.dmdirc.FrameContainer:toString()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: String com.dmdirc.FrameContainer:toString()
    //#NodeLabel.java:80: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setText(String)

        setOpaque(true);
    //#NodeLabel.java:82: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setOpaque(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setOpaque(bool)
        setToolTipText(null);
    //#NodeLabel.java:83: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setToolTipText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setToolTipText(String)
        setIcon(window.getContainer().getIcon());
    //#NodeLabel.java:84: Warning: method not available - call not analyzed
    //#    call on FrameContainer com.dmdirc.ui.interfaces.Window:getContainer()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: FrameContainer com.dmdirc.ui.interfaces.Window:getContainer()
    //#NodeLabel.java:84: Warning: method not available - call not analyzed
    //#    call on Icon com.dmdirc.FrameContainer:getIcon()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: Icon com.dmdirc.FrameContainer:getIcon()
    //#NodeLabel.java:84: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setIcon(Icon)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setIcon(Icon)
        setBorder(BorderFactory.createEmptyBorder(1, 0, 2, 0));
    //#NodeLabel.java:85: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setBorder(Border)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setBorder(Border)

        setPreferredSize(new Dimension(100000, getFont().getSize() +
    //#NodeLabel.java:87: Warning: method not available - call not analyzed
    //#    call on Font com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:getFont()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: Font com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:getFont()
    //#NodeLabel.java:87: Warning: method not available - call not analyzed
    //#    call on UnitValue net.miginfocom.layout.PlatformDefaults:getUnitValueX(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: UnitValue net.miginfocom.layout.PlatformDefaults:getUnitValueX(String)
    //#NodeLabel.java:87: Warning: method not available - call not analyzed
    //#    call on float net.miginfocom.layout.UnitValue:getValue()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: float net.miginfocom.layout.UnitValue:getValue()
    //#NodeLabel.java:87: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setPreferredSize(Dimension)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void init()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setPreferredSize(Dimension)
                (int) PlatformDefaults.getUnitValueX("related").
                getValue()));
        notificationColour = null;
        selected = false;
    }
    //#NodeLabel.java:92: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.init()

    /** {@inheritDoc} */
    @Override
    public void selectionChanged(final Window window) {
        if (equals(window)) {
    //#NodeLabel.java:97: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.selectionChanged(Window)
    //#input(void selectionChanged(Window)): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel]
    //#input(void selectionChanged(Window)): __Descendant_Table[others]
    //#input(void selectionChanged(Window)): __Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#input(void selectionChanged(Window)): this
    //#input(void selectionChanged(Window)): this.__Tag
    //#input(void selectionChanged(Window)): this.window
    //#input(void selectionChanged(Window)): window
    //#output(void selectionChanged(Window)): this.selected
    //#pre[2] (void selectionChanged(Window)): this.__Tag == com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel
    //#post(void selectionChanged(Window)): init'ed(this.selected)
    //#unanalyzed(void selectionChanged(Window)): Effects-of-calling:java.lang.Object:equals
            selected = true;
        } else {
            selected = false;
        }
    }
    //#NodeLabel.java:102: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.selectionChanged(Window)

    /** {@inheritDoc} */
    @Override
    public void notificationSet(final Window window, final Color colour) {
        if (equals(window)) {
    //#NodeLabel.java:107: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.notificationSet(Window, Color)
    //#input(void notificationSet(Window, Color)): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel]
    //#input(void notificationSet(Window, Color)): __Descendant_Table[others]
    //#input(void notificationSet(Window, Color)): __Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#input(void notificationSet(Window, Color)): colour
    //#input(void notificationSet(Window, Color)): this
    //#input(void notificationSet(Window, Color)): this.__Tag
    //#input(void notificationSet(Window, Color)): this.window
    //#input(void notificationSet(Window, Color)): window
    //#output(void notificationSet(Window, Color)): this.notificationColour
    //#pre[4] (void notificationSet(Window, Color)): this.__Tag == com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel
    //#post(void notificationSet(Window, Color)): this.notificationColour == One-of{old this.notificationColour, colour}
    //#unanalyzed(void notificationSet(Window, Color)): Effects-of-calling:java.lang.Object:equals
            notificationColour = colour;
        }
    }
    //#NodeLabel.java:110: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.notificationSet(Window, Color)

    /** {@inheritDoc} */
    @Override
    public void notificationCleared(final Window window) {
        if (equals(window)) {
    //#NodeLabel.java:115: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.notificationCleared(Window)
    //#input(void notificationCleared(Window)): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel]
    //#input(void notificationCleared(Window)): __Descendant_Table[others]
    //#input(void notificationCleared(Window)): __Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#input(void notificationCleared(Window)): this
    //#input(void notificationCleared(Window)): this.__Tag
    //#input(void notificationCleared(Window)): this.window
    //#input(void notificationCleared(Window)): window
    //#output(void notificationCleared(Window)): this.notificationColour
    //#pre[3] (void notificationCleared(Window)): this.__Tag == com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel
    //#post(void notificationCleared(Window)): this.notificationColour == One-of{old this.notificationColour, null}
    //#unanalyzed(void notificationCleared(Window)): Effects-of-calling:java.lang.Object:equals
            notificationColour = null;
        }
    }
    //#NodeLabel.java:118: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.notificationCleared(Window)

    /** {@inheritDoc} */
    @Override
    public void iconChanged(final Window window, final Icon icon) {
        if (equals(window)) {
    //#NodeLabel.java:123: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.iconChanged(Window, Icon)
    //#input(void iconChanged(Window, Icon)): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel]
    //#input(void iconChanged(Window, Icon)): __Descendant_Table[others]
    //#input(void iconChanged(Window, Icon)): __Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#input(void iconChanged(Window, Icon)): icon
    //#input(void iconChanged(Window, Icon)): this
    //#input(void iconChanged(Window, Icon)): this.__Tag
    //#input(void iconChanged(Window, Icon)): this.window
    //#input(void iconChanged(Window, Icon)): window
    //#pre[3] (void iconChanged(Window, Icon)): this.__Tag == com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel
    //#unanalyzed(void iconChanged(Window, Icon)): Effects-of-calling:java.lang.Object:equals
            setIcon(icon);
    //#NodeLabel.java:124: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setIcon(Icon)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
    //#    method: void iconChanged(Window, Icon)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel:setIcon(Icon)
        }
    }
    //#NodeLabel.java:126: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.iconChanged(Window, Icon)

    /** 
     * Sets the rollover state for the node.
     * 
     * @param rollover rollover state
     */
    public void setRollover(final boolean rollover) {
        this.rollover = rollover;
    //#NodeLabel.java:134: method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.setRollover(bool)
    //#input(void setRollover(bool)): rollover
    //#input(void setRollover(bool)): this
    //#output(void setRollover(bool)): this.rollover
    //#post(void setRollover(bool)): this.rollover == rollover
    //#post(void setRollover(bool)): init'ed(this.rollover)
    }
    //#NodeLabel.java:135: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.setRollover(bool)
    
    /**
     * Is this node a rollover node?
     * 
     * @return true iff this node is a rollover node
     */
    public boolean isRollover() {
        return rollover;
    //#NodeLabel.java:143: method: bool com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.isRollover()
    //#input(bool isRollover()): this
    //#input(bool isRollover()): this.rollover
    //#output(bool isRollover()): return_value
    //#pre[2] (bool isRollover()): init'ed(this.rollover)
    //#post(bool isRollover()): return_value == this.rollover
    //#post(bool isRollover()): init'ed(return_value)
    //#NodeLabel.java:143: end of method: bool com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.isRollover()
    }
    
    /**
     * Is this node a selected node?
     * 
     * @return true iff this node is a selected node
     */
    public boolean isSelected() {
        return selected;
    //#NodeLabel.java:152: method: bool com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.isSelected()
    //#input(bool isSelected()): this
    //#input(bool isSelected()): this.selected
    //#output(bool isSelected()): return_value
    //#pre[2] (bool isSelected()): init'ed(this.selected)
    //#post(bool isSelected()): return_value == this.selected
    //#post(bool isSelected()): init'ed(return_value)
    //#NodeLabel.java:152: end of method: bool com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.isSelected()
    }
    
    /**
     * Returns the notification colour for this node.
     * 
     * @return notification colour or null if non set
     */
    public Color getNotificationColour() {
        return notificationColour;
    //#NodeLabel.java:161: method: Color com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.getNotificationColour()
    //#input(Color getNotificationColour()): this
    //#input(Color getNotificationColour()): this.notificationColour
    //#output(Color getNotificationColour()): return_value
    //#pre[2] (Color getNotificationColour()): init'ed(this.notificationColour)
    //#post(Color getNotificationColour()): return_value == this.notificationColour
    //#post(Color getNotificationColour()): init'ed(return_value)
    //#NodeLabel.java:161: end of method: Color com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.getNotificationColour()
    }
    
    /** {@inheritDoc} */
    @Override
    public boolean equals(final Object obj) {
        if (window == null) {
    //#NodeLabel.java:167: method: bool com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.equals(Object)
    //#input(bool equals(Object)): obj
    //#input(bool equals(Object)): this
    //#input(bool equals(Object)): this.window
    //#output(bool equals(Object)): return_value
    //#post(bool equals(Object)): init'ed(return_value)
    //#test_vector(bool equals(Object)): this.window: Inverse{null}, Addr_Set{null}
            return false;
        }
        
        return window.equals(obj);
    //#NodeLabel.java:171: end of method: bool com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.equals(Object)
    }

    /** {@inheritDoc} */
    @Override
    public int hashCode() {
        if (window == null) {
    //#NodeLabel.java:177: method: int com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.hashCode()
    //#input(int hashCode()): this
    //#input(int hashCode()): this.window
    //#output(int hashCode()): return_value
    //#post(int hashCode()): init'ed(return_value)
    //#test_vector(int hashCode()): this.window: Inverse{null}, Addr_Set{null}
            return super.hashCode();
        }
        
        return window.hashCode();
    //#NodeLabel.java:181: end of method: int com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.hashCode()
    }
}
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel]
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.getNotificationColour()Ljava/awt/Color;
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.hashCode()I
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.iconChanged(Lcom/dmdirc/ui/interfaces/Window;Ljavax/swing/Icon;)V
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.init()V
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.isRollover()Z
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.isSelected()Z
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.notificationCleared(Lcom/dmdirc/ui/interfaces/Window;)V
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.notificationSet(Lcom/dmdirc/ui/interfaces/Window;Ljava/awt/Color;)V
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.selectionChanged(Lcom/dmdirc/ui/interfaces/Window;)V
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.setRollover(Z)V
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.equals(Ljava/lang/Object;)Z == &equals
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.getNotificationColour()Ljava/awt/Color; == &getNotificationColour
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.hashCode()I == &hashCode
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.iconChanged(Lcom/dmdirc/ui/interfaces/Window;Ljavax/swing/Icon;)V == &iconChanged
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.init()V == &init
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.isRollover()Z == &isRollover
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.isSelected()Z == &isSelected
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.notificationCleared(Lcom/dmdirc/ui/interfaces/Window;)V == &notificationCleared
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.notificationSet(Lcom/dmdirc/ui/interfaces/Window;Ljava/awt/Color;)V == &notificationSet
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.selectionChanged(Lcom/dmdirc/ui/interfaces/Window;)V == &selectionChanged
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init): __Dispatch_Table.setRollover(Z)V == &setRollover
    //#NodeLabel.java:: end of method: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel.com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel__static_init
    //#NodeLabel.java:: end of class: com.dmdirc.addons.ui_swing.framemanager.tree.NodeLabel
