Class I18nPropertyHeaderPrinter

java.lang.Object
org.vaadin.firitin.rad.I18nPropertyHeaderPrinter
All Implemented Interfaces:
PropertyHeaderPrinter

public class I18nPropertyHeaderPrinter extends Object implements PropertyHeaderPrinter
A PropertyHeaderPrinter that resolves field labels via a FormTranslationProvider. Performs two-tier key lookup:
  1. ClassName.propertyName (bean-specific)
  2. propertyName (generic/shared)
Returns null if neither key resolves, so the existing deCamelCased fallback kicks in.
  • Constructor Details

  • Method Details

    • printHeader

      public Object printHeader(PropertyContext ctx)
      Description copied from interface: PropertyHeaderPrinter
      Prints the header of the property. The header can be simple string or a more complex component.
      Specified by:
      printHeader in interface PropertyHeaderPrinter
      Parameters:
      ctx - the value context
      Returns:
      the component representing the property header or null if this printer does not know how to print the value