Class TextElement
java.lang.Object
org.teamapps.ux.component.template.gridtemplate.AbstractTemplateElement<TextElement>
org.teamapps.ux.component.template.gridtemplate.TextElement
- Direct Known Subclasses:
BadgeElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FontStyleprotected floatprotected Spacingprotected TextAlignmentprotected booleanFields inherited from class org.teamapps.ux.component.template.gridtemplate.AbstractTemplateElement
backgroundColor, colSpan, column, horizontalAlignment, margin, propertyName, row, rowSpan, verticalAlignment -
Constructor Summary
ConstructorsConstructorDescriptionTextElement(String propertyName) TextElement(String propertyName, int row, int column) TextElement(String propertyName, int row, int column, int rowSpan, int colSpan) TextElement(String propertyName, int row, int column, int rowSpan, int colSpan, HorizontalElementAlignment horizontalAlignment, VerticalElementAlignment verticalAlignment) -
Method Summary
Modifier and TypeMethodDescriptionfloatbooleanprotected voidmapTextElementAttributesToUiElement(UiTextElement uiTextElement) setFontStyle(float relativeFontSize) setFontStyle(float relativeFontSize, Color fontColor) setFontStyle(FontStyle fontStyle) setLineHeight(float lineHeight) setPadding(Spacing padding) setTextAlignment(TextAlignment textAlignment) setWrapLines(boolean wrapLines) Methods inherited from class org.teamapps.ux.component.template.gridtemplate.AbstractTemplateElement
getBackgroundColor, getColSpan, getColumn, getHorizontalAlignment, getMargin, getPropertyNames, getRow, getRowSpan, getVerticalAlignment, mapAbstractTemplateElementAttributesToUiElement, setBackgroundColor, setColSpan, setColumn, setHorizontalAlignment, setMargin, setPropertyName, setRow, setRowSpan, setVerticalAlignment
-
Field Details
-
fontStyle
-
lineHeight
protected float lineHeight -
wrapLines
protected boolean wrapLines -
padding
-
textAlignment
-
-
Constructor Details
-
TextElement
-
TextElement
-
TextElement
-
TextElement
public TextElement(String propertyName, int row, int column, int rowSpan, int colSpan, HorizontalElementAlignment horizontalAlignment, VerticalElementAlignment verticalAlignment)
-
-
Method Details
-
createUiTemplateElement
- Specified by:
createUiTemplateElementin classAbstractTemplateElement<TextElement>
-
mapTextElementAttributesToUiElement
-
getProperty
-
setFontStyle
-
setFontStyle
-
setFontStyle
-
setLineHeight
-
setWrapLines
-
setPadding
-
getFontStyle
-
getLineHeight
public float getLineHeight() -
isWrapLines
public boolean isWrapLines() -
getPadding
-
getTextAlignment
-
setTextAlignment
-