Enum CssProperty
- java.lang.Object
-
- java.lang.Enum<CssProperty>
-
- org.uberfire.ext.layout.editor.api.css.CssProperty
-
- All Implemented Interfaces:
Serializable,Comparable<CssProperty>
public enum CssProperty extends Enum<CssProperty>
A CSS property definition including what value types are supported and what is the list of allowed values available by default (if any).For example, the "color" property
supportedValueTypesisCssValueType.COLORand itsallowedValuesis the entire list ofCssColourentries.On the other hand, the "width" property
supportedValueTypesareCssValueType.LENGTHandCssValueType.PERCENTAGEand itsallowedValuesare "auto" or "inherit". That means the following values are all considered valid: "100px", "auto", "50%".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKGROUND_COLORCOLORFLOATFONT_SIZEFONT_WEIGHTHEIGHTMARGIN_BOTTOMMARGIN_LEFTMARGIN_RIGHTMARGIN_TOPPADDING_BOTTOMPADDING_LEFTPADDING_RIGHTPADDING_TOPTEXT_ALIGNTEXT_DECORATIONWIDTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CssPropertyget(String property)List<CssAllowedValue>getAllowedValues()StringgetName()List<CssValueType>getSupportedValueTypes()booleansupportsValueType(CssValueType type)static CssPropertyvalueOf(String name)Returns the enum constant of this type with the specified name.static CssProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WIDTH
public static final CssProperty WIDTH
-
HEIGHT
public static final CssProperty HEIGHT
-
BACKGROUND_COLOR
public static final CssProperty BACKGROUND_COLOR
-
MARGIN_TOP
public static final CssProperty MARGIN_TOP
-
MARGIN_BOTTOM
public static final CssProperty MARGIN_BOTTOM
-
MARGIN_LEFT
public static final CssProperty MARGIN_LEFT
-
MARGIN_RIGHT
public static final CssProperty MARGIN_RIGHT
-
PADDING_TOP
public static final CssProperty PADDING_TOP
-
PADDING_BOTTOM
public static final CssProperty PADDING_BOTTOM
-
PADDING_LEFT
public static final CssProperty PADDING_LEFT
-
PADDING_RIGHT
public static final CssProperty PADDING_RIGHT
-
FLOAT
public static final CssProperty FLOAT
-
TEXT_ALIGN
public static final CssProperty TEXT_ALIGN
-
TEXT_DECORATION
public static final CssProperty TEXT_DECORATION
-
COLOR
public static final CssProperty COLOR
-
FONT_SIZE
public static final CssProperty FONT_SIZE
-
FONT_WEIGHT
public static final CssProperty FONT_WEIGHT
-
-
Method Detail
-
values
public static CssProperty[] 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 (CssProperty c : CssProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssProperty valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
-
get
public static CssProperty get(String property)
-
getAllowedValues
public List<CssAllowedValue> getAllowedValues()
-
supportsValueType
public boolean supportsValueType(CssValueType type)
-
getSupportedValueTypes
public List<CssValueType> getSupportedValueTypes()
-
-