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