com.partnersoft.codex.editors
Class CogColorField

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

public class CogColorField
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
CogColorField(CogModel model, java.lang.String path)
           
 
Method Summary
 ColorField getColorField()
           
 javax.swing.JComponent getGui()
           
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

CogColorField

public CogColorField(CogModel model,
                     java.lang.String path)
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()

getColorField

public ColorField getColorField()