org.wicketstuff.simile.timeline.model.JsonConstructor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simile-timeline Show documentation
Show all versions of simile-timeline Show documentation
Simile Timeline widget for Wicket
package org.wicketstuff.simile.timeline.model;
import net.sf.json.JSONObject;
/**
* 'model class' that will be converted into a call of a constructor
* using 'object' as parameter when converted by {@link JSONObject}.fromObject
*
* @author arnouten
*
* @param
*/
public class JsonConstructor {
private String name;
private T object;
public JsonConstructor(String name, T object)
{
this.object = object;
this.name = name;
}
public T getObject() {
return object;
}
public String getName()
{
return name;
}
}