//SingleElementNode holder = parent.getOrCreateNode(ElementUtils.generateNodeId(e), SingleElementNode.class);
holder.setZIndex(++zIndex);
holder.setKey(e.getHint(ElementHints.KEY_OBJECT));
+ holder.setTypeClass(e.getHint(ElementHints.KEY_TYPE_CLASS));
List<SceneGraph> nodeHandlers = ec.getItemsByClass(SceneGraph.class);
for(SceneGraph n : nodeHandlers) {
if (holder == null) {
holder = parentNode.addNode(ElementUtils.generateNodeId(e), ConnectionNode.class);
holder.setKey(e.getHint(ElementHints.KEY_OBJECT));
+ holder.setTypeClass(e.getHint(ElementHints.KEY_TYPE_CLASS));
holder.setTransferableProvider(new ElementTransferableProvider(getContext(), e));
e.setHint(sgKey, holder);
holder.setZIndex(parentNode.getNodeCount() + 1);
if (holder == null) {
holder = parentNode.addNode(ElementUtils.generateNodeId(e), SingleElementNode.class);
holder.setKey(e.getHint(ElementHints.KEY_OBJECT));
+ holder.setTypeClass(e.getHint(ElementHints.KEY_TYPE_CLASS));
holder.setTransferableProvider(new ElementTransferableProvider(getContext(), e));
e.setHint(sgKey, holder);
holder.setZIndex(parentNode.getNodeCount() + 1);
/** Source of data in external data model */
public static final Key KEY_OBJECT = new KeyOf(Object.class, "OBJECT");
+ public static final Key KEY_TYPE_CLASS = new KeyOf(String.class, "TYPE_CLASS");
/**
* Used for identifying elements that should be ignored in all matters
protected Boolean visible = Boolean.TRUE;
protected Boolean hidden = Boolean.FALSE;
private transient Object key;
+ private transient String typeClass;
public void setKey(Object key) {
this.key = key;
}
+ public void setTypeClass(String typeClass) {
+ this.typeClass = typeClass;
+ }
+
public Object getKey() {
return key;
}
+ public String getTypeClass() {
+ return typeClass;
+ }
+
public void setTransferableProvider(TransferableProvider transferableProvider) {
if (transferableProvider != this.transferableProvider) {
if (this.transferableProvider != null)