Package edu.pitt.terminology.util

Examples of edu.pitt.terminology.util.Describable


  /**
   * get selected value
   * @return
   */
  private Describable getSelectedValue(){
    Describable d = (Describable) ontologies.getSelectedValue();
    if(d == null)
      d = (Describable) terminologies.getSelectedValue();
    return d;
  }
View Full Code Here


  /**
   * open ontology expolorer
   *
   */
  private void doInfo(){
    Describable d = getSelectedValue();
    if(d == null)
      return;
    JEditorPane text = new JEditorPane();
    text.setContentType("text/html; charset=UTF-8");
    text.setEditable(false);
    text.setPreferredSize(new Dimension(400,400));
    text.setBorder(new LineBorder(Color.gray));
   
    String desc = "<b>"+d.getName()+"</b> "+d.getVersion()+"<br>"+d.getURI()+"<hr>"+d.getDescription();
    if(d instanceof Terminology){
      desc +="<hr>";
      Terminology t = (Terminology) d;
      desc += "Languages: "+Arrays.toString(t.getLanguages())+"<br>";
      desc += "Sources: "+Arrays.toString(t.getSources())+"<br>";
View Full Code Here

TOP

Related Classes of edu.pitt.terminology.util.Describable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.