project35.desktopDeployment
Class EditFieldView

java.lang.Object
  extended by project35.desktopDeployment.DataFieldView
      extended by 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)

Field Summary
protected  HelpEnabledButton edit
           
protected  EditFieldModel editFieldModel
           
protected  OntologyContext ontologyContext
           
protected  HelpEnabledButton plugins
           
protected  java.util.ArrayList pluginsList
           
protected  SchemaConceptPropertyManager schemaConceptPropertyManager
           
 
Fields inherited from class project35.desktopDeployment.DataFieldView
activityArea, collator, dataFieldModel, font, label, name, project35FormContext, project35UIFactory
 
Constructor Summary
EditFieldView()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void changeFont(java.awt.Font font)
           
protected  void choosePlugin()
           
 void deregisterToolTipComponents()
          helps ensure that the field view removes its UI components from the the tool tip manager
protected  void editFieldWithEditingComponent()
           
protected  EditFieldEditingComponent getEditFieldEditingComponent()
           
 EditFieldModel getModel()
           
 java.lang.String getValue()
           
 java.lang.Object getValueSupplier()
           
 void initialise(EditFieldModel editFieldModel, Project35FormContext project35FormContext)
           
abstract  boolean isDirty()
           
abstract  void keepValue()
           
abstract  void restoreValue()
           
abstract  void setFieldValue(java.lang.String value)
           
 void setUnits(java.lang.String units)
           
 void setValueSupplier(java.lang.Object _valueSupplier)
           
 
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
 

Field Detail

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
Constructor Detail

EditFieldView

public EditFieldView()
Method Detail

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