Interface LayoutComponentFactory<PK>


public interface LayoutComponentFactory<PK>
  • Method Details

    • newInstance

      LayoutComponent<PK> newInstance(LayoutComponentContext context)
      creates new instances
      Parameters:
      context - layout component context LayoutComponentContext
      Returns:
    • getName

      String getName()
      Returns:
      name shown in layout editor palette
    • getIcon

      Icon getIcon()
      Returns:
      icon shown in layout editor palette
    • getDefaulAlignment

      Alignment getDefaulAlignment()
      is used by layout editor
      Returns:
      the default alignment for this component null uses fallback new Alignment(AlignmentH.FULL, AlignmentV.CENTER)
    • getDefaultPropertyValue

      Object getDefaultPropertyValue(String property)
      is used by layout editor
      Returns:
      the default for a property null is allowed