info.magnolia.module.googlesitemap.app.field.transformer
Class SiteMapTransformer<T>

java.lang.Object
  extended by info.magnolia.ui.form.field.transformer.basic.BasicTransformer<T>
      extended by info.magnolia.module.googlesitemap.app.field.transformer.SiteMapTransformer<T>
Type Parameters:
T -
All Implemented Interfaces:
info.magnolia.ui.api.i18n.I18NAwareHandler, info.magnolia.ui.form.field.transformer.Transformer<T>

public class SiteMapTransformer<T>
extends info.magnolia.ui.form.field.transformer.basic.BasicTransformer<T>

SiteMap specific implementation of BasicTransformer.
Always display the field default value (defined in SiteMapService) if the related field property has an empty value.
Used to define default value for:
- googleSitemapChangefreq - googleSitemapPriority


Field Summary
 
Fields inherited from class info.magnolia.ui.form.field.transformer.basic.BasicTransformer
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
 
Constructor Summary
SiteMapTransformer(com.vaadin.data.Item relatedFormItem, info.magnolia.ui.form.field.definition.ConfiguredFieldDefinition definition, Class<T> type)
           
 
Method Summary
protected
<T> com.vaadin.data.Property<T>
getOrCreateProperty(Class<T> type)
           
 
Methods inherited from class info.magnolia.ui.form.field.transformer.basic.BasicTransformer
definePropertyName, getBasePropertyName, getLocale, getType, hasI18NSupport, readFromItem, setI18NPropertyName, setLocale, setType, writeToItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteMapTransformer

public SiteMapTransformer(com.vaadin.data.Item relatedFormItem,
                          info.magnolia.ui.form.field.definition.ConfiguredFieldDefinition definition,
                          Class<T> type)
Method Detail

getOrCreateProperty

protected <T> com.vaadin.data.Property<T> getOrCreateProperty(Class<T> type)
Overrides:
getOrCreateProperty in class info.magnolia.ui.form.field.transformer.basic.BasicTransformer<T>


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.