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

edu.stanford.protege.widgetmap.client.RootNodeChangedEvent Maven / Gradle / Ivy

package edu.stanford.protege.widgetmap.client;

import com.google.web.bindery.event.shared.Event;
import edu.stanford.protege.widgetmap.shared.node.Node;

import java.util.Optional;

/**
 * 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 - 2024 Weber Informatics LLC | Privacy Policy