Enum BaseTemplate
java.lang.Object
java.lang.Enum<BaseTemplate>
org.teamapps.ux.component.template.BaseTemplate
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseTemplate>,java.lang.constant.Constable,Template
public enum BaseTemplate extends java.lang.Enum<BaseTemplate> implements Template
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_BADGEstatic java.lang.StringPROPERTY_CAPTIONstatic java.lang.StringPROPERTY_CAPTION_ICONstatic java.lang.StringPROPERTY_DESCRIPTIONstatic java.lang.StringPROPERTY_ICONstatic java.lang.StringPROPERTY_IDstatic java.lang.StringPROPERTY_IMAGEstatic java.lang.StringPROPERTY_RIGHT_ICONstatic java.lang.StringPROPERTY_SUB_ICON1static java.lang.StringPROPERTY_SUB_ICON2static java.lang.StringPROPERTY_SUB_TEXT1static java.lang.StringPROPERTY_SUB_TEXT2 -
Method Summary
Modifier and Type Method Description static TemplatecreateFormButtonTemplate(int iconSize, float relativeFontSize)static TemplatecreateListStyleIconTwoLinesBadgeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, int spacing)static GridTemplatecreateTemplate(int minWidth, int maxWidth, int minHeight, int maxHeight, Spacing padding, int gridGap, boolean horizontalCenterAlignment, int mainIconSize, boolean mainIconAlignTop, org.teamapps.common.format.Color mainImageBorderColor, int captionIconSize, float captionSize, org.teamapps.common.format.Color captionColor, boolean wrapCaption, float badgeSize, org.teamapps.common.format.Color badgeTextColor, org.teamapps.common.format.Color badgeBackgroundColor, int rightIconSize, int subIcon1Size, float subText1Size, org.teamapps.common.format.Color subText1Color, int subIcon2Size, float subText2Size, org.teamapps.common.format.Color subText2Color, float descriptionTextSize, org.teamapps.common.format.Color descriptionTextColor)static java.util.Map<java.lang.String,Template>createTemplateMap(BaseTemplate... templates)static TemplatecreateTreeSingleLineNodeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight)org.teamapps.dto.UiTemplatecreateUiTemplate()java.util.List<java.lang.String>getDataKeys()TemplategetTemplate()static BaseTemplatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BaseTemplate[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.teamapps.ux.component.template.Template
createDarkThemeTemplate
-
Enum Constant Details
-
TOOL_BUTTON
-
TOOLBAR_BUTTON
-
TOOLBAR_BUTTON_SMALL
-
TOOLBAR_BUTTON_TINY
-
TOOLBAR_MENU_GROUP_HEADER
-
TOOLBAR_MENU_BIG_BUTTON
-
ITEM_VIEW_ITEM
-
APPLICATION_LISTING
-
FILE_ITEM_FLOATING
-
FILE_ITEM_LIST
-
LIST_ITEM_SMALL_ICON_SINGLE_LINE
-
LIST_ITEM_MEDIUM_ICON_SINGLE_LINE
-
LIST_ITEM_LARGE_ICON_SINGLE_LINE
-
LIST_ITEM_EXTRA_VERY_LARGE_ICON_TWO_LINES
-
LIST_ITEM_VERY_LARGE_ICON_TWO_LINES
-
LIST_ITEM_LARGE_ICON_TWO_LINES
-
LIST_ITEM_MEDIUM_ICON_TWO_LINES
-
MENU_ITEM
-
FORM_SECTION_HEADER
-
BUTTON
-
BUTTON_LARGE
-
BUTTON_XLARGE
-
NOTIFICATION_ICON_CAPTION
-
NOTIFICATION_ICON_CAPTION_DESCRIPTION
-
NAVIGATION_BAR_ICON_ONLY
-
-
Field Details
-
PROPERTY_ID
public static final java.lang.String PROPERTY_ID- See Also:
- Constant Field Values
-
PROPERTY_ICON
public static final java.lang.String PROPERTY_ICON- See Also:
- Constant Field Values
-
PROPERTY_IMAGE
public static final java.lang.String PROPERTY_IMAGE- See Also:
- Constant Field Values
-
PROPERTY_CAPTION
public static final java.lang.String PROPERTY_CAPTION- See Also:
- Constant Field Values
-
PROPERTY_DESCRIPTION
public static final java.lang.String PROPERTY_DESCRIPTION- See Also:
- Constant Field Values
-
PROPERTY_BADGE
public static final java.lang.String PROPERTY_BADGE- See Also:
- Constant Field Values
-
PROPERTY_CAPTION_ICON
public static final java.lang.String PROPERTY_CAPTION_ICON- See Also:
- Constant Field Values
-
PROPERTY_RIGHT_ICON
public static final java.lang.String PROPERTY_RIGHT_ICON- See Also:
- Constant Field Values
-
PROPERTY_SUB_TEXT1
public static final java.lang.String PROPERTY_SUB_TEXT1- See Also:
- Constant Field Values
-
PROPERTY_SUB_TEXT2
public static final java.lang.String PROPERTY_SUB_TEXT2- See Also:
- Constant Field Values
-
PROPERTY_SUB_ICON1
public static final java.lang.String PROPERTY_SUB_ICON1- See Also:
- Constant Field Values
-
PROPERTY_SUB_ICON2
public static final java.lang.String PROPERTY_SUB_ICON2- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
createTemplateMap
public static java.util.Map<java.lang.String,Template> createTemplateMap(BaseTemplate... templates) -
createListStyleIconTwoLinesBadgeTemplate
public static Template createListStyleIconTwoLinesBadgeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, int spacing) -
createTemplate
public static GridTemplate createTemplate(int minWidth, int maxWidth, int minHeight, int maxHeight, Spacing padding, int gridGap, boolean horizontalCenterAlignment, int mainIconSize, boolean mainIconAlignTop, org.teamapps.common.format.Color mainImageBorderColor, int captionIconSize, float captionSize, org.teamapps.common.format.Color captionColor, boolean wrapCaption, float badgeSize, org.teamapps.common.format.Color badgeTextColor, org.teamapps.common.format.Color badgeBackgroundColor, int rightIconSize, int subIcon1Size, float subText1Size, org.teamapps.common.format.Color subText1Color, int subIcon2Size, float subText2Size, org.teamapps.common.format.Color subText2Color, float descriptionTextSize, org.teamapps.common.format.Color descriptionTextColor) -
createTreeSingleLineNodeTemplate
public static Template createTreeSingleLineNodeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight) -
createFormButtonTemplate
-
createUiTemplate
public org.teamapps.dto.UiTemplate createUiTemplate()- Specified by:
createUiTemplatein interfaceTemplate
-
getDataKeys
public java.util.List<java.lang.String> getDataKeys()- Specified by:
getDataKeysin interfaceTemplate
-
getTemplate
-