ch.elca.el4j.services.gui.swing.cookswing
Class CreateComponentCreator

java.lang.Object
  extended by ch.elca.el4j.services.gui.swing.cookswing.CreateComponentCreator
All Implemented Interfaces:
cookxml.core.interfaces.Creator

public class CreateComponentCreator
extends Object
implements cookxml.core.interfaces.Creator

The cookSwing creator for general purpose <create-component>s. The create-method is invoked when the XML tag is opened and the finish-method when the tag is closed.

Author:
Stefan Wismer (SWI)
File-location:
CreateComponentCreator
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Field Summary
protected static String CREATE_METHOD
          The XML attribute name for the create method.
protected static String FINISH_METHOD
          The XML attribute name for the finish method.
 
Constructor Summary
CreateComponentCreator()
           
 
Method Summary
 Object create(String parentNS, String parentTag, Element elm, Object parentObj, cookxml.core.DecodeEngine decodeEngine)
          
 Object editFinished(String parentNS, String parentTag, Element elm, Object parentObj, Object obj, cookxml.core.DecodeEngine decodeEngine)
          
protected  Object invokeMethod(Object form, String methodName, Object... parameters)
          Invoke a potentially private method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_METHOD

protected static final String CREATE_METHOD
The XML attribute name for the create method.

See Also:
Constant Field Values

FINISH_METHOD

protected static final String FINISH_METHOD
The XML attribute name for the finish method.

See Also:
Constant Field Values
Constructor Detail

CreateComponentCreator

public CreateComponentCreator()
Method Detail

create

public Object create(String parentNS,
                     String parentTag,
                     Element elm,
                     Object parentObj,
                     cookxml.core.DecodeEngine decodeEngine)
              throws cookxml.core.exception.CreatorException

Specified by:
create in interface cookxml.core.interfaces.Creator
Throws:
cookxml.core.exception.CreatorException

editFinished

public Object editFinished(String parentNS,
                           String parentTag,
                           Element elm,
                           Object parentObj,
                           Object obj,
                           cookxml.core.DecodeEngine decodeEngine)
                    throws cookxml.core.exception.CookXmlException

Specified by:
editFinished in interface cookxml.core.interfaces.Creator
Throws:
cookxml.core.exception.CookXmlException

invokeMethod

protected Object invokeMethod(Object form,
                              String methodName,
                              Object... parameters)
Invoke a potentially private method.

Parameters:
form - the form object
methodName - the method name
parameters - optional parameters
Returns:
the return value of the invoked method


Copyright © 2005-2011 ELCA. All Rights Reserved.