grsf-manage-widget/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/client/view/subwidgets/Pair.java

25 lines
619 B
Java

package org.gcube.datacatalogue.grsf_manage_widget.client.view.subwidgets;
import com.google.gwt.user.client.ui.Widget;
/**
* A class of pair: a widget and an object
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
*/
public class Pair {
private Object o;
private Widget w;
public Pair(Object o, Widget w){
this.o = o;
this.w = w;
}
public Object getO(){ return o; }
public Widget getW(){ return w; }
public void setO(Object o){ this.o = o; }
public void setW(Widget w){ this.w = w; }
@Override
public String toString() {
return "Pair [o=" + o + ", w=" + w + "]";
}
}