ch.elca.el4j.services.gui.swing.cookswing.binding
Class AbstractBindingCreator
java.lang.Object
ch.elca.el4j.services.gui.swing.cookswing.binding.AbstractBindingCreator
- All Implemented Interfaces:
- cookxml.core.interfaces.Creator
- Direct Known Subclasses:
- BindingCreator, ColumnBindingCreator, ComboBoxBindingCreator, ListBindingCreator, TableBindingCreator
public abstract class AbstractBindingCreator
- extends Object
- implements cookxml.core.interfaces.Creator
This class provides basic functionality for cookXML binding creators.
- Author:
- Stefan Wismer (SWI)
- File-location:
- AbstractBindingCreator
- Last check-in date:
- 2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cookxml.core.interfaces.Creator |
create |
PROPERTY
protected static final String PROPERTY
- See Also:
- Constant Field Values
VALIDATION
protected static final String VALIDATION
- See Also:
- Constant Field Values
UPDATE_STRATEGY
protected static final String UPDATE_STRATEGY
- See Also:
- Constant Field Values
AbstractBindingCreator
public AbstractBindingCreator()
getUpdateStrategy
protected org.jdesktop.beansbinding.AutoBinding.UpdateStrategy getUpdateStrategy(Element elm)
- Parameters:
elm
- the current XML element
- Returns:
- the updateStrategy attribute
getSource
protected Object getSource(cookxml.core.DecodeEngine decodeEngine,
Element elm)
- Parameters:
decodeEngine
- the cookXML decodeEngineelm
- the current XML element
- Returns:
- the source object to bind
getValidate
protected boolean getValidate(Element elm)
- Parameters:
elm
- the current XML element
- Returns:
true
if values should be validated
addBinding
protected void addBinding(cookxml.core.DecodeEngine decodeEngine,
org.jdesktop.beansbinding.AutoBinding binding)
- Adds binding to the class associated with this XML GUI description.
- Parameters:
decodeEngine
- the cookXML decodeEnginebinding
- the beans binding to add
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
Copyright © 2005-2011 ELCA. All Rights Reserved.