All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.appdapter.gui.repo.ScreenModelBox Maven / Gradle / Ivy

Go to download

Appdapter Maven project including Java and Scala, produces jar, not bundle. Excludes concrete SLF4J binding.

The newest version!
package org.appdapter.gui.repo;

import org.appdapter.api.trigger.Trigger;
import org.appdapter.gui.box.ScreenBoxImpl;

import com.hp.hpl.jena.rdf.model.Model;

public class ScreenModelBox>> extends ScreenBoxImpl {

	@Override public String getShortLabel() {
		return myURI;
	}

	final String myURI;
	private Model myModel;

	public ScreenModelBox(String uri, Model model) {
		//super(uri, model);
		myURI = uri;
		myModel = model;
	}

	@Override public String toString() {
		return getClass().getName() + "[uri=" + myURI + "model=" + myModel + "]";
	}

	// setShortLabel("tweak-" + myURI);
	public void setModel(Model m) {
		this.myModel = m;
	}

	@Override public Object getValue() {
		return myModel;
	}

	public void reallySetValue(Object newObject) throws UnsupportedOperationException {
		myModel = (Model) newObject;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy