com.partnersoft.codex.editors
Class CogTextField

java.lang.Object
  extended by com.partnersoft.codex.editors.AbstractCogField
      extended by com.partnersoft.codex.editors.CogTextField
All Implemented Interfaces:
CogField

public class CogTextField
extends AbstractCogField

Connects a CogModel to a Swing JTextField.

Copyright 2006-2007 Partner Software, Inc.

Version:
$Id$
Author:
Russell Cagle, Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.codex.editors.AbstractCogField
listener, model, path
 
Constructor Summary
CogTextField(CogModel model, java.lang.String path)
           
CogTextField(CogModel model, java.lang.String path, javax.swing.text.Document document)
           
 
Method Summary
 javax.swing.JComponent getGui()
           
 StringField getStringField()
           
protected  void updateValueImp(java.lang.String newValue)
          Subclasses should implement this to update their GUIs.
 
Methods inherited from class com.partnersoft.codex.editors.AbstractCogField
close, getModel, getPath, getValue, setValueImp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CogTextField

public CogTextField(CogModel model,
                    java.lang.String path)

CogTextField

public CogTextField(CogModel model,
                    java.lang.String path,
                    javax.swing.text.Document document)
Method Detail

updateValueImp

protected void updateValueImp(java.lang.String newValue)
Description copied from class: AbstractCogField
Subclasses should implement this to update their GUIs. RDC: changed this to take a String because that's what the underlying Cog was returning, and I didn't know all the other possibile return types of Cog.getObject().

Specified by:
updateValueImp in class AbstractCogField

getGui

public javax.swing.JComponent getGui()

getStringField

public StringField getStringField()