//# 0 errors, 38 messages
//#
/*
    //#TextLabel.java:1:1: class: com.dmdirc.installer.ui.TextLabel
    //#TextLabel.java:1:1: method: com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel__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.installer.ui;

import java.awt.Insets;

import javax.swing.JTextPane;
import javax.swing.text.DefaultStyledDocument;

/**
 * Dyamnic text label.
 */
public class TextLabel extends JTextPane {

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

    /**
     * Creates a new instance of TextLabel.
     */
    public TextLabel() {
        this(null, true);
    //#TextLabel.java:46: method: void com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel()
    //#input(void com.dmdirc.installer.ui.TextLabel()): this
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:javax.swing.text.DefaultStyledDocument
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:javax.swing.JTextPane
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setOpaque
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setEditable
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setHighlighter
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:java.awt.Insets
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setMargin
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel()): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setText
    }
    //#TextLabel.java:47: end of method: void com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel()

    /**
     * Creates a new instance of TextLabel.
     *
     * @param text Text to display
     */
    public TextLabel(final String text) {
        this(text, true);
    //#TextLabel.java:55: method: void com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel(String)
    //#input(void com.dmdirc.installer.ui.TextLabel(String)): text
    //#input(void com.dmdirc.installer.ui.TextLabel(String)): this
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:javax.swing.text.DefaultStyledDocument
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:javax.swing.JTextPane
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setOpaque
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setEditable
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setHighlighter
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:java.awt.Insets
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setMargin
    //#unanalyzed(void com.dmdirc.installer.ui.TextLabel(String)): Effects-of-calling:com.dmdirc.installer.ui.TextLabel:setText
    }
    //#TextLabel.java:56: end of method: void com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel(String)

    /**
     * Creates a new instance of TextLabel.
     *
     * @param text Text to display
     * @param justified Justify the text?
     */
    public TextLabel(final String text, final boolean justified) {
        super(new DefaultStyledDocument());
    //#TextLabel.java:65: method: void com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel(String, bool)
    //#input(void com.dmdirc.installer.ui.TextLabel(String, bool)): text
    //#input(void com.dmdirc.installer.ui.TextLabel(String, bool)): this

        setOpaque(false);
    //#TextLabel.java:67: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setOpaque(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.TextLabel
    //#    method: void com.dmdirc.installer.ui.TextLabel(String, bool)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setOpaque(bool)
        setEditable(false);
    //#TextLabel.java:68: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setEditable(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.TextLabel
    //#    method: void com.dmdirc.installer.ui.TextLabel(String, bool)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setEditable(bool)
        setHighlighter(null);
    //#TextLabel.java:69: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setHighlighter(Highlighter)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.TextLabel
    //#    method: void com.dmdirc.installer.ui.TextLabel(String, bool)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setHighlighter(Highlighter)
        setMargin(new Insets(0, 0, 0, 0));
    //#TextLabel.java:70: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setMargin(Insets)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.TextLabel
    //#    method: void com.dmdirc.installer.ui.TextLabel(String, bool)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setMargin(Insets)

        setText(text);
    //#TextLabel.java:72: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.installer.ui.TextLabel:setText(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.installer.ui.TextLabel
    //#    method: void com.dmdirc.installer.ui.TextLabel(String, bool)
    //#    unanalyzed callee: void com.dmdirc.installer.ui.TextLabel:setText(String)
    }
    //#TextLabel.java:73: end of method: void com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel(String, bool)
}
    //#output(com.dmdirc.installer.ui.TextLabel__static_init): __Descendant_Table[com/dmdirc/installer/ui/TextLabel]
    //#post(com.dmdirc.installer.ui.TextLabel__static_init): __Descendant_Table[com/dmdirc/installer/ui/TextLabel] == &__Dispatch_Table
    //#TextLabel.java:: end of method: com.dmdirc.installer.ui.TextLabel.com.dmdirc.installer.ui.TextLabel__static_init
    //#TextLabel.java:: end of class: com.dmdirc.installer.ui.TextLabel
