cookxml.cookswt
Class CookSwt

java.lang.Object
  extended bycookxml.core.CookXml
      extended bycookxml.cookswt.CookSwt

public class CookSwt
extends CookXml

Since:
CookSwt 1.0

Constructor Summary
CookSwt()
          create a CookSwt which does not really use variables.
CookSwt(Object varObj)
          create a CookSwt with an object in which all variable names are looked up.
CookSwt(Object varObj, ClassLoader classLoader)
          create a CookSwt with an object in which all variable names are looked up.
CookSwt(VarLookup varLookup)
          create a CookSwt with with a variable lookup handler.
CookSwt(VarLookup varLookup, ClassLoader classLoader)
          create a CookSwt with with a variable lookup handler.
 
Method Summary
static DocumentBuilder getSwtDocumentBuilder()
          Get the default DocumentBuilder for creating a CookSwt object.
static InheritableTagLibrary getSwtTagLibrary()
          Get the system wide swt tag library.
static void setSwtDocumentBuilder(DocumentBuilder docBuilder)
          Set the default DocumentBuilder used for creating a CookSwt object.
static void setSwtTagLibrary(InheritableTagLibrary tagLibrary)
          If you don't like the current swtTabLibrary, it is possible to replace it with your own.
static void setSystemResourceBundle(ResourceBundle bundle)
          set the system wide resource bundle for string translation.
 
Methods inherited from class cookxml.core.CookXml
debug, debug, debug, getClassLoader, getDefaultClassLoader, getDefaultExceptionHandler, getDocumentBuilder, getExceptionHandler, getId, getResourceBundle, getRootObject, getTagLibrary, getVarLookup, isAccessible, isDefaultAccessible, setAccessible, setClassLoader, setDefaultAccessible, setDefaultClassLoader, setDefaultExceptionHandler, setDocumentBuilder, setExceptionHandler, setId, setResourceBundle, setRootObject, setVarLookup, xmlDecode, xmlDecode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookSwt

public CookSwt()
create a CookSwt which does not really use variables.


CookSwt

public CookSwt(VarLookup varLookup)
create a CookSwt with with a variable lookup handler.

Parameters:
varLookup - the handler for handling variable lookup

CookSwt

public CookSwt(Object varObj)
create a CookSwt with an object in which all variable names are looked up.

Parameters:
varObj - the object in which all variable names are looked up.

CookSwt

public CookSwt(VarLookup varLookup,
               ClassLoader classLoader)
create a CookSwt with with a variable lookup handler.

Parameters:
varLookup - the handler for handling variable lookup
classLoader - the ClassLoader used to locate resources.

CookSwt

public CookSwt(Object varObj,
               ClassLoader classLoader)
create a CookSwt with an object in which all variable names are looked up.

Parameters:
varObj - the object in which all variable names are looked up.
classLoader - the ClassLoader used to locate resources.
Method Detail

setSwtTagLibrary

public static void setSwtTagLibrary(InheritableTagLibrary tagLibrary)
If you don't like the current swtTabLibrary, it is possible to replace it with your own. Or better yet, overload CookXml yourself.

Parameters:
tagLibrary - the tag library to use instead.

getSwtTagLibrary

public static InheritableTagLibrary getSwtTagLibrary()
Get the system wide swt tag library.

Returns:
the system wide swt tag library.

getSwtDocumentBuilder

public static DocumentBuilder getSwtDocumentBuilder()
Get the default DocumentBuilder for creating a CookSwt object.

Returns:
the default DocumentBuilder for creating a CookSwt object.

setSwtDocumentBuilder

public static void setSwtDocumentBuilder(DocumentBuilder docBuilder)
Set the default DocumentBuilder used for creating a CookSwt object.

Parameters:
docBuilder - the DocumentBuilder object to be used.

setSystemResourceBundle

public static void setSystemResourceBundle(ResourceBundle bundle)
set the system wide resource bundle for string translation.

Parameters:
bundle - the resource bundle to be used.