net.infonode.properties.types
Class AlignmentProperty

java.lang.Object
  extended by net.infonode.properties.util.AbstractProperty
      extended by net.infonode.properties.util.ValueHandlerProperty
          extended by net.infonode.properties.types.EnumProperty
              extended by net.infonode.properties.types.AlignmentProperty
All Implemented Interfaces:
Property

public class AlignmentProperty
extends EnumProperty

A property of type Alignment.

Version:
$Revision: 1.6 $
Author:
$Author: jesper $

Constructor Summary
AlignmentProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler, Alignment[] validValues)
          Constructor.
 
Method Summary
 Alignment get(java.lang.Object valueContainer)
          Returns the alignment value of this property in a value container.
 void set(java.lang.Object valueContainer, Alignment alignment)
          Sets the alignment value of this property in a value container.
 
Methods inherited from class net.infonode.properties.types.EnumProperty
getValidValues, getValue, setValue
 
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty
removeValue, valueIsRemovable, valueIsSet
 
Methods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlignmentProperty

public AlignmentProperty(PropertyGroup group,
                         java.lang.String name,
                         java.lang.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(java.lang.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(java.lang.Object valueContainer,
                Alignment alignment)
Sets the alignment value of this property in a value container.

Parameters:
valueContainer - the value container
alignment - the alignment value