org.oddjob.arooa.design
Class SimpleTextAttribute

java.lang.Object
  extended by org.oddjob.arooa.design.SimpleTextAttribute
All Implemented Interfaces:
DesignAttributeProperty, DesignProperty
Direct Known Subclasses:
FileAttribute, ReferenceAttribute

public class SimpleTextAttribute
extends Object
implements DesignAttributeProperty

A DesignElement that is an attribute in an objects configuration.

Author:
Rob Gordon.

Constructor Summary
SimpleTextAttribute(String property, DesignInstance owner)
          Constructor.
 
Method Summary
 String attribute()
          Get the attribute text.
 void attribute(String value)
          Set the attribute text.
 boolean isPopulated()
          Used by the Field Selection View to work out which group to check box.
 String property()
          The name of the property.
 FormItem view()
          Provide the FormItem model that represents the view for the design of this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTextAttribute

public SimpleTextAttribute(String property,
                           DesignInstance owner)
Constructor.

Parameters:
property - The property name.
owner - The owning design. The element will be used to retrieve the initial attribute value.
Method Detail

property

public String property()
Description copied from interface: DesignProperty
The name of the property.

Specified by:
property in interface DesignProperty
Returns:
The name of the property. Never null.

attribute

public String attribute()
Description copied from interface: DesignAttributeProperty
Get the attribute text.

Specified by:
attribute in interface DesignAttributeProperty
Returns:
The attribute text. Can be null.

attribute

public void attribute(String value)
Description copied from interface: DesignAttributeProperty
Set the attribute text.

Specified by:
attribute in interface DesignAttributeProperty
Parameters:
value - The attribute. May be null.

view

public FormItem view()
Description copied from interface: DesignProperty
Provide the FormItem model that represents the view for the design of this property.

Specified by:
view in interface DesignProperty
Returns:
The FormItem. Never null.

isPopulated

public boolean isPopulated()
Description copied from interface: DesignProperty
Used by the Field Selection View to work out which group to check box.

Specified by:
isPopulated in interface DesignProperty
Returns: