cookxml.cookswing
Class CookSwingLib

java.lang.Object
  extended bycookxml.cookswing.CookSwingLib

public class CookSwingLib
extends Object

Since:
CookSwing 1.5

Field Summary
static String ABSTRACT_BUTTON
           
static String COMPONENT
           
static String NAMESPACE
          this is the namespace for CookSwing tags
static String TEXTCOMPONENT
           
static String TEXTFIELD
           
static String WINDOW_GROUP
           
 
Constructor Summary
CookSwingLib()
           
 
Method Summary
static InheritableTagLibrary createTagLibrary(InheritableTagLibrary commonTagLibrary)
          This function creates the Swing tag library in http://cookxml.sf.net/cookswing/ namespace, with CookXml CommonLib tag library as its parent.
static void setupTags(InheritableTagLibrary tagLibrary, InheritableTagLibrary commonTagLibrary)
          Setup the Swing tag library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
this is the namespace for CookSwing tags

See Also:
Constant Field Values

WINDOW_GROUP

public static String WINDOW_GROUP

ABSTRACT_BUTTON

public static String ABSTRACT_BUTTON

COMPONENT

public static final String COMPONENT
See Also:
Constant Field Values

TEXTCOMPONENT

public static final String TEXTCOMPONENT
See Also:
Constant Field Values

TEXTFIELD

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

CookSwingLib

public CookSwingLib()
Method Detail

setupTags

public static void setupTags(InheritableTagLibrary tagLibrary,
                             InheritableTagLibrary commonTagLibrary)
                      throws CookXmlException
Setup the Swing tag library.

Call this function if you intend to setup the Swing tag library manually.

Parameters:
tagLibrary - the tag library to be setup
commonTagLibrary - the CookXml Common library to be setup. Some listener setters will be added.
Throws:
CookXmlException - exception is thrown if any errors occurred.

createTagLibrary

public static InheritableTagLibrary createTagLibrary(InheritableTagLibrary commonTagLibrary)
This function creates the Swing tag library in http://cookxml.sf.net/cookswing/ namespace, with CookXml CommonLib tag library as its parent. This is necessary because "component" tag inherits "listener" tag of CookXml CommonLib. This function also inserts some additional setters for commonTagLibrary.

Parameters:
commonTagLibrary - The CookXml CommonLib tag library.
Returns:
the created CookSwing tag library.