//# 0 errors, 65 messages
//#
/*
    //#CustomFrame.java:1:1: class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#CustomFrame.java:1:1: method: com.dmdirc.addons.ui_swing.components.frames.CustomFrame.com.dmdirc.addons.ui_swing.components.frames.CustomFrame__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.components.frames;

import com.dmdirc.FrameContainer;
import com.dmdirc.addons.ui_swing.SwingController;
import com.dmdirc.commandparser.PopupType;

import javax.swing.JPopupMenu;

import net.miginfocom.swing.MigLayout;

/**
 * A very basic custom frame.
 * 
 * @author chris
 */
public class CustomFrame extends TextFrame {

    /**
     * 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 = 2;

    /**
     * Creates a new instance of CustomFrame.
     *
     * @param owner The frame container that owns this frame
     * @param controller Swing controller
     */
    public CustomFrame(final FrameContainer owner, final SwingController controller) {
        super(owner, controller);
    //#CustomFrame.java:53: method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame.com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)
    //#CustomFrame.java:53: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.frames.TextFrame(FrameContainer, SwingController)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.frames.TextFrame(FrameContainer, SwingController)
    //#input(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): controller
    //#input(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): owner
    //#input(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): this
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:com.dmdirc.addons.ui_swing.components.frames.CustomFrame:setTitle
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:net.miginfocom.swing.MigLayout
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:java.awt.Container:setLayout
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getTextPane
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:java.awt.Container:add
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getSearchBar
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)): Effects-of-calling:com.dmdirc.addons.ui_swing.components.frames.CustomFrame:pack

        initComponents();

        addKeyListener(this);
    //#CustomFrame.java:57: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.frames.CustomFrame:addKeyListener(KeyListener)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame:addKeyListener(KeyListener)
    }
    //#CustomFrame.java:58: end of method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame.com.dmdirc.addons.ui_swing.components.frames.CustomFrame(FrameContainer, SwingController)

    /**
     * Initialises components in this frame.
     */
    private void initComponents() {
        setTitle("Custom Frame");
    //#CustomFrame.java:64: method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame.initComponents()
    //#CustomFrame.java:64: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.frames.CustomFrame:setTitle(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame:setTitle(String)
    //#input(void initComponents()): this
    //#presumption(void initComponents()): com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane(...)@66 != null
    //#presumption(void initComponents()): com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane(...)@67 != null
    //#presumption(void initComponents()): com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane(...)@68 != null

        getContentPane().setLayout(new MigLayout("ins 0, fill, hidemode 3, wrap 1"));
    //#CustomFrame.java:66: Warning: method not available - call not analyzed
    //#    call on Container com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: Container com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane()
    //#CustomFrame.java:66: Warning: method not available - call not analyzed
    //#    call on void net.miginfocom.swing.MigLayout(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: void net.miginfocom.swing.MigLayout(String)
        getContentPane().add(getTextPane(), "grow, push");
    //#CustomFrame.java:67: Warning: method not available - call not analyzed
    //#    call on Container com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: Container com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane()
    //#CustomFrame.java:67: Warning: method not available - call not analyzed
    //#    call on TextPane com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getTextPane()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: TextPane com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getTextPane()
        getContentPane().add(getSearchBar(), "growx, pushx");
    //#CustomFrame.java:68: Warning: method not available - call not analyzed
    //#    call on Container com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: Container com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getContentPane()
    //#CustomFrame.java:68: Warning: method not available - call not analyzed
    //#    call on SwingSearchBar com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getSearchBar()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: SwingSearchBar com.dmdirc.addons.ui_swing.components.frames.CustomFrame:getSearchBar()

        pack();
    //#CustomFrame.java:70: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.frames.CustomFrame:pack()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
    //#    method: void initComponents()
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame:pack()
    }
    //#CustomFrame.java:71: end of method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame.initComponents()

    /** {@inheritDoc} */
    @Override
    public PopupType getNicknamePopupType() {
        return null;
    //#CustomFrame.java:76: method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getNicknamePopupType()
    //#output(PopupType getNicknamePopupType()): return_value
    //#post(PopupType getNicknamePopupType()): return_value == null
    //#CustomFrame.java:76: end of method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getNicknamePopupType()
    }

    /** {@inheritDoc} */
    @Override
    public PopupType getChannelPopupType() {
        return null;
    //#CustomFrame.java:82: method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getChannelPopupType()
    //#output(PopupType getChannelPopupType()): return_value
    //#post(PopupType getChannelPopupType()): return_value == null
    //#CustomFrame.java:82: end of method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getChannelPopupType()
    }

    /** {@inheritDoc} */
    @Override
    public PopupType getHyperlinkPopupType() {
        return null;
    //#CustomFrame.java:88: method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getHyperlinkPopupType()
    //#output(PopupType getHyperlinkPopupType()): return_value
    //#post(PopupType getHyperlinkPopupType()): return_value == null
    //#CustomFrame.java:88: end of method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getHyperlinkPopupType()
    }

    /** {@inheritDoc} */
    @Override
    public PopupType getNormalPopupType() {
        return null;
    //#CustomFrame.java:94: method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getNormalPopupType()
    //#output(PopupType getNormalPopupType()): return_value
    //#post(PopupType getNormalPopupType()): return_value == null
    //#CustomFrame.java:94: end of method: PopupType com.dmdirc.addons.ui_swing.components.frames.CustomFrame.getNormalPopupType()
    }

    /** {@inheritDoc} */
    @Override
    public void addCustomPopupItems(final JPopupMenu popupMenu) {
        //Add no custom popup items
    }
    //#CustomFrame.java:101: method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame.addCustomPopupItems(JPopupMenu)
    //#CustomFrame.java:101: end of method: void com.dmdirc.addons.ui_swing.components.frames.CustomFrame.addCustomPopupItems(JPopupMenu)
}
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/frames/CustomFrame]
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.addCustomPopupItems(Ljavax/swing/JPopupMenu;)V
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getChannelPopupType()Lcom/dmdirc/commandparser/PopupType;
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getHyperlinkPopupType()Lcom/dmdirc/commandparser/PopupType;
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getNicknamePopupType()Lcom/dmdirc/commandparser/PopupType;
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getNormalPopupType()Lcom/dmdirc/commandparser/PopupType;
    //#output(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.initComponents()V
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/frames/CustomFrame] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.addCustomPopupItems(Ljavax/swing/JPopupMenu;)V == &addCustomPopupItems
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getChannelPopupType()Lcom/dmdirc/commandparser/PopupType; == &getChannelPopupType
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getHyperlinkPopupType()Lcom/dmdirc/commandparser/PopupType; == &getHyperlinkPopupType
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getNicknamePopupType()Lcom/dmdirc/commandparser/PopupType; == &getNicknamePopupType
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.getNormalPopupType()Lcom/dmdirc/commandparser/PopupType; == &getNormalPopupType
    //#post(com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init): __Dispatch_Table.initComponents()V == &initComponents
    //#CustomFrame.java:: end of method: com.dmdirc.addons.ui_swing.components.frames.CustomFrame.com.dmdirc.addons.ui_swing.components.frames.CustomFrame__static_init
    //#CustomFrame.java:: end of class: com.dmdirc.addons.ui_swing.components.frames.CustomFrame
