2010-01-27 08:52:05 +01:00
|
|
|
package com.metaweb.gridlock.browsing.facets;
|
|
|
|
|
2010-01-27 23:27:22 +01:00
|
|
|
import java.util.LinkedList;
|
|
|
|
import java.util.List;
|
2010-01-27 08:52:05 +01:00
|
|
|
import java.util.Properties;
|
|
|
|
|
2010-01-27 23:27:22 +01:00
|
|
|
import org.json.JSONArray;
|
2010-01-27 08:52:05 +01:00
|
|
|
import org.json.JSONException;
|
|
|
|
import org.json.JSONObject;
|
|
|
|
|
2010-01-27 23:27:22 +01:00
|
|
|
import com.metaweb.gridlock.browsing.FilteredRows;
|
2010-01-27 08:52:05 +01:00
|
|
|
import com.metaweb.gridlock.browsing.filters.RowFilter;
|
|
|
|
|
|
|
|
public class ListFacet implements Facet {
|
2010-01-27 23:27:22 +01:00
|
|
|
final protected List<Object> _choices = new LinkedList<Object>();
|
2010-01-27 08:52:05 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public JSONObject getJSON(Properties options) throws JSONException {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2010-01-27 23:27:22 +01:00
|
|
|
@Override
|
|
|
|
public void initializeFromJSON(JSONObject o) throws JSONException {
|
|
|
|
JSONArray a = o.getJSONArray("choices");
|
|
|
|
int length = a.length();
|
|
|
|
|
|
|
|
for (int i = 0; i < length; i++) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-01-27 08:52:05 +01:00
|
|
|
@Override
|
|
|
|
public RowFilter getRowFilter() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2010-01-27 23:27:22 +01:00
|
|
|
public void computeChoices(FilteredRows filteredRows) {
|
2010-01-27 08:52:05 +01:00
|
|
|
// TODO Auto-generated method stub
|
2010-01-27 23:27:22 +01:00
|
|
|
|
2010-01-27 08:52:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|