net.infonode.properties.types

Class AlignmentProperty

public class AlignmentProperty extends EnumProperty

A property of type Alignment.

Version: $Revision: 1.6 $

Author: $Author: jesper $

Constructor Summary
AlignmentProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler, Alignment[] validValues)
Constructor.
Method Summary
Alignmentget(Object valueContainer)
Returns the alignment value of this property in a value container.
voidset(Object valueContainer, Alignment alignment)
Sets the alignment value of this property in a value container.

Constructor Detail

AlignmentProperty

public AlignmentProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler, Alignment[] validValues)
Constructor.

Parameters: group the property group name the property name description the property description valueHandler handles values for this property validValues valid values for this property

Method Detail

get

public Alignment get(Object valueContainer)
Returns the alignment value of this property in a value container.

Parameters: valueContainer the value container

Returns: the alignment value of this property

set

public void set(Object valueContainer, Alignment alignment)
Sets the alignment value of this property in a value container.

Parameters: valueContainer the value container alignment the alignment value