net.sf.doolin.gui.model
Class PropertyDataFactory<T>

java.lang.Object
  extended by net.sf.doolin.gui.model.PropertyDataFactory<T>
Type Parameters:
T - Type of the object to create
All Implemented Interfaces:
DataFactory<T>

public class PropertyDataFactory<T>
extends Object
implements DataFactory<T>

Gets a property from the context.

Author:
Damien Coraboeuf

Constructor Summary
PropertyDataFactory()
           
 
Method Summary
 T create(Object context)
          Creates an arbitrary object.
 String getPropertyPath()
          Property path to the value model
 void setPropertyPath(String propertyPath)
          Sets the property path to the value model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDataFactory

public PropertyDataFactory()
Method Detail

create

public T create(Object context)
Description copied from interface: DataFactory
Creates an arbitrary object.

Specified by:
create in interface DataFactory<T>
Parameters:
context - Context of creation
Returns:
Created object.

getPropertyPath

public String getPropertyPath()
Property path to the value model

Returns:
Property path to the value model

setPropertyPath

public void setPropertyPath(String propertyPath)
Sets the property path to the value model

Parameters:
propertyPath - Property path to the value model


Copyright © 2011. All Rights Reserved.