org.xulux.api.gui
Interface IXuluxLayout


public interface IXuluxLayout

The Xulux Layout interface. If you want to make a layoutmanager available to xulux or make a specific xulux layoutmanager. Since layout is normally an internal gui layer process, mostly this will be used to make layoutmanagers xulux aware..

Version:
$Id: IXuluxLayout.java,v 1.1 2005/12/18 12:58:15 mvdb Exp $
Author:
Martin van den Bemt

Method Summary
 void addWidget(IWidget widget)
          Add a child widget to layout
 void destroy()
          Destroy the layout manager and it's resources
 IWidget getParent()
          Get the parent widget
 void removeWidget(IWidget widget)
          Removes a widget from the layout.
 void setParent(IWidget widget)
          Set the parent widget
 

Method Detail

setParent

void setParent(IWidget widget)
Set the parent widget

Parameters:
widget - the parent widget

getParent

IWidget getParent()
Get the parent widget

Returns:
the widget

addWidget

void addWidget(IWidget widget)
Add a child widget to layout

Parameters:
widget - the child widget

removeWidget

void removeWidget(IWidget widget)
Removes a widget from the layout. This generally is also the place (at least in case of swing) to do some magic with contraints. Through eg widget.getProperty() you can determine what the contraints should be and pass it to the (native) layoutmanager.

Parameters:
widget - the widget

destroy

void destroy()
Destroy the layout manager and it's resources



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