This project has retired. For details please refer to its
Attic page .
AbstractDatatypeWidgetDefinition (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.woody.formmodel
Class AbstractDatatypeWidgetDefinition
java.lang.Object
org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
org.apache.cocoon.woody.formmodel.AbstractDatatypeWidgetDefinition
All Implemented Interfaces: Serviceable , WidgetDefinition
Direct Known Subclasses: FieldDefinition , OutputDefinition
public abstract class AbstractDatatypeWidgetDefinition extends AbstractWidgetDefinition implements Serviceable
Base class for WidgetDefinitions that use a Datatype and SelectionList.
Version:
$Id: AbstractDatatypeWidgetDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
addValidator , generateDisplayData , generateDisplayData , generateLabel , getFormDefinition , getId , getLocation , getParent , setDisplayData , setId , setLocation , setParent , validate
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
AbstractDatatypeWidgetDefinition
public AbstractDatatypeWidgetDefinition ()
service
public void service (ServiceManager manager)
throws ServiceException
Specified by: service
in interface Serviceable
Throws:
ServiceException
getDatatype
public Datatype getDatatype ()
setDatatype
public void setDatatype (Datatype datatype)
setSelectionList
public void setSelectionList (SelectionList selectionList)
getSelectionList
public SelectionList getSelectionList ()
buildSelectionList
public SelectionList buildSelectionList (String uri)
Builds a dynamic selection list from a source. This is a helper method for widget instances whose selection
list source has to be changed dynamically, and it does not modify this definition's selection list,
if any.
Parameters: uri
- The URI of the source.
buildSelectionListFromModel
public SelectionList buildSelectionListFromModel (Object model,
String valuePath,
String labelPath)
Builds a dynamic selection list from an in-memory collection.
This is a helper method for widget instances whose selection
list has to be changed dynamically, and it does not modify this definition's selection list,
if any.
Parameters: model
- The collection used as a model for the selection list.valuePath
- An XPath expression referring to the attribute used
to populate the values of the list's items.labelPath
- An XPath expression referring to the attribute used
to populate the labels of the list's items.See Also: Field.setSelectionList(Object model, String valuePath, String labelPath)
addValueChangedListener
public void addValueChangedListener (ValueChangedListener listener)
fireValueChangedEvent
public void fireValueChangedEvent (ValueChangedEvent event)
hasValueChangedListeners
public boolean hasValueChangedListeners ()
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.