Package com.saperion.ngc.iform.layout
Class AreaSize
- java.lang.Object
-
- com.saperion.ngc.iform.layout.AreaSize
-
public class AreaSize extends java.lang.ObjectRepresents the size of a sizable area in a pane-layout-form.
-
-
Constructor Summary
Constructors Constructor Description AreaSize(int id, java.lang.String size)Creates a new AreaSize.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasString()static AreaSizefromString(java.lang.String string)Createa an AreaSize instance by parsing the specified string.intgetId()java.lang.StringgetSize()static java.lang.StringmapToString(java.util.Map<java.lang.Integer,AreaSize> map)Converts a map with AreaSizes to a string.static java.util.Map<java.lang.Integer,AreaSize>stringToMap(java.lang.String string)Converts a string to a map of AreaSizes.
-
-
-
Method Detail
-
fromString
public static AreaSize fromString(java.lang.String string)
Createa an AreaSize instance by parsing the specified string.- Parameters:
string- string-representation of an AreaSize- Returns:
- mew AreaSize instance
-
asString
public java.lang.String asString()
- Returns:
- string-representation of this AreaSize
-
getId
public int getId()
- Returns:
- ID of the area
-
getSize
public java.lang.String getSize()
- Returns:
- size of the area (either height or width)
-
stringToMap
public static java.util.Map<java.lang.Integer,AreaSize> stringToMap(java.lang.String string)
Converts a string to a map of AreaSizes.- Parameters:
string- string to parse- Returns:
- map with AreaSizes. Never null.
-
mapToString
public static java.lang.String mapToString(java.util.Map<java.lang.Integer,AreaSize> map)
Converts a map with AreaSizes to a string.- Parameters:
map- the map to create the string for- Returns:
- string-representation of the AreaSizes in the map. Never null.
-
-