/*
* 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;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.dnd.DragGestureEvent;
import java.awt.dnd.InvalidDnDOperationException;
import java.awt.dnd.peer.DragSourceContextPeer;
import java.awt.im.InputMethodHighlight;
import java.awt.image.ImageObserver;
import java.awt.peer.FontPeer;
import java.util.Map;
import java.util.Properties;
import org.onemind.awtbridge.BridgeToolkit;
/**
* A thin-client toolkit
* @author TiongHiang Lee (thlee@onemindsoft.org)
*
*/
public class SwingWebToolkit extends BridgeToolkit
{
/** the event queue * */
private EventQueue _eventQueue;
/**
* Constructor
*/
public SwingWebToolkit()
{
super();
}
/**
* {@inheritDoc}
*/
public void beep()
{
}
/**
* {@inheritDoc}
*/
public DragSourceContextPeer createDragSourceContextPeer(
DragGestureEvent dge) throws InvalidDnDOperationException
{
return null;
}
/**
* {@inheritDoc}
*/
public FontPeer getFontPeer(String name, int style)
{
return null;
}
/**
* {@inheritDoc}
*/
public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)
{
return null;
}
/**
* {@inheritDoc}
*/
public Dimension getScreenSize() throws HeadlessException
{
return new Dimension(1024, 768);
}
/**
* {@inheritDoc}
*/
public Clipboard getSystemClipboard() throws HeadlessException
{
return null;
}
/**
* {@inheritDoc}
*/
public Map mapInputMethodHighlight(InputMethodHighlight highlight)
throws HeadlessException
{
return null;
}
/**
* {@inheritDoc}
*/
public boolean prepareImage(Image image, int width, int height,
ImageObserver observer)
{
return false;
}
/**
* {@inheritDoc}
*/
public void sync()
{
}
}
|