|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.magnolia.ui.form.AbstractFormItem
info.magnolia.ui.form.field.factory.AbstractFieldFactory<D,Object>
info.magnolia.ui.form.field.factory.SelectFieldFactory<D>
D
- type of definitionpublic class SelectFieldFactory<D extends SelectFieldDefinition>
Creates and initializes a selection field based on a field definition.
Field Summary | |
---|---|
protected com.vaadin.ui.AbstractSelect |
select
|
Fields inherited from class info.magnolia.ui.form.field.factory.AbstractFieldFactory |
---|
definition, field, item |
Constructor Summary | |
---|---|
SelectFieldFactory(D definition,
com.vaadin.data.Item relatedFieldItem)
|
Method Summary | |
---|---|
protected Object |
createDefaultValue(com.vaadin.data.Property<?> dataSource)
Set the value selected. |
protected com.vaadin.ui.AbstractSelect |
createFieldComponent()
Implemented by subclasses to create and initialize the Vaadin Field instance to use. |
protected org.apache.jackrabbit.commons.predicate.Predicate |
createRemoteOptionFilterPredicate()
|
protected com.vaadin.ui.AbstractSelect |
createSelectionField()
Used to initialize the desired subclass of AbstractSelect field component. |
protected Class<?> |
getDefinitionType()
|
com.vaadin.server.Resource |
getIconResource(SelectFieldOptionDefinition option)
Default Implementation to retrieve an Icon. |
protected String |
getRemoteOptionsName(javax.jcr.Node option,
String propertyName)
Get the specific node property. |
protected String |
getRemoteOptionsValue(javax.jcr.Node option,
String propertyName)
Get the specific node property. |
List<SelectFieldOptionDefinition> |
getSelectFieldOptionDefinition()
Get the list of SelectFieldOptionDefinition. |
void |
setPropertyDataSourceAndDefaultValue(com.vaadin.data.Property<?> property)
Make sure to set defaultValue whenever value is null and nullSelectionAllowed is false, i.e. |
Methods inherited from class info.magnolia.ui.form.field.factory.AbstractFieldFactory |
---|
createField, getDefaultFieldType, getFieldDefinition, getFieldType, getI18nBasename, getView, initializeConverter, initializeTransformer, setComponentProvider, setFieldValidatorFactoryFactory, setI18nContentSupport, setPropertyDataSourceDefaultValue |
Methods inherited from class info.magnolia.ui.form.AbstractFormItem |
---|
getMessage, getMessages, getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.ui.form.FormItem |
---|
getMessages, getParent, setParent |
Field Detail |
---|
protected com.vaadin.ui.AbstractSelect select
Constructor Detail |
---|
public SelectFieldFactory(D definition, com.vaadin.data.Item relatedFieldItem)
Method Detail |
---|
protected com.vaadin.ui.AbstractSelect createFieldComponent()
AbstractFieldFactory
createFieldComponent
in class AbstractFieldFactory<D extends SelectFieldDefinition,Object>
protected com.vaadin.ui.AbstractSelect createSelectionField()
public List<SelectFieldOptionDefinition> getSelectFieldOptionDefinition()
public com.vaadin.server.Resource getIconResource(SelectFieldOptionDefinition option)
public void setPropertyDataSourceAndDefaultValue(com.vaadin.data.Property<?> property)
setPropertyDataSourceAndDefaultValue
in class AbstractFieldFactory<D extends SelectFieldDefinition,Object>
protected Object createDefaultValue(com.vaadin.data.Property<?> dataSource)
createDefaultValue
in class AbstractFieldFactory<D extends SelectFieldDefinition,Object>
protected Class<?> getDefinitionType()
getDefinitionType
in class AbstractFieldFactory<D extends SelectFieldDefinition,Object>
protected org.apache.jackrabbit.commons.predicate.Predicate createRemoteOptionFilterPredicate()
Predicate
used to filter the remote children option nodes.protected String getRemoteOptionsName(javax.jcr.Node option, String propertyName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String getRemoteOptionsValue(javax.jcr.Node option, String propertyName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |