project35.desktopDeployment
Class RadioFieldView

java.lang.Object
  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.


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
RadioFieldView()
           
 
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

RadioFieldView

public RadioFieldView()
Method Detail

initialise

public void initialise(GroupFieldModel groupFieldModel,
                       Project35FormContext project35FormContext)

getValue

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

setFieldValue

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

isDirty

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

keepValue

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

Specified by:
keepValue in class EditFieldView

restoreValue

public void restoreValue()
restores display value with model value

Specified by:
restoreValue in class EditFieldView

changeFont

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