if( row == null )
{
ImageProvider imageProvider = null;
final ImageService imageService = element.service( ImageService.class );
if( imageService != null )
{
imageProvider = new ImageProvider()
{
private Listener imageServiceListener;
@Override
public ImageData image()
{
if( this.imageServiceListener == null )
{
this.imageServiceListener = new Listener()
{
@Override
public void handle( final Event event )
{
update( row() );
}
};
imageService.attach( this.imageServiceListener );
}
return imageService.image();
}
@Override
public void dispose()
{
if( this.imageServiceListener != null )
{
imageService.detach( this.imageServiceListener );
}
}
};
}
else if( getColumnCount() == 1 )