edu.stanford.protege.widgetmap.client.RootNodeChangedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of widgetmap Show documentation
Show all versions of widgetmap Show documentation
widgetmap is a GWT library that provides a treemap-like nesting for Widget
package edu.stanford.protege.widgetmap.client;
import com.google.common.base.Optional;
import com.google.web.bindery.event.shared.Event;
import edu.stanford.protege.widgetmap.shared.node.Node;
/**
* Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 09/01/2014
*/
public class RootNodeChangedEvent extends Event {
public static final Type TYPE = new Type();
private Optional from;
private Optional to;
public RootNodeChangedEvent(HasRootNode source, Optional from, Optional to) {
setSource(source);
this.from = from;
this.to = to;
}
public Optional getFrom() {
return from;
}
public Optional getTo() {
return to;
}
@Override
public HasRootNode getSource() {
return (HasRootNode) super.getSource();
}
@Override
public Type getAssociatedType() {
return TYPE;
}
@Override
protected void dispatch(RootNodeChangedHandler handler) {
handler.handleRootNodeChanged(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy