cookxml.cookswing
Class CookSwingLib
java.lang.Object
cookxml.cookswing.CookSwingLib
- public class CookSwingLib
- extends Object
- Since:
- CookSwing 1.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CookSwingLib
public CookSwingLib()
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 setupcommonTagLibrary
- 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.