Class RadioFieldView

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

public class RadioFieldView
extends EditFieldView

This class is used to render radio buttons for a GroupFieldModel model construction. Note that a CombinationFieldView can also render a GroupFieldModel. Generally, if the GroupFieldModel contains three items or less it gets rendered as radio buttons. if there are more values it gets rendered as a combination field

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.

Kevin Garwood (

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
Method Summary
 void changeFont(java.awt.Font font)
 java.lang.String getValue()
 void initialise(GroupFieldModel groupFieldModel, Project35FormContext project35FormContext)
 boolean isDirty()
 void keepValue()
          commits value held in ui component to underlying model component
 void restoreValue()
          restores display value with model value
 void setFieldValue(java.lang.String fieldValue)
Methods inherited from class project35.desktopDeployment.EditFieldView
actionPerformed, choosePlugin, deregisterToolTipComponents, editFieldWithEditingComponent, getEditFieldEditingComponent, getModel, 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


public RadioFieldView()
Method Detail


public void initialise(GroupFieldModel groupFieldModel,
                       Project35FormContext project35FormContext)


public java.lang.String getValue()
getValue in class EditFieldView


public void setFieldValue(java.lang.String fieldValue)
Specified by:
setFieldValue in class EditFieldView


public boolean isDirty()
Specified by:
isDirty in class EditFieldView
whether the model value matches the currently displayed value


public void keepValue()
commits value held in ui component to underlying model component

Specified by:
keepValue in class EditFieldView


public void restoreValue()
restores display value with model value

Specified by:
restoreValue in class EditFieldView


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