org.oddjob.designer.model
Class FieldSelection

java.lang.Object
  extended byorg.oddjob.designer.model.GroupBase
      extended byorg.oddjob.designer.model.FieldSelection
All Implemented Interfaces:
DesignDefinition

public class FieldSelection
extends GroupBase
implements DesignDefinition

A DesignDefintion that is intended to be rendered as a selection between the child DesignDefinitions.

Author:
Rob Gordon.

Constructor Summary
FieldSelection()
          Constructor.
 
Method Summary
 void accept(DesignProcessor processor)
          Visitor pattern.
 FieldSelection add(DesignDefinition designDef)
          Add a child DesignDefinition.
 
Methods inherited from class org.oddjob.designer.model.GroupBase
addElement, get, getTitle, isPopulated, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.oddjob.designer.model.DesignDefinition
getTitle, isPopulated
 

Constructor Detail

FieldSelection

public FieldSelection()
Constructor. A FieldSelection can currently only appear inline so the title 'select' is only used for testing.

Method Detail

add

public FieldSelection add(DesignDefinition designDef)
Add a child DesignDefinition.

Parameters:
designDef - The child DesignDefinition.
Returns:
This.

accept

public void accept(DesignProcessor processor)
Description copied from interface: DesignDefinition
Visitor pattern. Implementations will call the appropriate method on the processor passing themselves as the argument.

Specified by:
accept in interface DesignDefinition
Parameters:
processor - A design processor which will typically produce visual components for the model.