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>,Template
public enum BaseTemplate extends java.lang.Enum<BaseTemplate> implements Template
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TemplatecreateFormButtonTemplate(int iconSize, float relativeFontSize)static TemplatecreateListStyleIconTwoLinesBadgeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, int spacing)static TemplatecreateListStyleIconTwoLinesBadgeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, int spacing, boolean wrapLines)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)static TemplatecreateTreeSingleLineNodeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, boolean wrapLines)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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.teamapps.ux.component.template.Template
createDarkThemeTemplate
-
-
-
-
Enum Constant Detail
-
TOOL_BUTTON
public static final BaseTemplate TOOL_BUTTON
-
TOOLBAR_BUTTON
public static final BaseTemplate TOOLBAR_BUTTON
-
TOOLBAR_BUTTON_SMALL
public static final BaseTemplate TOOLBAR_BUTTON_SMALL
-
TOOLBAR_BUTTON_TINY
public static final BaseTemplate TOOLBAR_BUTTON_TINY
-
TOOLBAR_MENU_GROUP_HEADER
public static final BaseTemplate TOOLBAR_MENU_GROUP_HEADER
-
TOOLBAR_MENU_BIG_BUTTON
public static final BaseTemplate TOOLBAR_MENU_BIG_BUTTON
-
ITEM_VIEW_ITEM
public static final BaseTemplate ITEM_VIEW_ITEM
-
APPLICATION_LISTING
public static final BaseTemplate APPLICATION_LISTING
-
FILE_ITEM_FLOATING
public static final BaseTemplate FILE_ITEM_FLOATING
-
FILE_ITEM_LIST
public static final BaseTemplate FILE_ITEM_LIST
-
LIST_ITEM_SMALL_ICON_SINGLE_LINE
public static final BaseTemplate LIST_ITEM_SMALL_ICON_SINGLE_LINE
-
LIST_ITEM_MEDIUM_ICON_SINGLE_LINE
public static final BaseTemplate LIST_ITEM_MEDIUM_ICON_SINGLE_LINE
-
LIST_ITEM_LARGE_ICON_SINGLE_LINE
public static final BaseTemplate LIST_ITEM_LARGE_ICON_SINGLE_LINE
-
LIST_ITEM_EXTRA_VERY_LARGE_ICON_TWO_LINES
public static final BaseTemplate LIST_ITEM_EXTRA_VERY_LARGE_ICON_TWO_LINES
-
LIST_ITEM_VERY_LARGE_ICON_TWO_LINES
public static final BaseTemplate LIST_ITEM_VERY_LARGE_ICON_TWO_LINES
-
LIST_ITEM_LARGE_ICON_TWO_LINES
public static final BaseTemplate LIST_ITEM_LARGE_ICON_TWO_LINES
-
LIST_ITEM_MEDIUM_ICON_TWO_LINES
public static final BaseTemplate LIST_ITEM_MEDIUM_ICON_TWO_LINES
-
MENU_ITEM
public static final BaseTemplate MENU_ITEM
-
FORM_SECTION_HEADER
public static final BaseTemplate FORM_SECTION_HEADER
-
BUTTON
public static final BaseTemplate BUTTON
-
BUTTON_LARGE
public static final BaseTemplate BUTTON_LARGE
-
BUTTON_XLARGE
public static final BaseTemplate BUTTON_XLARGE
-
NOTIFICATION_ICON_CAPTION
public static final BaseTemplate NOTIFICATION_ICON_CAPTION
-
NOTIFICATION_ICON_CAPTION_DESCRIPTION
public static final BaseTemplate NOTIFICATION_ICON_CAPTION_DESCRIPTION
-
NAVIGATION_BAR_ICON_ONLY
public static final BaseTemplate NAVIGATION_BAR_ICON_ONLY
-
-
Field Detail
-
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 Detail
-
values
public static BaseTemplate[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BaseTemplate c : BaseTemplate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseTemplate valueOf(java.lang.String name)
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)
-
createListStyleIconTwoLinesBadgeTemplate
public static Template createListStyleIconTwoLinesBadgeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, int spacing, boolean wrapLines)
-
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)
-
createTreeSingleLineNodeTemplate
public static Template createTreeSingleLineNodeTemplate(int iconSize, VerticalElementAlignment verticalIconAlignment, int maxHeight, boolean wrapLines)
-
createFormButtonTemplate
public static Template createFormButtonTemplate(int iconSize, float relativeFontSize)
-
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
public Template getTemplate()
-
-