'jad'에 해당되는 글 1건

  1. 2009.03.14 jad - java decompile

p.167 관련


C:\Documents and Settings\Administrator\바탕 화면>jad.exe HeaderStyle.class
Parsing HeaderStyle.class...The class file version is 48.0 (only 45.3, 46.0 and
47.0 are supported)
Overwrite HeaderStyle.jad [y/n/a/s] ? y
 Generating HeaderStyle.jad

C:\Documents and Settings\Administrator\바탕 화면>type HeaderStyle.jad
// Decompiled by Jad v1.5.8d. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
// Source File Name:   HeaderStyle.java

package com.jgoodies.looks;

import javax.swing.*;

public final class HeaderStyle
{

    private HeaderStyle(String name)
    {
        this.name = name;
    }

    public static HeaderStyle from(JMenuBar menuBar)
    {
        return from0(menuBar);
    }

    public static HeaderStyle from(JToolBar toolBar)
    {
        return from0(toolBar);
    }

    private static HeaderStyle from0(JComponent c)
    {
        Object value = c.getClientProperty("jgoodies.headerStyle");
        if(value instanceof HeaderStyle)
            return (HeaderStyle)value;
        if(value instanceof String)
            return valueOf((String)value);
        else
            return null;
    }

    private static HeaderStyle valueOf(String name)
    {
        if(name.equalsIgnoreCase(SINGLE.name))
            return SINGLE;
        if(name.equalsIgnoreCase(BOTH.name))
            return BOTH;
        else
            throw new IllegalArgumentException("Invalid HeaderStyle name " + nam
e);
    }

    public String toString()
    {
        return name;
    }

    public static final HeaderStyle SINGLE = new HeaderStyle("Single");
    public static final HeaderStyle BOTH = new HeaderStyle("Both");
    private final String name;

}

C:\Documents and Settings\Administrator\바탕 화면>

신고
Posted by 김주일

티스토리 툴바