Package org.jriaffe.blog

Source Code of org.jriaffe.blog.BindUtility

/*
*
* Copyright 2012 Chad Preisler
*
* This file is part of jriaffeBlog.
*
*    jriaffeBlog is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    jriaffeBlog is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with jriaffeBlog.  If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.jriaffe.blog;

import jriaffe.bind.Binder;

import javax.swing.*;

/**
* Created by IntelliJ IDEA.
* User: preisler
* Date: 10/11/11
* Time: 9:49 PM
*
* Convenience class that "binds" a panel using the jriaffe bind framework. Some panels are nested inside the main
* panel and jriaffe does not handle binding them.
*/
public class BindUtility {
    public static Binder bindPanel(JPanel panel) {
        Binder aBinder = new Binder();
        Binder.addBindMethodToClass(panel.getClass());
        aBinder.setPanel(panel);
        return aBinder;
    }
}
TOP

Related Classes of org.jriaffe.blog.BindUtility

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.