|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cookxml.core.CookXml cookxml.cookswing.CookSwing
This class basically customizes CookXml for Swing.
Constructor Summary | |
CookSwing()
create a cookswing which does not really use variables. |
|
CookSwing(Object varObj)
create a cookswing with an object in which all variable names are looked up. |
|
CookSwing(Object varObj,
ClassLoader classLoader)
create a cookswing with an object in which all variable names are looked up. |
|
CookSwing(VarLookup varLookup)
create a cookswing with a variable lookup handler. |
|
CookSwing(VarLookup varLookup,
ClassLoader classLoader)
create a cookswing with a variable lookup handler. |
Method Summary | |
Container |
getRootContainer()
another short cut for getting the root object of the xml document and do type casting at the same time. |
static DocumentBuilder |
getSwingDocumentBuilder()
Get the default DocumentBuilder for creating a CookSwing object. |
static InheritableTagLibrary |
getSwingTagLibrary()
Get the system wide swing tag library. |
Container |
render(Object input)
just a short cut to call xmlDecode to avoid type casting. |
static void |
setSwingDocumentBuilder(DocumentBuilder docBuilder)
Set the default DocumentBuilder used for creating a CookSwing object. |
static void |
setSwingTagLibrary(InheritableTagLibrary tagLibrary)
If you don't like the current swingTabLibrary, 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CookSwing()
public CookSwing(VarLookup varLookup)
varLookup
- the handler for handling variable lookuppublic CookSwing(Object varObj)
varObj
- the object in which all variable names are looked up.public CookSwing(VarLookup varLookup, ClassLoader classLoader)
varLookup
- the handler for handling variable lookupclassLoader
- the ClassLoader used to locate resources.public CookSwing(Object varObj, ClassLoader classLoader)
varObj
- the object in which all variable names are looked up.classLoader
- the ClassLoader used to locate resources.Method Detail |
public static void setSwingTagLibrary(InheritableTagLibrary tagLibrary)
tagLibrary
- the tag library to be setpublic static InheritableTagLibrary getSwingTagLibrary()
public static DocumentBuilder getSwingDocumentBuilder()
public static void setSwingDocumentBuilder(DocumentBuilder docBuilder)
docBuilder
- the document builder for XML documents.public static void setSystemResourceBundle(ResourceBundle bundle)
bundle
- the resource bundle to be used.public Container render(Object input)
input
- document input source
public Container getRootContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |