Class TextElement
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 Summary
Fields Modifier and Type Field Description protected FontStylefontStyleprotected floatlineHeightprotected Spacingpaddingprotected TextAlignmenttextAlignmentprotected booleanwrapLinesFields inherited from class org.teamapps.ux.component.template.gridtemplate.AbstractTemplateElement
backgroundColor, colSpan, column, dataKey, horizontalAlignment, margin, row, rowSpan, verticalAlignment -
Constructor Summary
Constructors Constructor Description TextElement(java.lang.String dataKey)TextElement(java.lang.String dataKey, int row, int column)TextElement(java.lang.String dataKey, int row, int column, int rowSpan, int colSpan)TextElement(java.lang.String dataKey, int row, int column, int rowSpan, int colSpan, HorizontalElementAlignment horizontalAlignment, VerticalElementAlignment verticalAlignment) -
Method Summary
Modifier and Type Method Description org.teamapps.dto.AbstractUiTemplateElementcreateUiTemplateElement()FontStylegetFontStyle()floatgetLineHeight()SpacinggetPadding()TextAlignmentgetTextAlignment()booleanisWrapLines()protected voidmapTextElementAttributesToUiElement(org.teamapps.dto.UiTextElement uiTextElement)TextElementsetFontStyle(float relativeFontSize)TextElementsetFontStyle(float relativeFontSize, org.teamapps.common.format.Color fontColor)TextElementsetFontStyle(FontStyle fontStyle)TextElementsetLineHeight(float lineHeight)TextElementsetPadding(Spacing padding)TextElementsetTextAlignment(TextAlignment textAlignment)TextElementsetWrapLines(boolean wrapLines)Methods inherited from class org.teamapps.ux.component.template.gridtemplate.AbstractTemplateElement
getBackgroundColor, getColSpan, getColumn, getDataKey, getDataKeys, getHorizontalAlignment, getMargin, getRow, getRowSpan, getVerticalAlignment, mapAbstractTemplateElementAttributesToUiElement, setBackgroundColor, setColSpan, setColumn, setDataKey, setHorizontalAlignment, setMargin, setRow, setRowSpan, setVerticalAlignmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
fontStyle
-
lineHeight
protected float lineHeight -
wrapLines
protected boolean wrapLines -
padding
-
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:
createUiTemplateElementin classAbstractTemplateElement<TextElement>
-
mapTextElementAttributesToUiElement
protected void mapTextElementAttributesToUiElement(org.teamapps.dto.UiTextElement uiTextElement) -
setFontStyle
-
setFontStyle
-
setFontStyle
public TextElement setFontStyle(float relativeFontSize, org.teamapps.common.format.Color fontColor) -
setLineHeight
-
setWrapLines
-
setPadding
-
getFontStyle
-
getLineHeight
public float getLineHeight() -
isWrapLines
public boolean isWrapLines() -
getPadding
-
getTextAlignment
-
setTextAlignment
-