cookxml.cookjface
Class CookJFace

java.lang.Object
  extended bycookxml.core.CookXml
      extended bycookxml.cookjface.CookJFace

public class CookJFace
extends CookXml


Field Summary
static String ABSTRACT_LIST_VIEWER
           
static String CONTENT_VIEWER
           
static String LISTENERS
           
static String TABLE_VIEWER
           
static String VIEWER
           
 
Constructor Summary
CookJFace()
          create a CookJFace which does not really use variables.
CookJFace(Object varObj)
          create a CookJFace with an object in which all variable names are looked up.
CookJFace(VarLookup varLookup)
          create a CookJFace with a variable lookup handler.
 
Method Summary
static void addViewerTag(InheritableTagLibrary tagLibrary, Class viewerClass, Creator viewerCreator, Class controlClass, String parentTag)
          a simple way of adding a Viewer tag.
static DocumentBuilder getJFaceDocumentBuilder()
          Get the default DocumentBuilder for creating a CookJFace object.
static InheritableTagLibrary getJFaceTagLibrary()
          Get the system wide jface tag library.
static void setJFaceDocumentBuilder(DocumentBuilder docBuilder)
          Set the default DocumentBuilder used for creating a CookJFace object.
static void setJFaceTagLibrary(InheritableTagLibrary tagLibrary)
          If you don't like the current jfaceTabLibrary, it is possible to replace it with your own.
static void setSystemResourceBundle(ResourceBundle bundle)
          set the system wide resource bundle for string translation.
static void setupJFaceTags(InheritableTagLibrary tagLibrary)
           
 
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
 

Field Detail

LISTENERS

public static final String LISTENERS
See Also:
Constant Field Values

VIEWER

public static final String VIEWER
See Also:
Constant Field Values

CONTENT_VIEWER

public static final String CONTENT_VIEWER
See Also:
Constant Field Values

ABSTRACT_LIST_VIEWER

public static final String ABSTRACT_LIST_VIEWER
See Also:
Constant Field Values

TABLE_VIEWER

public static final String TABLE_VIEWER
See Also:
Constant Field Values
Constructor Detail

CookJFace

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


CookJFace

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

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

CookJFace

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

Parameters:
varLookup - the handler for handling variable lookup
Method Detail

addViewerTag

public static void addViewerTag(InheritableTagLibrary tagLibrary,
                                Class viewerClass,
                                Creator viewerCreator,
                                Class controlClass,
                                String parentTag)
                         throws CookXmlException
a simple way of adding a Viewer tag.

Parameters:
viewerCreator -
tagLibrary - the tag library to be used.
viewerClass - the Viewer class
parentTag - the parent tag
Throws:
CookXmlException

setupJFaceTags

public static void setupJFaceTags(InheritableTagLibrary tagLibrary)
                           throws CookXmlException
Throws:
CookXmlException

setJFaceTagLibrary

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

Parameters:
tagLibrary - the tag library to use instead.

getJFaceTagLibrary

public static InheritableTagLibrary getJFaceTagLibrary()
Get the system wide jface tag library.

Returns:
the system wide jface tag library.

getJFaceDocumentBuilder

public static DocumentBuilder getJFaceDocumentBuilder()
Get the default DocumentBuilder for creating a CookJFace object.

Returns:
the default DocumentBuilder for creating a CookJFace object.

setJFaceDocumentBuilder

public static void setJFaceDocumentBuilder(DocumentBuilder docBuilder)
Set the default DocumentBuilder used for creating a CookJFace 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.