project35.desktopDeployment
Class RadioFieldView
java.lang.Object
project35.desktopDeployment.DataFieldView
project35.desktopDeployment.EditFieldView
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)
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 |
RadioFieldView
public RadioFieldView()
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