android.gameengine.icadroids.forms
Class ViewCreator

java.lang.Object
  extended by android.gameengine.icadroids.forms.ViewCreator
All Implemented Interfaces:
java.lang.Runnable

public class ViewCreator
extends java.lang.Object
implements java.lang.Runnable

ViewCreator puts (form)views on top of the GameView. This views are made in Android Layout XML. It also registers any touchable components in the view. Don't use this class by yourself! It's used by GameForm to correctly add views Note: This class must run on the UI thread.

Author:
Bas

Field Summary
static java.util.Vector<View> formViews
          Vector with all the formViews that are currently availble
 
Constructor Summary
protected ViewCreator(GameEngine gameengine, int layoutID, IFormInput IformInput)
          Creates a view on top of the GameView that are made in the android XML layout file
 
Method Summary
 void run()
          Add a view on top of the current view and register any touchable components in the view to a touch-listener so the IFormInput object can receive touch calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formViews

public static java.util.Vector<View> formViews
Vector with all the formViews that are currently availble

Constructor Detail

ViewCreator

protected ViewCreator(GameEngine gameengine,
                      int layoutID,
                      IFormInput IformInput)
Creates a view on top of the GameView that are made in the android XML layout file

Parameters:
gameengine -
layoutID -
IformInput -
Method Detail

run

public void run()
Add a view on top of the current view and register any touchable components in the view to a touch-listener so the IFormInput object can receive touch calls. run() runs on the UI thread for one time

Specified by:
run in interface java.lang.Runnable