phenote.gui.field
Class FreeTextField

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

 class FreeTextField
extends CharFieldGui


Field Summary
 
Fields inherited from class phenote.gui.field.CharFieldGui
fieldHeight, inputSize, selectionModel
 
Constructor Summary
FreeTextField(CharField charField)
           
 
Method Summary
protected  void fireErrorEvent(java.lang.String m)
           
protected  void focusLost()
          If user tabs causes a focus lost as well as mouse clicking, (return causes action event)
protected  CharFieldValue getCharFieldValue()
          Returns the current value as a "character-independent" value (character is null).
protected  java.lang.String getConstraintFailureMsg()
           
protected  javax.swing.InputVerifier getInputVerifier()
          overridden by subclasses that verify input (IdFieldGui, IntFieldGui...)
 javax.swing.table.TableCellEditor getTableCellEditor()
           
protected  java.lang.String getText()
           
protected  javax.swing.JTextField getTextField()
           
protected  javax.swing.JComponent getUserInputGui()
          Get the component used for user input - text field or jCombo
protected  boolean hasFocus()
           
protected  boolean hasInputVerifier()
           
 void listChanged(ca.odell.glazedlists.event.ListEvent<CharacterI> listChanges)
          part of ListEventListener interface.
protected  org.apache.log4j.Logger log()
           
protected  void setCharFieldValue(CharFieldValue value)
           
 void setText(java.lang.String text)
          set text from outside source - sel, load,...
protected  void setValueFromChar(CharacterI chr)
           
protected  void setValueFromChars(java.util.List<CharacterI> characters)
          Set the gui from the model (selection)
protected  void updateModel()
          update model using currently selected chars
protected  boolean 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

FreeTextField

FreeTextField(CharField charField)
Method Detail

getTableCellEditor

public javax.swing.table.TableCellEditor getTableCellEditor()
Specified by:
getTableCellEditor in class CharFieldGui

hasInputVerifier

protected boolean hasInputVerifier()

getInputVerifier

protected javax.swing.InputVerifier getInputVerifier()
overridden by subclasses that verify input (IdFieldGui, IntFieldGui...)


getUserInputGui

protected javax.swing.JComponent getUserInputGui()
Description copied from class: CharFieldGui
Get the component used for user input - text field or jCombo

Specified by:
getUserInputGui in class CharFieldGui

getTextField

protected javax.swing.JTextField getTextField()

setText

public void setText(java.lang.String text)
set text from outside source - sel, load,...

Specified by:
setText in class CharFieldGui

getText

protected java.lang.String getText()
Specified by:
getText in class CharFieldGui

setValueFromChar

protected void setValueFromChar(CharacterI chr)

setCharFieldValue

protected void setCharFieldValue(CharFieldValue value)
Specified by:
setCharFieldValue in class CharFieldGui

getCharFieldValue

protected CharFieldValue getCharFieldValue()
Description copied from class: CharFieldGui
Returns the current value as a "character-independent" value (character is null).

Specified by:
getCharFieldValue in class CharFieldGui

focusLost

protected void focusLost()
If user tabs causes a focus lost as well as mouse clicking, (return causes action event)

Overrides:
focusLost in class CharFieldGui

hasFocus

protected boolean hasFocus()
Specified by:
hasFocus in class CharFieldGui

listChanged

public void listChanged(ca.odell.glazedlists.event.ListEvent<CharacterI> listChanges)
Description copied from class: CharFieldGui
part of ListEventListener interface. Receives ListEvents from selectionModel's EventList. Table row selection causes this event to fly

Specified by:
listChanged in interface ca.odell.glazedlists.event.ListEventListener<CharacterI>
Overrides:
listChanged in class CharFieldGui

setValueFromChars

protected void setValueFromChars(java.util.List<CharacterI> characters)
Description copied from class: CharFieldGui
Set the gui from the model (selection)

Overrides:
setValueFromChars in class CharFieldGui

updateModel

protected void updateModel()
update model using currently selected chars

Specified by:
updateModel in class CharFieldGui

fireErrorEvent

protected void fireErrorEvent(java.lang.String m)

verify

protected boolean verify()

getConstraintFailureMsg

protected java.lang.String getConstraintFailureMsg()

log

protected org.apache.log4j.Logger log()