{
final PropertyDef pdef = property.definition();
if( pdef == IEvent.PROP_SUBJECT )
{
return new ValuePropertyBinding()
{
@Override
public String read()
{
return getBase().getSubject().text( false );
}
@Override
public void write( final String value )
{
getBase().setSubject( value );
}
};
}
else if( pdef == IEvent.PROP_LOCATION )
{
return new ValuePropertyBinding()
{
@Override
public String read()
{
return getBase().getLocation().text( false );
}
@Override
public void write( final String value )
{
getBase().setLocation( value );
}
};
}
else if( pdef == IEvent.PROP_NOTES )
{
return new ValuePropertyBinding()
{
@Override
public String read()
{
return getBase().getNotes().text( false );
}
@Override
public void write( final String value )
{
getBase().setNotes( value );
}
};
}
else if( pdef == IEvent.PROP_START_TIME )
{
return new ValuePropertyBinding()
{
@Override
public String read()
{
return getBase().getStartTime().text( false );
}
@Override
public void write( final String value )
{
getBase().setStartTime( value );
}
};
}
else if( pdef == IEvent.PROP_END_TIME )
{
return new ValuePropertyBinding()
{
@Override
public String read()
{
return getBase().getEndTime().text( false );