info.magnolia.ui.form.field.definition
Class SelectFieldOptionDefinitionKeyGenerator

java.lang.Object
  extended by info.magnolia.i18nsystem.AbstractI18nKeyGenerator<T>
      extended by info.magnolia.ui.form.definition.AbstractFormKeyGenerator<SelectFieldOptionDefinition>
          extended by info.magnolia.ui.form.field.definition.SelectFieldOptionDefinitionKeyGenerator
All Implemented Interfaces:
info.magnolia.i18nsystem.I18nKeyGenerator<SelectFieldOptionDefinition>

public class SelectFieldOptionDefinitionKeyGenerator
extends AbstractFormKeyGenerator<SelectFieldOptionDefinition>

Key generator for SelectFieldOptionDefinition. Uses the FieldDefinitionKeyGenerator to generate the parent path down to the options group. Used by SwitchableFieldDefinition and SelectFieldDefinition, so using their common interface FieldDefinition for retrieving the parent I18nKeyGenerator. Assuming there is getOptions method defined.


Constructor Summary
SelectFieldOptionDefinitionKeyGenerator()
           
 
Method Summary
protected  void keysFor(List<String> keys, SelectFieldOptionDefinition definition, AnnotatedElement el)
           
 
Methods inherited from class info.magnolia.ui.form.definition.AbstractFormKeyGenerator
getParentId
 
Methods inherited from class info.magnolia.i18nsystem.AbstractI18nKeyGenerator
addKey, fieldOrGetterName, getAncestorKeyGenerators, getAncestors, getIdOrNameForUnknownRoot, getKeyGenerator, getParentViaCast, getRoot, getRootKeyGenerator, keyify, keysFor, messageBundleNameFor, resolveMessageBundleNameUpwards
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectFieldOptionDefinitionKeyGenerator

public SelectFieldOptionDefinitionKeyGenerator()
Method Detail

keysFor

protected void keysFor(List<String> keys,
                       SelectFieldOptionDefinition definition,
                       AnnotatedElement el)
Specified by:
keysFor in class info.magnolia.i18nsystem.AbstractI18nKeyGenerator<SelectFieldOptionDefinition>


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