Class AreaSize

java.lang.Object
com.saperion.ngc.iform.layout.AreaSize

public class AreaSize extends Object
Represents the size of a sizable area in a pane-layout-form.
  • Constructor Details

    • AreaSize

      public AreaSize(int id, String size)
      Creates a new AreaSize.
      Parameters:
      id - the ID of the ares
      size - the size of the area. This is either height or width, depending on the type of the area.
  • Method Details

    • fromString

      public static AreaSize fromString(String string)
      Createa an AreaSize instance by parsing the specified string.
      Parameters:
      string - string-representation of an AreaSize
      Returns:
      mew AreaSize instance
    • asString

      public String asString()
      Returns:
      string-representation of this AreaSize
    • getId

      public int getId()
      Returns:
      ID of the area
    • getSize

      public String getSize()
      Returns:
      size of the area (either height or width)
    • stringToMap

      public static Map<Integer,AreaSize> stringToMap(String string)
      Converts a string to a map of AreaSizes.
      Parameters:
      string - string to parse
      Returns:
      map with AreaSizes. Never null.
    • mapToString

      public static String mapToString(Map<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.