java.lang.Object
org.teamapps.ux.component.template.gridtemplate.AbstractTemplateElement<TextElement>
org.teamapps.ux.component.template.gridtemplate.TextElement
Direct Known Subclasses:
BadgeElement

public class TextElement
extends AbstractTemplateElement<TextElement>
  • Field Details

    • fontStyle

      protected FontStyle fontStyle
    • lineHeight

      protected float lineHeight
    • wrapLines

      protected boolean wrapLines
    • padding

      protected Spacing padding
    • textAlignment

      protected TextAlignment textAlignment
  • Constructor Details

    • TextElement

      public TextElement​(java.lang.String dataKey)
    • TextElement

      public TextElement​(java.lang.String dataKey, int row, int column)
    • TextElement

      public TextElement​(java.lang.String dataKey, int row, int column, int rowSpan, int colSpan)
    • TextElement

      public TextElement​(java.lang.String dataKey, int row, int column, int rowSpan, int colSpan, HorizontalElementAlignment horizontalAlignment, VerticalElementAlignment verticalAlignment)
  • Method Details

    • createUiTemplateElement

      public org.teamapps.dto.AbstractUiTemplateElement createUiTemplateElement()
      Specified by:
      createUiTemplateElement in class AbstractTemplateElement<TextElement>
    • mapTextElementAttributesToUiElement

      protected void mapTextElementAttributesToUiElement​(org.teamapps.dto.UiTextElement uiTextElement)
    • setFontStyle

      public TextElement setFontStyle​(FontStyle fontStyle)
    • setFontStyle

      public TextElement setFontStyle​(float relativeFontSize)
    • setFontStyle

      public TextElement setFontStyle​(float relativeFontSize, org.teamapps.common.format.Color fontColor)
    • setLineHeight

      public TextElement setLineHeight​(float lineHeight)
    • setWrapLines

      public TextElement setWrapLines​(boolean wrapLines)
    • setPadding

      public TextElement setPadding​(Spacing padding)
    • getFontStyle

      public FontStyle getFontStyle()
    • getLineHeight

      public float getLineHeight()
    • isWrapLines

      public boolean isWrapLines()
    • getPadding

      public Spacing getPadding()
    • getTextAlignment

      public TextAlignment getTextAlignment()
    • setTextAlignment

      public TextElement setTextAlignment​(TextAlignment textAlignment)