Teppefall

com.teppefall.ds.layout.jxml
Class Importer

java.lang.Object
  extended by com.teppefall.ds.layout.jxml.Importer

public class Importer
extends java.lang.Object


Constructor Summary
Importer()
           
 
Method Summary
static Assembly decode(java.lang.Class owner)
          Call this in Hello.class and Hello.xml will be imported.
static Assembly decode(java.lang.Class owner, java.io.InputStream resource)
          InputStream version.
static Assembly decode(java.lang.Class owner, java.lang.String resource)
          Example use: Importer.decode(getClass(), "hello.xml").getPanel();
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer()
Method Detail

decode

public static Assembly decode(java.lang.Class owner)
Call this in Hello.class and Hello.xml will be imported.

Parameters:
owner - Class owner
Returns:
Assembly object

decode

public static Assembly decode(java.lang.Class owner,
                              java.lang.String resource)
Example use: Importer.decode(getClass(), "hello.xml").getPanel();

Parameters:
owner - Class owner
resource - XML resource path
Returns:
Assembly object

decode

public static Assembly decode(java.lang.Class owner,
                              java.io.InputStream resource)
InputStream version.

Parameters:
owner - Class owner
resource - XML resource path
Returns:
Assembly object

Teppefall