A bit more modeling for the proto-graph.
Two spinners to prepare for more async UI indications. git-svn-id: http://google-refine.googlecode.com/svn/trunk@55 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
8701d504e6
commit
bf79b24bf3
@ -8,6 +8,12 @@ import org.json.JSONWriter;
|
|||||||
public class AnonymousNode extends Node {
|
public class AnonymousNode extends Node {
|
||||||
private static final long serialVersionUID = -6956243664838720646L;
|
private static final long serialVersionUID = -6956243664838720646L;
|
||||||
|
|
||||||
|
final public FreebaseType type;
|
||||||
|
|
||||||
|
public AnonymousNode(FreebaseType type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(JSONWriter writer, Properties options)
|
public void write(JSONWriter writer, Properties options)
|
||||||
throws JSONException {
|
throws JSONException {
|
||||||
|
32
src/main/java/com/metaweb/gridworks/protograph/CellNode.java
Normal file
32
src/main/java/com/metaweb/gridworks/protograph/CellNode.java
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
package com.metaweb.gridworks.protograph;
|
||||||
|
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.json.JSONException;
|
||||||
|
import org.json.JSONWriter;
|
||||||
|
|
||||||
|
public class CellNode extends Node {
|
||||||
|
private static final long serialVersionUID = 5820786756175547307L;
|
||||||
|
|
||||||
|
final public int cellIndex;
|
||||||
|
final public boolean createUnlessRecon;
|
||||||
|
final public FreebaseType type;
|
||||||
|
|
||||||
|
public CellNode(
|
||||||
|
int cellIndex,
|
||||||
|
boolean createUnlessRecon,
|
||||||
|
FreebaseType type
|
||||||
|
) {
|
||||||
|
this.cellIndex = cellIndex;
|
||||||
|
this.createUnlessRecon = createUnlessRecon;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void write(JSONWriter writer, Properties options)
|
||||||
|
throws JSONException {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -5,12 +5,12 @@ import java.util.Properties;
|
|||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONWriter;
|
import org.json.JSONWriter;
|
||||||
|
|
||||||
public class TopicNode extends Node {
|
public class ExistingTopicNode extends Node {
|
||||||
private static final long serialVersionUID = 8418548867745587387L;
|
private static final long serialVersionUID = 8418548867745587387L;
|
||||||
|
|
||||||
final protected FreebaseTopic _topic;
|
final protected FreebaseTopic _topic;
|
||||||
|
|
||||||
public TopicNode(FreebaseTopic topic) {
|
public ExistingTopicNode(FreebaseTopic topic) {
|
||||||
_topic = topic;
|
_topic = topic;
|
||||||
}
|
}
|
||||||
|
|
@ -11,20 +11,12 @@ import com.metaweb.gridworks.Jsonizable;
|
|||||||
public class FreebaseTopic implements Serializable, Jsonizable {
|
public class FreebaseTopic implements Serializable, Jsonizable {
|
||||||
private static final long serialVersionUID = -3427885694129112432L;
|
private static final long serialVersionUID = -3427885694129112432L;
|
||||||
|
|
||||||
final protected String _id;
|
final public String id;
|
||||||
final protected String _name;
|
final public String name;
|
||||||
|
|
||||||
public FreebaseTopic(String id, String name) {
|
public FreebaseTopic(String id, String name) {
|
||||||
_id = id;
|
this.id = id;
|
||||||
_name = name;
|
this.name = name;
|
||||||
}
|
|
||||||
|
|
||||||
public String getID() {
|
|
||||||
return _id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return _name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -3,8 +3,11 @@ package com.metaweb.gridworks.protograph;
|
|||||||
public class FreebaseType extends FreebaseTopic {
|
public class FreebaseType extends FreebaseTopic {
|
||||||
private static final long serialVersionUID = -3070300264980791404L;
|
private static final long serialVersionUID = -3070300264980791404L;
|
||||||
|
|
||||||
public FreebaseType(String id, String name) {
|
final public boolean compoundValueType;
|
||||||
|
|
||||||
|
public FreebaseType(String id, String name, boolean compoundValueType) {
|
||||||
super(id, name);
|
super(id, name);
|
||||||
|
this.compoundValueType = compoundValueType;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
package com.metaweb.gridworks.protograph;
|
|
||||||
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import org.json.JSONException;
|
|
||||||
import org.json.JSONWriter;
|
|
||||||
|
|
||||||
public class NewNode extends Node {
|
|
||||||
private static final long serialVersionUID = 5820786756175547307L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void write(JSONWriter writer, Properties options)
|
|
||||||
throws JSONException {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
BIN
src/main/webapp/images/large-spinner.gif
Normal file
BIN
src/main/webapp/images/large-spinner.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
src/main/webapp/images/small-spinner.gif
Normal file
BIN
src/main/webapp/images/small-spinner.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in New Issue
Block a user