Class ModelPreviewRows

java.lang.Object
io.jmix.dynmodelaiflowui.view.model.ModelPreviewRows

public class ModelPreviewRows extends Object
Read-only rows shared by saved snapshots and the current editor preview.
  • Constructor Details

    • ModelPreviewRows

      public ModelPreviewRows(MessageBundle messageBundle)
  • Method Details

    • countBadge

      public static com.vaadin.flow.component.html.Span countBadge(int count)
    • emptyState

      public static com.vaadin.flow.component.html.Div emptyState(String caption)
    • entityRow

      public com.vaadin.flow.component.html.Span entityRow(DraftPreview preview)
    • sectionRow

      public com.vaadin.flow.component.html.Span sectionRow(String section)
    • attributeRow

      public com.vaadin.flow.component.html.Span attributeRow(DraftPreview.Attribute attribute)
    • translationsTooltip

      public static void translationsTooltip(com.vaadin.flow.component.Component target, String name, @Nullable Map<String,String> translations)
      Shows the technical name and the caption in every language on hover; one text for all languages is the visible caption and is not repeated.
    • attributeType

      public static String attributeType(MessageBundle messageBundle, String type)
    • viewRow

      public com.vaadin.flow.component.html.Span viewRow(DraftPreview.View view)
    • displayName

      public String displayName(String caption, @Nullable String name)