Skip to content

Instantly share code, notes, and snippets.

View aliakhtar's full-sized avatar

Ali Akhtar aliakhtar

View GitHub Profile
#~/bin/bash
#Installs Cassandra. Instructions from https://gist.github.com/hengxin/8e5040d7a8b354b1c82e and http://www.datastax.com/documentation/cassandra/2.0/cassandra/install/installDeb_t.html
cd ~/
sudo mkdir /usr/lib/jvm
curl -O -J -L -H "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-x64.tar.gz
public class CrudEditor<M extends ModelDTO> extends Composite
implements EditsItem<M>
{
private RendererProvider rendererFactory = new CrudFieldRenderer();
//Cannot use FormField<?> here as it gives an error when trying to add values to the map.
// Using LinkedHashMap for preserving order of insertion and rendering.
private final Map<String, Renders> renderMap
= new LinkedHashMap<>();