private void parseAndInitValues(String encodedDescription){
  checkNotBlank(encodedDescription,"The encoded form specification must not be null, empty or whitespace.");
  String[] token=TOKEN_SEPARATOR_PATTERN.split(encodedDescription);
  checkArgument(token.length > 0,"The form spec must not be empty.");
  int nextIndex=0;
  String next=token[nextIndex++];
  DefaultAlignment alignment=DefaultAlignment.valueOf(next,isHorizontal());
  if (alignment != null) {
    setDefaultAlignment(alignment);
    checkArgument(token.length > 1,"The form spec must provide a size.");
    next=token[nextIndex++];
  }
  setSize(parseSize(next));
  if (nextIndex < token.length) {
    setResizeWeight(parseResizeWeight(token[nextIndex]));
  }
}

private void parseAndInitValues ( String encodedDescription ) { checkNotBlank ( encodedDescription , "The encoded form specification must not be null, empty or whitespace." ) ; String [ ] token = TOKEN_SEPARATOR_PATTERN . split ( encodedDescription ) ; checkArgument ( token . length > 0 , "The form spec must not be empty." ) ; int nextIndex = 0 ; String next = token [ nextIndex ++ ] ; DefaultAlignment alignment = DefaultAlignment . valueOf ( next , isHorizontal ( ) ) ; if ( alignment != null ) { setDefaultAlignment ( alignment ) ; checkArgument ( token . length > 1 , "The form spec must provide a size." ) ; next = token [ nextIndex ++ ] ; } setSize ( parseSize ( next ) ) ; if ( nextIndex < token . length ) { setResizeWeight ( parseResizeWeight ( token [ nextIndex ] ) ) ; } }
parses an encoded form specification and initializes all required fields . the encoded description must be in lower case .
