phenote.gui.field
Class IdFieldGui

java.lang.Object
  extended by phenote.gui.field.CharFieldGui
      extended by phenote.gui.field.FreeTextField
          extended by phenote.gui.field.IdFieldGui
All Implemented Interfaces:
ca.odell.glazedlists.event.ListEventListener<CharacterI>, java.util.EventListener, IDSelectionListener

 class IdFieldGui
extends FreeTextField
implements IDSelectionListener

for now this is just a free text field that checks if theres a ":" present eventually may get more savvy with option of prepending an id prefix and using OBOInstance instead of String


Field Summary
 
Fields inherited from class phenote.gui.field.CharFieldGui
fieldHeight, inputSize, selectionModel
 
Constructor Summary
IdFieldGui(CharField cf)
           
 
Method Summary
protected  java.lang.String getConstraintFailureMsg()
           
protected  javax.swing.InputVerifier getInputVerifier()
          overridden by subclasses that verify input (IdFieldGui, IntFieldGui...)
 void IDSelected(IDSelectionEvent e)
           
protected  boolean passesConstraints(java.lang.String input)
           
 
Methods inherited from class phenote.gui.field.FreeTextField
fireErrorEvent, focusLost, getCharFieldValue, getTableCellEditor, getText, getTextField, getUserInputGui, hasFocus, hasInputVerifier, listChanged, log, setCharFieldValue, setText, setValueFromChar, setValueFromChars, updateModel, verify
 
Methods inherited from class phenote.gui.field.CharFieldGui
addActionListener, alreadyInList, areCharactersEqualForCharField, checkPostCompButton, commitAndSelectNext, editModelEnabled, enableEditModel, fireActionPerformed, focusGained, getCharField, getCharFieldEnum, getCompButton, getCompList, getCurrentOboClass, getCurrentRelation, getDisabledTextColor, getEditButton, getEditManager, getEnabledTextColor, getLabel, getListDelButton, getListGui, getListMessage, getMinCompChars, getOntologyChooser, getRetrieveButton, getSelectedChars, getSelectionManager, getTermComp, hasChangedMultipleValues, hasCompButton, hasEditButton, hasListGui, hasOntologyChooser, hasRetrieveButton, isCompList, isInMultipleValueState, isTermCompList, makeCharFieldGui, makePostCompTermList, makeRelationList, removeActionListener, setDoingInternalEdit, setEditManager, setEnabledState, setForegroundColor, setGuiForMultipleValues, setGuiForNoSelection, setHasChangedMultipleValues, setInMultipleValueState, setLabel, setListSelectionModel, setMinCompChars, setMultipleValuesConditions, setOboClass, setOntologyChooserFromTerm, setRel, setSelectionManager, setUpdateGuiOnly, shouldResetGuiForMultipleValues, updateGuiOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdFieldGui

IdFieldGui(CharField cf)
Method Detail

passesConstraints

protected boolean passesConstraints(java.lang.String input)

getConstraintFailureMsg

protected java.lang.String getConstraintFailureMsg()
Overrides:
getConstraintFailureMsg in class FreeTextField

getInputVerifier

protected javax.swing.InputVerifier getInputVerifier()
Description copied from class: FreeTextField
overridden by subclasses that verify input (IdFieldGui, IntFieldGui...)

Overrides:
getInputVerifier in class FreeTextField

IDSelected

public void IDSelected(IDSelectionEvent e)
Specified by:
IDSelected in interface IDSelectionListener