phenote.dataadapter
Class AbstractGroupAdapter

java.lang.Object
  extended by phenote.dataadapter.OntologyMaker
      extended by phenote.dataadapter.AbstractGroupAdapter
All Implemented Interfaces:
GroupAdapterI, OntologyMakerI
Direct Known Subclasses:
AllFieldsGroupAdapter, FlyGenotypeGroupAdapter, WormReferenceGroupAdapter

public abstract class AbstractGroupAdapter
extends OntologyMaker
implements GroupAdapterI


Constructor Summary
protected AbstractGroupAdapter(java.lang.String group)
           
 
Method Summary
 CharChangeListener getCharChangeListener()
           
 CharListChangeListener getCharListChangeListener()
           
protected  org.obo.datamodel.Namespace getNamespace()
           
 boolean hasCharChangeListener()
          If a group reacts to char changes(edits) then a char change listener should be added, for instance a user edits group fields and dest field is automatically repopulated, otherwise no-op
 boolean hasCharListChangeListener()
          similar to char change, for doing something on loading data into group, like repopulating dest field, no-op if dont need this
protected abstract  java.lang.String makeNameFromChar(CharacterI c)
          This is where subclasses come in and do their thing
protected  org.obo.datamodel.OBOClass makeOboClassFromChar(CharacterI c)
           
 void makeOntology()
          This is the real workhorse here just goes through and makes all the terms and shoves them over to main/default destination field
protected  boolean recordsId()
           
protected  void setCharChangeListener(CharChangeListener l)
           
protected  void setCharListChangeListener(CharListChangeListener l)
           
protected  void setIdField(CharacterI c, java.lang.String id)
          overridden by worm
 
Methods inherited from class phenote.dataadapter.OntologyMaker
addDestinationField, getButtonText, hasDestinationCharField, setOboSession, setOboSession, useButtonToLaunch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface phenote.dataadapter.OntologyMakerI
addDestinationField, getButtonText, useButtonToLaunch
 

Constructor Detail

AbstractGroupAdapter

protected AbstractGroupAdapter(java.lang.String group)
Method Detail

hasCharChangeListener

public boolean hasCharChangeListener()
Description copied from interface: GroupAdapterI
If a group reacts to char changes(edits) then a char change listener should be added, for instance a user edits group fields and dest field is automatically repopulated, otherwise no-op

Specified by:
hasCharChangeListener in interface GroupAdapterI

getCharChangeListener

public CharChangeListener getCharChangeListener()
Specified by:
getCharChangeListener in interface GroupAdapterI

setCharChangeListener

protected void setCharChangeListener(CharChangeListener l)

hasCharListChangeListener

public boolean hasCharListChangeListener()
Description copied from interface: GroupAdapterI
similar to char change, for doing something on loading data into group, like repopulating dest field, no-op if dont need this

Specified by:
hasCharListChangeListener in interface GroupAdapterI

getCharListChangeListener

public CharListChangeListener getCharListChangeListener()
Specified by:
getCharListChangeListener in interface GroupAdapterI

setCharListChangeListener

protected void setCharListChangeListener(CharListChangeListener l)

getNamespace

protected org.obo.datamodel.Namespace getNamespace()

recordsId

protected boolean recordsId()

setIdField

protected void setIdField(CharacterI c,
                          java.lang.String id)
overridden by worm


makeOntology

public void makeOntology()
This is the real workhorse here just goes through and makes all the terms and shoves them over to main/default destination field

Specified by:
makeOntology in interface OntologyMakerI

makeOboClassFromChar

protected org.obo.datamodel.OBOClass makeOboClassFromChar(CharacterI c)

makeNameFromChar

protected abstract java.lang.String makeNameFromChar(CharacterI c)
This is where subclasses come in and do their thing