SwingWebClientMain.java :  » Web-Framework » swingweb » org » onemind » swingweb » client » Java Open Source

Java Open Source » Web Framework » swingweb 
swingweb » org » onemind » swingweb » client » SwingWebClientMain.java
/*
 * Copyright (C) 2004 TiongHiang Lee
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not,  write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Email: thlee@onemindsoft.org
 */

package org.onemind.swingweb.client;

import org.onemind.swingweb.client.awt.SwingWebClient;
import org.onemind.swingweb.client.awt.ui.*;
public class SwingWebClientMain
{

    private SwingWebClient _client;

    public SwingWebClientMain(String url)
    {
        _client = new SwingWebClient(url);
        initHandlers();
    }

    protected void initHandlers()
    {
        _client.addHandler(new ButtonUIHandler(_client));
        _client.addHandler(new CheckboxUIHandler(_client));
        _client.addHandler(new CheckboxMenuItemUIHandler(_client));
        _client.addHandler(new ChoiceUIHandler(_client));
        _client.addHandler(new ComponentUIHandler(_client));
        _client.addHandler(new ContainerUIHandler(_client));
        _client.addHandler(new DialogUIHandler(_client));
        _client.addHandler(new FrameUIHandler(_client));
        _client.addHandler(new LabelUIHandler(_client));
        _client.addHandler(new MenuUIHandler(_client));
        _client.addHandler(new MenuItemUIHandler(_client));
        _client.addHandler(new MenuBarUIHandler(_client));
        _client.addHandler(new WindowUIHandler(_client));
        _client.addHandler(new ScrollPaneUIHandler(_client));
        _client.addHandler(new ScrollbarUIHandler(_client));
        _client.addHandler(new TextFieldUIHandler(_client));
        _client.addHandler(new TextAreaUIHandler(_client));
        _client.addHandler(new ListUIHandler(_client));
        _client.addHandler(new JFrameUIHandler(_client));
        _client.addHandler(new ContainerUIHandler(_client));
        _client.addHandler(new ContainerUIHandler(_client));
    }

    public static void main(String args[]) throws Exception
    {
        String url = "http://localhost:8080/swdemo/thinclient";
        SwingWebClientMain client = new SwingWebClientMain(url);
    }

    private void quit()
    {
        // TODO Auto-generated method stub
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.