-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #166 - add option to test custom view query [skip ci]
- Loading branch information
Showing
14 changed files
with
432 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...n/java/com/databasepreservation/main/common/shared/client/common/lists/IndexedColumn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.databasepreservation.main.common.shared.client.common.lists; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gwt.cell.client.TextCell; | ||
import com.google.gwt.user.cellview.client.Column; | ||
|
||
/** | ||
* Column used for dynamic table | ||
* | ||
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
public class IndexedColumn extends Column<List<String>, String> { | ||
private final int index; | ||
|
||
public IndexedColumn(int index) { | ||
super(new TextCell()); | ||
this.index = index; | ||
} | ||
|
||
@Override | ||
public String getValue(List<String> object) { | ||
return object.get(index); | ||
} | ||
|
||
public int getIndex() { | ||
return this.index; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.