project35.desktopDeployment
Class CombinationFieldView

java.lang.Object
  extended by project35.desktopDeployment.DataFieldView
      extended by project35.desktopDeployment.EditFieldView
          extended by project35.desktopDeployment.CombinationFieldView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ContextHelpItem

public class CombinationFieldView
extends EditFieldView

Renders a GroupFieldModel model component as a combination field. Note that GroupFieldModels can also be rendered as a RadioFieldView.


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
 
Fields inherited from class project35.desktopDeployment.EditFieldView
edit, editFieldModel, ontologyContext, plugins, pluginsList, schemaConceptPropertyManager
 
Fields inherited from class project35.desktopDeployment.DataFieldView
activityArea, collator, dataFieldModel, font, label, name, project35FormContext, project35UIFactory
 
Constructor Summary
CombinationFieldView()
           
 
Method Summary
 void changeFont(java.awt.Font font)
           
 void initialise(GroupFieldModel groupFieldModel, Project35FormContext project35FormContext)
           
 boolean isDirty()
          determines whether the value in the combination box is the same or different from the saved value
 void keepValue()
          commits the value in the combination box to the value in the underlying model component
 void restoreValue()
          resets combination box value to the current value of the underlying GroupFieldModel component
 void setFieldValue(java.lang.String value)
          sets the value of field and causes it to display a combination box choice that reflects the value parameter
 
Methods inherited from class project35.desktopDeployment.EditFieldView
actionPerformed, 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, 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
 

Constructor Detail

CombinationFieldView

public CombinationFieldView()
Method Detail

initialise

public void initialise(GroupFieldModel groupFieldModel,
                       Project35FormContext project35FormContext)

setFieldValue

public void setFieldValue(java.lang.String value)
sets the value of field and causes it to display a combination box choice that reflects the value parameter

Specified by:
setFieldValue in class EditFieldView
Parameters:
value - field value

keepValue

public void keepValue()
commits the value in the combination box to the value in the underlying model component

Specified by:
keepValue in class EditFieldView

isDirty

public boolean isDirty()
determines whether the value in the combination box is the same or different from the saved value

Specified by:
isDirty in class EditFieldView
Returns:
true if the values are inconsistent; otherwise false (the values are the same)

restoreValue

public void restoreValue()
resets combination box value to the current value of the underlying GroupFieldModel component

Specified by:
restoreValue in class EditFieldView

changeFont

public void changeFont(java.awt.Font font)
Overrides:
changeFont in class EditFieldView