project35.desktopDeployment
Class EditFieldView
java.lang.Object
project35.desktopDeployment.DataFieldView
project35.desktopDeployment.EditFieldView
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, ContextHelpItem
- Direct Known Subclasses:
- CombinationFieldView, DateFieldView, DateTimeFieldView, RadioFieldView, SelectColourFieldView, TabletTextFieldView, TextFieldView, URIFieldView
public abstract class EditFieldView
- extends DataFieldView
- implements java.awt.event.ActionListener
The view that renders edit fields. Takes care of things common to all
edit fields including aspects of units and validation.
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. 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.DataFieldView |
enableContextHelp, getActivityArea, getFont, getHelpLink, getLabel, getName, hasFocus, indicateErrors, initialise, isContextHelpEnabled, isRequiredField, setActivityArea, setHelpLink, setName, setRequiredField |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editFieldModel
protected EditFieldModel editFieldModel
ontologyContext
protected OntologyContext ontologyContext
edit
protected HelpEnabledButton edit
plugins
protected HelpEnabledButton plugins
schemaConceptPropertyManager
protected SchemaConceptPropertyManager schemaConceptPropertyManager
pluginsList
protected java.util.ArrayList pluginsList
EditFieldView
public EditFieldView()
initialise
public void initialise(EditFieldModel editFieldModel,
Project35FormContext project35FormContext)
deregisterToolTipComponents
public void deregisterToolTipComponents()
- helps ensure that the field view removes its UI components from the the
tool tip manager
- Overrides:
deregisterToolTipComponents
in class DataFieldView
isDirty
public abstract boolean isDirty()
- Returns:
- whether there is a difference between the displayed value
and the value saved value contained in the underlying model component.
getValue
public java.lang.String getValue()
getValueSupplier
public java.lang.Object getValueSupplier()
getModel
public EditFieldModel getModel()
editFieldWithEditingComponent
protected void editFieldWithEditingComponent()
getEditFieldEditingComponent
protected EditFieldEditingComponent getEditFieldEditingComponent()
choosePlugin
protected void choosePlugin()
setFieldValue
public abstract void setFieldValue(java.lang.String value)
keepValue
public abstract void keepValue()
restoreValue
public abstract void restoreValue()
setUnits
public void setUnits(java.lang.String units)
setValueSupplier
public void setValueSupplier(java.lang.Object _valueSupplier)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
changeFont
public void changeFont(java.awt.Font font)
- Overrides:
changeFont
in class DataFieldView