// Path: src/main/java/org/aksw/TripleCheckMate/shared/evaluate/EvaluateItem.java
// public class EvaluateItem implements Comparable<EvaluateItem>, Serializable {
//     /**
//      * Auto-generated for serialization
//      */
//     private static final long serialVersionUID = 147695789864172749L;
// 
//     public long ID = 0;
//     public ResultItem S = null;
//     public ResultItem P = null;
//     public ResultItem O = null;
//     public long errorType = 0;
//     public String errorTittle = "";
//     public String comments = "";
//     public boolean isWrong = false;
// 
// 
//     /**
//      * The key provider that provides the unique ID of an Evaluate Item.
//      */
//     public static final ProvidesKey<EvaluateItem> KEY_PROVIDER = new ProvidesKey<EvaluateItem>() {
//         public Object getKey(EvaluateItem item) {
//             return item == null ? null : item.ID;
//         }
//     };
// 
//     public EvaluateItem() {
// 
//     }
// 
//     public EvaluateItem(long id, ResultItem s, ResultItem p, ResultItem o) {
//         ID = id;
//         S = s;
//         P = p;
//         O = o;
//         isWrong = false;
//     }
// 
//     public int compareTo(EvaluateItem item) {
//         if (item == null)
//             return -1;
//         int cmpS = item.S.value.compareTo(S.value);
//         if (cmpS != 0) return cmpS;
// 
//         int cmpP = item.S.value.compareTo(P.value);
//         if (cmpP != 0) return cmpP;
// 
//         int cmpO = item.S.value.compareTo(O.value);
//         if (cmpO != 0) return cmpO;
// 
//         return 0;
//     }
// }


import com.google.gwt.cell.client.CheckboxCell;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.cell.client.SafeHtmlCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
import com.google.gwt.user.cellview.client.SimplePager;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.CellPreviewEvent;
import com.google.gwt.view.client.ListDataProvider;
import org.aksw.TripleCheckMate.shared.evaluate.EvaluateItem;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
/*******************************************************************************
 * Copyright 2013 Agile Knowledge Engineering and Semantic Web (AKSW) Group
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package org.aksw.TripleCheckMate.client.widgets;



public class EvaluationTable extends Composite {

    interface EvaluationTableUiBinder extends UiBinder<Widget, EvaluationTable> {
    }

    private static EvaluationTableUiBinder uiBinder = GWT.create(EvaluationTableUiBinder.class);


    @UiField
// Path: src/main/java/org/aksw/TripleCheckMate/shared/evaluate/EvaluateItem.java
// public class EvaluateItem implements Comparable<EvaluateItem>, Serializable {
//     /**
//      * Auto-generated for serialization
//      */
//     private static final long serialVersionUID = 147695789864172749L;
// 
//     public long ID = 0;
//     public ResultItem S = null;
//     public ResultItem P = null;
//     public ResultItem O = null;
//     public long errorType = 0;
//     public String errorTittle = "";
//     public String comments = "";
//     public boolean isWrong = false;
// 
// 
//     /**
//      * The key provider that provides the unique ID of an Evaluate Item.
//      */
//     public static final ProvidesKey<EvaluateItem> KEY_PROVIDER = new ProvidesKey<EvaluateItem>() {
//         public Object getKey(EvaluateItem item) {
//             return item == null ? null : item.ID;
//         }
//     };
// 
//     public EvaluateItem() {
// 
//     }
// 
//     public EvaluateItem(long id, ResultItem s, ResultItem p, ResultItem o) {
//         ID = id;
//         S = s;
//         P = p;
//         O = o;
//         isWrong = false;
//     }
// 
//     public int compareTo(EvaluateItem item) {
//         if (item == null)
//             return -1;
//         int cmpS = item.S.value.compareTo(S.value);
//         if (cmpS != 0) return cmpS;
// 
//         int cmpP = item.S.value.compareTo(P.value);
//         if (cmpP != 0) return cmpP;
// 
//         int cmpO = item.S.value.compareTo(O.value);
//         if (cmpO != 0) return cmpO;
// 
//         return 0;
//     }
// }


// Path: src/main/java/org/aksw/TripleCheckMate/client/widgets/EvaluationTable.java
import com.google.gwt.cell.client.CheckboxCell;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.cell.client.SafeHtmlCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
import com.google.gwt.user.cellview.client.SimplePager;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.CellPreviewEvent;
import com.google.gwt.view.client.ListDataProvider;
import org.aksw.TripleCheckMate.shared.evaluate.EvaluateItem;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

/*******************************************************************************
 * Copyright 2013 Agile Knowledge Engineering and Semantic Web (AKSW) Group
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package org.aksw.TripleCheckMate.client.widgets;



public class EvaluationTable extends Composite {

    interface EvaluationTableUiBinder extends UiBinder<Widget, EvaluationTable> {
    }

    private static EvaluationTableUiBinder uiBinder = GWT.create(EvaluationTableUiBinder.class);


    @UiField
    CellTable<EvaluateItem> tblEvalTriples = new CellTable<EvaluateItem>(