Package com.saperion.ngc.iform.layout
Class AreaSize
java.lang.Object
com.saperion.ngc.iform.layout.AreaSize
Represents the size of a sizable area in a pane-layout-form.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()
static AreaSize
fromString
(String string) Createa an AreaSize instance by parsing the specified string.int
getId()
getSize()
static String
mapToString
(Map<Integer, AreaSize> map) Converts a map with AreaSizes to a string.stringToMap
(String string) Converts a string to a map of AreaSizes.
-
Constructor Details
-
AreaSize
Creates a new AreaSize.- Parameters:
id
- the ID of the aressize
- the size of the area. This is either height or width, depending on the type of the area.
-
-
Method Details
-
fromString
Createa an AreaSize instance by parsing the specified string.- Parameters:
string
- string-representation of an AreaSize- Returns:
- mew AreaSize instance
-
asString
- Returns:
- string-representation of this AreaSize
-
getId
public int getId()- Returns:
- ID of the area
-
getSize
- Returns:
- size of the area (either height or width)
-
stringToMap
Converts a string to a map of AreaSizes.- Parameters:
string
- string to parse- Returns:
- map with AreaSizes. Never null.
-
mapToString
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.
-