com.izforge.izpack.panels.userinput.field.rule
Class FieldLayout

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.rule.FieldLayout

public class FieldLayout
extends Object

Rule field layout.

Author:
Elmar Grom, Tim Anderson

Constructor Summary
FieldLayout(String layout)
          Constructs a FieldLayout.
 
Method Summary
 List<FieldSpec> getFieldSpecs()
          Returns the field specifications.
 List<Object> getLayout()
          Returns the layout items.
 ValidationStatus validate(String value)
          Validates a value against the layout, splitting it into the appropriate fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldLayout

public FieldLayout(String layout)
Constructs a FieldLayout.

Parameters:
layout - the layout specifier
Method Detail

getFieldSpecs

public List<FieldSpec> getFieldSpecs()
Returns the field specifications.

Returns:
the field specifications

getLayout

public List<Object> getLayout()
Returns the layout items.

Returns:
a mixture of field separator strings and FieldSpec instances.

validate

public ValidationStatus validate(String value)
Validates a value against the layout, splitting it into the appropriate fields.

Parameters:
value - the value
Returns:
the validation status


Copyright © 2018. All rights reserved.