sdljavax.gui

Class Container

public abstract class Container extends Widget

A Container is a Widget that can contain other Widgets.

Version: $Id: Container.java,v 1.3 2005/02/10 04:20:18 ivan_ganza Exp $

Author: Ivan Z. Ganza

Field Summary
protected Listchildren
protected WidgetmouseFocus
protected SDLRectscreenDimensions
Constructor Summary
Container(GL gl, String name, SDLRect rect, SDLRect screenDimensions)
Method Summary
voidadd(Widget w)
voidadd(int index, Widget w)
voiddraw(GL gl)
voidhandleEvent(SDLEvent event)
voidremove(Widget w)
voidsetMouseFocus(Widget w)

Field Detail

children

protected List children

mouseFocus

protected Widget mouseFocus

screenDimensions

protected SDLRect screenDimensions

Constructor Detail

Container

public Container(GL gl, String name, SDLRect rect, SDLRect screenDimensions)

Method Detail

add

public void add(Widget w)

add

public void add(int index, Widget w)

draw

public void draw(GL gl)

handleEvent

public void handleEvent(SDLEvent event)

remove

public void remove(Widget w)

setMouseFocus

public void setMouseFocus(Widget w)