IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui
Class XUIEngine

java.lang.Object
  extended by com.ibm.btt.rcp.xui.XUIEngine

public class XUIEngine
extends java.lang.Object

XUI Engine entrance class. This class has the init method to initialize XML UI Engine. Also this class has open method to open a new XUI page.

        Display display = Display.getDefault();
        Shell shell = new Shell(display);
        shell.setLayout(new FillLayout());
        shell.setSize(new Point(800, 500));
        
        InitManager.reset("jar://config/btt.xml");
        XUIEngine.init("jar:///config/xuiengine.xml");
        IXUIView view = XUIEngine.open(shell, "jar:///config/customer.xui");

        Context ctx = ContextFactory.createContext("customerCtx");
        IModelAdapter adapter = new ContextModelAdapter(ctx);
        view.setModel(adapter); 
 


Constructor Summary
XUIEngine()
           
 
Method Summary
static ElementFactory getElementFactory()
          Get current used element factory
static java.util.Map<java.lang.String,java.lang.String> getGlobalSettings()
          Get global settings for XML UI Engine including Font, Color, HotKey, g18n configuration.
static void init(java.lang.String initialPath)
          Init XUI Engine method
static IXUIView open(org.eclipse.swt.widgets.Composite parent, java.lang.String xuiPath)
          Open a new XML UI page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XUIEngine

public XUIEngine()
Method Detail

init

public static void init(java.lang.String initialPath)
Init XUI Engine method

Parameters:
initialPath - the xuiengine.xml file location

open

public static IXUIView open(org.eclipse.swt.widgets.Composite parent,
                            java.lang.String xuiPath)
                     throws XUIInstanceException
Open a new XML UI page

Parameters:
parent - parent composite of new XUIView
xuiPath - xml UI path
Returns:
XUIView instance that newly created.
Throws:
XUIInstanceException

getGlobalSettings

public static java.util.Map<java.lang.String,java.lang.String> getGlobalSettings()
Get global settings for XML UI Engine including Font, Color, HotKey, g18n configuration.

Returns:
mapping of global settings.

getElementFactory

public static ElementFactory getElementFactory()
Get current used element factory

Returns:
current used element factory

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011