sdl.test.gui
Class GUIContainer

java.lang.Object
  |
  +--sdl.test.gui.GUIComponent
        |
        +--sdl.test.gui.GUIContainer
All Implemented Interfaces:
sdl.event.EventListener, GUIHierarchyListener

public class GUIContainer
extends GUIComponent

for demo gui - unfinished, Minimal Container for awt-like gui based on SDL graphics and events


Field Summary
protected  java.util.HashSet hierarchyListeners
           
 
Fields inherited from class sdl.test.gui.GUIComponent
componentListeners, parent, subComponents
 
Constructor Summary
GUIContainer()
           
 
Method Summary
 GUIComponent add(GUIComponent comp)
           
 void addHierarchyListener(GUIHierarchyListener hl)
           
 void paint(GUIGraphics g)
           
protected  void processEvent(sdl.event.SDLCustomEvent c)
          processes events and dispatches them to sub components - keyboard - mouse - custom
 
Methods inherited from class sdl.test.gui.GUIComponent
addComponentListener, contains, dispatchEvent, getBackground, getBounds, getComponentAt, getGraphics, getLocation, getLocationOnScreen, getParent, getSize, incomingEvents, paintAll, processEvent, setBackground, setBounds, setBounds, setLocation, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hierarchyListeners

protected java.util.HashSet hierarchyListeners
Constructor Detail

GUIContainer

public GUIContainer()
Method Detail

add

public GUIComponent add(GUIComponent comp)

addHierarchyListener

public void addHierarchyListener(GUIHierarchyListener hl)

processEvent

protected void processEvent(sdl.event.SDLCustomEvent c)
processes events and dispatches them to sub components - keyboard - mouse - custom


paint

public void paint(GUIGraphics g)
Overrides:
paint in class GUIComponent