com.partnersoft.codex.editors
Class AbstractCogField
java.lang.Object
com.partnersoft.codex.editors.AbstractCogField
- All Implemented Interfaces:
- CogField
- Direct Known Subclasses:
- CogBooleanField, CogColorField, CogComboBox, CogIconField, CogTextField
public abstract class AbstractCogField
- extends java.lang.Object
- implements CogField
Convenience abstract implementation of a CogField.
Copyright 2006-2007 Partner Software, Inc.
- Author:
- Russell Cagle, Paul Reavis
|
Field Summary |
protected com.partnersoft.codex.editors.AbstractCogField.MyCogModelListener |
listener
|
protected CogModel |
model
|
protected java.lang.String |
path
|
|
Method Summary |
void |
close()
Stops listening to the CogModel. |
CogModel |
getModel()
|
java.lang.String |
getPath()
|
java.lang.String |
getValue()
|
protected void |
setValueImp(java.lang.String newValue)
|
protected abstract void |
updateValueImp(java.lang.String newValue)
Subclasses should implement this to update their GUIs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.partnersoft.codex.editors.CogField |
getGui |
listener
protected com.partnersoft.codex.editors.AbstractCogField.MyCogModelListener listener
model
protected CogModel model
path
protected java.lang.String path
AbstractCogField
public AbstractCogField(CogModel model,
java.lang.String path)
close
public void close()
- Description copied from interface:
CogField
- Stops listening to the CogModel.
- Specified by:
close in interface CogField
getModel
public CogModel getModel()
- Specified by:
getModel in interface CogField
getPath
public java.lang.String getPath()
- Specified by:
getPath in interface CogField
getValue
public java.lang.String getValue()
setValueImp
protected void setValueImp(java.lang.String newValue)
updateValueImp
protected abstract void updateValueImp(java.lang.String newValue)
- 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().