Class FormSpecParser

java.lang.Object
com.jgoodies.forms.layout.FormSpecParser

public final class FormSpecParser extends Object
Parses encoded column and row specifications. Returns ColumnSpec or RowSpec arrays if successful, and aims to provide useful information in case of a syntax error.
Version:
$Revision: 1.12 $
See Also:
  • Field Details

    • MULTIPLIER_PREFIX_PATTERN

      private static final Pattern MULTIPLIER_PREFIX_PATTERN
    • DIGIT_PATTERN

      private static final Pattern DIGIT_PATTERN
    • source

      private final String source
    • layoutMap

      private final LayoutMap layoutMap
  • Constructor Details

    • FormSpecParser

      private FormSpecParser(String source, String description, LayoutMap layoutMap, boolean horizontal)
      Constructs a parser for the given encoded column/row specification, the given LayoutMap, and orientation.
      Parameters:
      source - the raw encoded column or row specification as provided by the user
      description - describes the source, e.g. "column specification"
      layoutMap - maps layout variable names to ColumnSpec and RowSpec objects
      horizontal - true for columns, false for rows
      Throws:
      NullPointerException - if source or layoutMap is null
  • Method Details