com.jmex.bui
Class BuiSystem

java.lang.Object
  extended by com.jmex.bui.BuiSystem

public class BuiSystem
extends java.lang.Object

The global Bui handler system

Since:
27Apr07
Author:
timo

Method Summary
static void addController(com.jme.scene.Controller controller)
          Adds a controller to our BRootNode
static void addGlobalEventListener(EventListener listener)
           
static void addWindow(BWindow window)
          Adds a BWindow to the BRootNode
static void back(BWindow currentWindow)
          Pops the last BWindow off of the stack and makes it viewable dismissing the window we've passed in
static java.util.Stack<BWindow> getHistory()
          returns the entire Stack
static BRootNode getRootNode()
          Returns the BRootNode located here
static BStyleSheet getStyle()
          Returns the BStyleSheet located here
static BWindow getWindow(java.lang.String name)
          return a window referenced by name
static void init()
          Instantiates everything for us so we don't have to worry about a thing
static void init(BRootNode _rootNode, BStyleSheet _style)
          Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use
static void init(BRootNode _rootNode, java.util.Stack<BWindow> _history, BStyleSheet _style)
          Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use
static void init(BRootNode _rootNode, java.util.Stack<BWindow> _history, java.lang.String... list)
           
static void init(BRootNode _rootNode, java.util.Stack<BWindow> _history, java.lang.String stylepath)
          Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use
static void init(BRootNode _rootNode, java.util.Stack<BWindow> _history, java.net.URL... list)
           
static void init(BRootNode _rootNode, java.lang.String _style)
          Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use
static void init(BStyleSheet _style)
          Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use
static void init(java.lang.String... styleSheetPaths)
           
static void init(java.net.URL... styleSheetPaths)
           
static BWindow pop()
          returns the last BWindow inserted on the Stack
static void push(BWindow window)
          Pushes a BWindow onto the Stack for future use
static void removeWindow(BWindow window)
          Removes a BWindow from the BRootNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init()
Instantiates everything for us so we don't have to worry about a thing


init

public static void init(BStyleSheet _style)
Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use

Parameters:
_style - BStyleSheet the stylesheet we want to use

init

public static void init(BRootNode _rootNode,
                        BStyleSheet _style)
Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use

Parameters:
_rootNode - BRootNode the rootNode we want to use
_style - BStyleSheet the stylesheet we want to use

init

public static void init(BRootNode _rootNode,
                        java.lang.String _style)
Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use

Parameters:
_rootNode - BRootNode the rootNode we want to set as our "global" history
_style - String the path to our stylesheet

init

public static void init(BRootNode _rootNode,
                        java.util.Stack<BWindow> _history,
                        java.lang.String stylepath)
Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use

Parameters:
_rootNode - BRootNode the rootNode we want to set as our "global" history
_history - the history we want to set as our "global" history
stylepath - String the path to our stylesheet

init

public static void init(java.lang.String... styleSheetPaths)

init

public static void init(java.net.URL... styleSheetPaths)

init

public static void init(BRootNode _rootNode,
                        java.util.Stack<BWindow> _history,
                        java.lang.String... list)

init

public static void init(BRootNode _rootNode,
                        java.util.Stack<BWindow> _history,
                        java.net.URL... list)

init

public static void init(BRootNode _rootNode,
                        java.util.Stack<BWindow> _history,
                        BStyleSheet _style)
Init BuiSystem with a BRootNode, BStyleSheet and Stack that we're going to use

Parameters:
_rootNode - BRootNode the rootNode we want to set as our "global" history
_history - Stack the history we want to set as our "global" history
_style - BStyleSheet the stylesheet we want to set as our "global" history

getRootNode

public static BRootNode getRootNode()
Returns the BRootNode located here

Returns:
BRootNode the rootnode located in this class

getStyle

public static BStyleSheet getStyle()
Returns the BStyleSheet located here

Returns:
BStyleSheet the stylesheet located in this class

getHistory

public static java.util.Stack<BWindow> getHistory()
returns the entire Stack

Returns:
Stack this history

getWindow

public static BWindow getWindow(java.lang.String name)
return a window referenced by name

Parameters:
name - String name of the window we're looking for
Returns:
BWindow retrieved by name

back

public static void back(BWindow currentWindow)
Pops the last BWindow off of the stack and makes it viewable dismissing the window we've passed in

Parameters:
currentWindow - BWindow the window we're done with

push

public static void push(BWindow window)
Pushes a BWindow onto the Stack for future use

Parameters:
window - BWindow window we want to push onto the Stack

pop

public static BWindow pop()
returns the last BWindow inserted on the Stack

Returns:
BWindow the last BWindow on the Stack

addWindow

public static void addWindow(BWindow window)
Adds a BWindow to the BRootNode

Parameters:
window - BWindow the window we want to add to our BRootNode

removeWindow

public static void removeWindow(BWindow window)
Removes a BWindow from the BRootNode

Parameters:
window - BWindow the window we want to add to our BRootNode

addController

public static void addController(com.jme.scene.Controller controller)
Adds a controller to our BRootNode

Parameters:
controller - Controller the controller we want to add to our BRootNode

addGlobalEventListener

public static void addGlobalEventListener(EventListener listener)


Copyright © 2011 Michael Bayne. All Rights Reserved.