project35.desktopDeployment
Class ListFieldView

java.lang.Object
  extended by project35.desktopDeployment.DataFieldView
      extended by project35.desktopDeployment.ListFieldView
All Implemented Interfaces:
ContextHelpItem
Direct Known Subclasses:
MTMVListFieldView, MTSVListFieldView, STMVListFieldView, STSVListFieldView

public abstract class ListFieldView
extends DataFieldView

basic class for rendering a list field for forms. A list field view manages an instance of a ListTypeManager and a ListValueManager. A ListTypeManager provides UI components that allow users to choose what type of sub-record they can produce. SingleListTypeManager provides no UI component because there is only one type of child that can be produced. MultiListTypeManager renders a drop down box of choices for child types that appears in the list field. A ListValueManager displays the sub-records. A SingleListValueManager will render a sub-record as a text field. The field is ineditable but will show the display name of the child record.


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  ListFieldModel listFieldModel
           
protected  ListTypeManager listTypeManager
           
protected  ListValueManager listValueManager
           
 
Fields inherited from class project35.desktopDeployment.DataFieldView
activityArea, collator, dataFieldModel, font, label, name, project35FormContext, project35UIFactory
 
Constructor Summary
ListFieldView()
           
 
Method Summary
 void changeFont(java.awt.Font font)
           
 void deregisterToolTipComponents()
           
 void enableContextHelp(boolean enableContextHelp)
          turns context help sensitivity on or off
 ListFieldModel getListFieldModel()
           
protected  void initialise(ListFieldModel listFieldModel, Project35FormContext project35FormContext)
           
 void refresh()
           
 void setListTypeManager(ListTypeManager listTypeManager)
           
 void setListValueManager(ListValueManager listValueManager)
           
 java.lang.String validate(boolean highlightErrors)
           
 
Methods inherited from class project35.desktopDeployment.DataFieldView
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

listTypeManager

protected ListTypeManager listTypeManager

listValueManager

protected ListValueManager listValueManager

listFieldModel

protected ListFieldModel listFieldModel
Constructor Detail

ListFieldView

public ListFieldView()
Method Detail

initialise

protected void initialise(ListFieldModel listFieldModel,
                          Project35FormContext project35FormContext)

getListFieldModel

public ListFieldModel getListFieldModel()

deregisterToolTipComponents

public void deregisterToolTipComponents()
Overrides:
deregisterToolTipComponents in class DataFieldView

setListTypeManager

public void setListTypeManager(ListTypeManager listTypeManager)

setListValueManager

public void setListValueManager(ListValueManager listValueManager)

refresh

public void refresh()

validate

public java.lang.String validate(boolean highlightErrors)

enableContextHelp

public void enableContextHelp(boolean enableContextHelp)
turns context help sensitivity on or off

Specified by:
enableContextHelp in interface ContextHelpItem
Overrides:
enableContextHelp in class DataFieldView
Parameters:
enableContextHelp - true if context help is on; otherwise false

changeFont

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