Package com.helger.pdflayout.spec
Enum EValueUOMType
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EValueUOMType>,java.lang.constant.Constable
public enum EValueUOMType
extends Enum<EValueUOMType>
implements com.helger.commons.id.IHasID<String>
Defines the type of width unit of measure used.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbsolute value providedAutomatic scalingPercentage value provided'*' value provided -
Method Summary
Modifier and TypeMethodDescriptionstatic EValueUOMTypegetFromIDOrNull(String sID) getID()booleanbooleanstatic EValueUOMTypeReturns the enum constant of this type with the specified name.static EValueUOMType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE
Absolute value provided -
PERCENTAGE
Percentage value provided -
STAR
'*' value provided -
AUTO
Automatic scaling
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
isValueRequired
public boolean isValueRequired()- Returns:
trueif this unit of measure requires a value,falseif not.
-
isOuterElementDependent
public boolean isOuterElementDependent()- Returns:
trueif this unit of measure depends on the width of the surrounding element,falseif this unit of measure defines the width based on the content of this element.
-
getFromIDOrNull
-