org.oddjob.designer.model
Class ElementField

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

public class ElementField
extends java.lang.Object
implements DesignDefinition

Groups a DesignElement and it's title.


Constructor Summary
ElementField(java.lang.String title, DesignAttribute el)
           
 
Method Summary
 void accept(DesignProcessor processor)
          Visitor pattern.
 DesignAttribute getDesignElement()
           
 java.lang.String getTitle()
          The title will either be the title for a field or the title round a group or the title on a dialog depending on how the visual component is presented.
 boolean isPopulated()
          Does this contain any data of any sort.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementField

public ElementField(java.lang.String title,
                    DesignAttribute el)
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: DesignDefinition
The title will either be the title for a field or the title round a group or the title on a dialog depending on how the visual component is presented.

Specified by:
getTitle in interface DesignDefinition
Returns:
The title.

getDesignElement

public DesignAttribute getDesignElement()

isPopulated

public boolean isPopulated()
Does this contain any data of any sort. Used in selection dialogs to see if a group containing this element should be selected.

Specified by:
isPopulated in interface DesignDefinition
Returns:
true if the model has some data, false if it doesn't.

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.