project35.soa.ontology.views
Class DefaultOntologyTermSelectionListener

java.lang.Object
  extended by project35.soa.ontology.views.DefaultOntologyTermSelectionListener
All Implemented Interfaces:
OntologyTermSelectionListener

public class DefaultOntologyTermSelectionListener
extends java.lang.Object
implements OntologyTermSelectionListener

is called when users have finished selecting terms from some OntologyView. This class does two things when it is notified about a selection of terms:


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
DefaultOntologyTermSelectionListener(Project35FormContext project35FormContext)
           
 
Method Summary
 void termSelected(OntologyTerm ontologyTerm, OntologySource ontologySource)
          indicates user has finished selecting an ontology term.
 void termSelected(OntologyTermProvenance ontologyTermProvenance)
          indicates that an existing ontology term has been selected
 void termsSelected(OntologyViewer ontologyViewer)
          indicates user has finished selecting terms in an OntologyViewer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOntologyTermSelectionListener

public DefaultOntologyTermSelectionListener(Project35FormContext project35FormContext)
Method Detail

termsSelected

public void termsSelected(OntologyViewer ontologyViewer)
Description copied from interface: OntologyTermSelectionListener
indicates user has finished selecting terms in an OntologyViewer

Specified by:
termsSelected in interface OntologyTermSelectionListener
Parameters:
ontologyViewer - a Java class that implements OntologyViewer interface; the class that renders ontology terms for the end-user

termSelected

public void termSelected(OntologyTerm ontologyTerm,
                         OntologySource ontologySource)
Description copied from interface: OntologyTermSelectionListener
indicates user has finished selecting an ontology term.

Specified by:
termSelected in interface OntologyTermSelectionListener
Parameters:
ontologyTerm - the ontology term that has been selected
ontologySource - a Java class that implements OntologySource

termSelected

public void termSelected(OntologyTermProvenance ontologyTermProvenance)
Description copied from interface: OntologyTermSelectionListener
indicates that an existing ontology term has been selected

Specified by:
termSelected in interface OntologyTermSelectionListener
Parameters:
ontologyTermProvenance - holds all the data about an ontology term used for markup