|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.gui.field.CharFieldGui
phenote.gui.field.AbstractAutoCompList
phenote.gui.field.RelationCompList
public class RelationCompList
with now common superclass OBOObject this should be merged with TermCompList I think
| Field Summary |
|---|
| Fields inherited from class phenote.gui.field.CharFieldGui |
|---|
fieldHeight, inputSize, selectionModel |
| Constructor Summary | |
|---|---|
RelationCompList(CharField c)
|
|
| Method Summary | |
|---|---|
void |
addObserver(java.util.Observer o)
|
org.obo.datamodel.OBOProperty |
getCurrentRelation()
Throws exception if there isnt a current relation - for relation lists (post comp), if the user has typed something that isnt yet a rel - hasnt selected a rel |
protected java.lang.String |
getCurrentTermRelName()
Return the name of the current term or relation - was gonna call this item name but that gets confused with "items" in combo box |
phenote.gui.field.RelationCompList.RelSelectObservable |
getObservable()
Send out notification when a new relation has been selected, used by ComparisonGui avoids hardwiring modifying a particular datamodel like other CharFieldGuis(refactor) this could migrate to superclass if needed there |
protected void |
getSearchItems(java.lang.String input,
SearchListener l,
boolean thread)
for now not threading and just sending results to listener - relations are short lists - dont need threaded optimization so boolean thread is ignored |
protected void |
setCharFieldValue(CharFieldValue value)
char in table changed - adjust - not needed for rel(at least not yet) as post comp doesnt listen to table changes (does it? should it?), just term |
protected void |
setCurrentValidItem()
The user has selected a rel from the list, validate and set current rel if doesnt validate throw ex |
protected void |
setModelToNull()
no-op override |
void |
setNullOk(boolean nullOk)
by default relation cant be set explicitly to null (but can be null at init) if nullOk then a user can null out relation (or select a comparison with a null relation) |
void |
setRel(org.obo.datamodel.OBOProperty rel)
for relationships (post comp rel) |
protected void |
updateModel(boolean useTopHit)
|
| Methods inherited from class phenote.gui.field.AbstractAutoCompList |
|---|
canGetUIJList, clear, doMouseOver, getCharFieldValue, getCompList, getCompListSearcher, getFirstCompListObj, getJComboBox, getMinCompChars, getSearchParams, getSelectedObject, getTableCellEditor, getText, getUIJList, getUserInputGui, hasFocus, hasMoreThanOneOntology, hasOntologyChooser, isCompList, setForegroundColor, setMinCompChars, setTestMode, setText, setText, simulateKeyStroke, simulateLKeyStroke, updateModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
RelationCompList(CharField c)
| Method Detail |
|---|
protected void setCurrentValidItem()
throws OboException
OboExceptionprotected java.lang.String getCurrentTermRelName()
AbstractAutoCompList
getCurrentTermRelName in class AbstractAutoCompListpublic void setNullOk(boolean nullOk)
public void setRel(org.obo.datamodel.OBOProperty rel)
setRel in class CharFieldGui
public org.obo.datamodel.OBOProperty getCurrentRelation()
throws CharFieldGuiEx
getCurrentRelation in class CharFieldGuiCharFieldGuiExprotected void updateModel(boolean useTopHit)
updateModel in class AbstractAutoCompListprotected void setModelToNull()
setModelToNull in class AbstractAutoCompListprotected void setCharFieldValue(CharFieldValue value)
setCharFieldValue in class AbstractAutoCompList
protected void getSearchItems(java.lang.String input,
SearchListener l,
boolean thread)
getSearchItems in class AbstractAutoCompListpublic phenote.gui.field.RelationCompList.RelSelectObservable getObservable()
public void addObserver(java.util.Observer o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||