project35.desktopDeployment
Class SelectColourFieldView
java.lang.Object
project35.desktopDeployment.DataFieldView
project35.desktopDeployment.EditFieldView
project35.desktopDeployment.SelectColourFieldView
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, CustomisedFieldView, ContextHelpItem
public class SelectColourFieldView
- extends EditFieldView
- implements CustomisedFieldView, java.awt.event.ActionListener
Copyright (c) 2008 Kevin Garwood for Project35. This code is
licensed under the Academic Free License version 3.0. For more information
on the terms and conditions, please see the file "LICENSE" that is included
in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class project35.desktopDeployment.EditFieldView |
changeFont, choosePlugin, deregisterToolTipComponents, editFieldWithEditingComponent, getEditFieldEditingComponent, getModel, getValue, getValueSupplier, initialise, setUnits, setValueSupplier |
Methods inherited from class project35.desktopDeployment.DataFieldView |
enableContextHelp, getActivityArea, getFont, getHelpLink, getLabel, getName, hasFocus, indicateErrors, isContextHelpEnabled, isRequiredField, setActivityArea, setHelpLink, setName, setRequiredField |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectColourFieldView
public SelectColourFieldView()
initialise
public void initialise(DataFieldModel dataFieldModel,
Project35FormContext project35FormContext)
- this is an awkward construction that should never be called
but is here to satisfy methods of EditFieldView. It is only
initialiseField that will be called.
- Overrides:
initialise
in class DataFieldView
- Parameters:
dataFieldModel
- the model used by the view
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class EditFieldView
initialiseField
public void initialiseField(Project35FormContext project35FormContext,
DataFieldModel dataFieldModel,
java.util.ArrayList additionalParameters)
- Specified by:
initialiseField
in interface CustomisedFieldView
isDirty
public boolean isDirty()
- Specified by:
isDirty
in class EditFieldView
- Returns:
- whether there is a difference between the displayed value
and the value saved value contained in the underlying model component.
setFieldValue
public void setFieldValue(java.lang.String fieldValue)
- Specified by:
setFieldValue
in class EditFieldView
restoreValue
public void restoreValue()
- Specified by:
restoreValue
in class EditFieldView
keepValue
public void keepValue()
- Specified by:
keepValue
in class EditFieldView