//# 0 errors, 37 messages
//#
/*
    //#TreeViewNode.java:1:1: class: com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode
    //#TreeViewNode.java:1:1: method: com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__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.FrameContainer;
import javax.swing.tree.DefaultMutableTreeNode;

/**
 *
 */
public class TreeViewNode extends DefaultMutableTreeNode {
    
    /**
     * 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 = 5;
    /** Node's label. */
    private NodeLabel label;
    /** Node's frame container. */
    private FrameContainer frameContainer;
    
    public TreeViewNode(final NodeLabel label, final FrameContainer frameContainer) {
        super();
    //#TreeViewNode.java:45: method: void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)
    //#input(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): frameContainer
    //#input(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): label
    //#input(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): this
    //#output(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): this.frameContainer
    //#output(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): this.label
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): this.frameContainer == frameContainer
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): init'ed(this.frameContainer)
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): this.label == label
    //#post(void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)): init'ed(this.label)
        
        this.label = label;
        this.frameContainer = frameContainer;
    }
    //#TreeViewNode.java:49: end of method: void com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode(NodeLabel, FrameContainer)
    
    public NodeLabel getLabel() {
        return label;
    //#TreeViewNode.java:52: method: NodeLabel com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.getLabel()
    //#input(NodeLabel getLabel()): this
    //#input(NodeLabel getLabel()): this.label
    //#output(NodeLabel getLabel()): return_value
    //#pre[2] (NodeLabel getLabel()): init'ed(this.label)
    //#post(NodeLabel getLabel()): return_value == this.label
    //#post(NodeLabel getLabel()): init'ed(return_value)
    //#TreeViewNode.java:52: end of method: NodeLabel com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.getLabel()
    }
    
    public FrameContainer getFrameContainer() {
        return frameContainer;
    //#TreeViewNode.java:56: method: FrameContainer com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.getFrameContainer()
    //#input(FrameContainer getFrameContainer()): this
    //#input(FrameContainer getFrameContainer()): this.frameContainer
    //#output(FrameContainer getFrameContainer()): return_value
    //#pre[2] (FrameContainer getFrameContainer()): init'ed(this.frameContainer)
    //#post(FrameContainer getFrameContainer()): return_value == this.frameContainer
    //#post(FrameContainer getFrameContainer()): init'ed(return_value)
    //#TreeViewNode.java:56: end of method: FrameContainer com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.getFrameContainer()
    }

}
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/TreeViewNode]
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init): __Dispatch_Table.getFrameContainer()Lcom/dmdirc/FrameContainer;
    //#output(com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init): __Dispatch_Table.getLabel()Lcom/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel;
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/framemanager/tree/TreeViewNode] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init): __Dispatch_Table.getFrameContainer()Lcom/dmdirc/FrameContainer; == &getFrameContainer
    //#post(com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init): __Dispatch_Table.getLabel()Lcom/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel; == &getLabel
    //#TreeViewNode.java:: end of method: com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode.com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode__static_init
    //#TreeViewNode.java:: end of class: com.dmdirc.addons.ui_swing.framemanager.tree.TreeViewNode
