org.xulux.guilayer.swing.natives
Class NativeWindowHandler

java.lang.Object
  extended by org.xulux.guilayer.swing.natives.NativeWindowHandler
All Implemented Interfaces:
org.xulux.api.gui.INativeWidgetHandler

public class NativeWindowHandler
extends java.lang.Object
implements org.xulux.api.gui.INativeWidgetHandler

The native widgets handler for swing.

Version:
$Id: NativeWidgetHandler.java,v 1.3 2004/03/31 09:37:59 mvdb Exp $
Author:
Martin van den Bemt

Constructor Summary
NativeWindowHandler()
           
 
Method Summary
 void addWidgetToParent(org.xulux.api.gui.IWidget widget, java.lang.Object parentWidget)
           
 org.xulux.api.gui.IWidget getWidget(java.lang.Object nativeWidget, org.xulux.api.gui.IWidget parent)
          Adds the specified object (if it is an instanceof JComponent) to the specified parent.
 org.xulux.api.gui.IWidget getWidget(java.lang.String clazz, org.xulux.api.gui.IWidget parent)
          Adds a JComponent to the widget specified as parent
 void refresh(java.lang.Object widget)
           
 void setLocationOnWidget(org.xulux.api.gui.IWidget parent, int x, int y)
           
 void setLocationOnWidget(java.lang.Object widget, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeWindowHandler

public NativeWindowHandler()
Method Detail

getWidget

public org.xulux.api.gui.IWidget getWidget(java.lang.Object nativeWidget,
                                           org.xulux.api.gui.IWidget parent)
Adds the specified object (if it is an instanceof JComponent) to the specified parent.

Specified by:
getWidget in interface org.xulux.api.gui.INativeWidgetHandler
See Also:
INativeWidgetHandler.getWidget(java.lang.Object, org.xulux.api.gui.IWidget)

getWidget

public org.xulux.api.gui.IWidget getWidget(java.lang.String clazz,
                                           org.xulux.api.gui.IWidget parent)
Adds a JComponent to the widget specified as parent

Specified by:
getWidget in interface org.xulux.api.gui.INativeWidgetHandler
See Also:
INativeWidgetHandler.getWidget(java.lang.String, org.xulux.api.gui.IWidget)

setLocationOnWidget

public void setLocationOnWidget(org.xulux.api.gui.IWidget parent,
                                int x,
                                int y)
Specified by:
setLocationOnWidget in interface org.xulux.api.gui.INativeWidgetHandler
See Also:
INativeWidgetHandler.setLocationOnWidget(org.xulux.api.gui.IWidget, int, int)

setLocationOnWidget

public void setLocationOnWidget(java.lang.Object widget,
                                int x,
                                int y)
Specified by:
setLocationOnWidget in interface org.xulux.api.gui.INativeWidgetHandler
See Also:
INativeWidgetHandler.setLocationOnWidget(java.lang.Object, int, int)

addWidgetToParent

public void addWidgetToParent(org.xulux.api.gui.IWidget widget,
                              java.lang.Object parentWidget)
Specified by:
addWidgetToParent in interface org.xulux.api.gui.INativeWidgetHandler
See Also:
INativeWidgetHandler.addWidgetToParent(org.xulux.api.gui.IWidget, java.lang.Object)

refresh

public void refresh(java.lang.Object widget)
Specified by:
refresh in interface org.xulux.api.gui.INativeWidgetHandler
See Also:
INativeWidgetHandler.refresh(java.lang.Object)


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.