Class LabelValuePairRecordRewriter

java.lang.Object
com.vaadin.copilot.javarewriter.LabelValuePairRecordRewriter

public class LabelValuePairRecordRewriter extends Object
Class/Record definition related functions for Java Rewriter. This class generates a record to host label/value pairs for components that show simple data item

ListBox Checkbox RadioButton

  • Constructor Details

    • LabelValuePairRecordRewriter

      public LabelValuePairRecordRewriter(com.github.javaparser.ast.CompilationUnit compilationUnit)
  • Method Details

    • addOrGetLabelValueEnabledRecordName

      public String addOrGetLabelValueEnabledRecordName()
      Finds the Record Declaration from given complication unit that has Label, Value and Enabled parameters. Creates one with LabelAndValue name if not found.
      Returns:
      of the record name