project35.desktopDeployment
Class ListValueManager
java.lang.Object
project35.desktopDeployment.ListValueManager
- All Implemented Interfaces:
- ListTypeListener
- Direct Known Subclasses:
- MultiListValueManager, SingleListValueManager
public abstract class ListValueManager
- extends java.lang.Object
- implements ListTypeListener
manages the values contained in list fields. This class contains most of the code used to
edit, create or delete a list field's records. It checks with the ConfigurationReader to
determine whether pressing "New" or "Edit" should cause another Project35 form to appear, or
if a specialised list field editing component should be used.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editOnDoubleClickAdaptor
protected final java.awt.event.MouseAdapter editOnDoubleClickAdaptor
- embedded class takes advantage of using the editRecord method
that is part of ListValueManager. This is the action that
is invoked when end-users double click on an item in a
multiple item list
buttonPanel
protected ListValueButtonPanel buttonPanel
listFieldModel
protected ListFieldModel listFieldModel
listTypeManager
protected ListTypeManager listTypeManager
project35FormContext
protected Project35FormContext project35FormContext
project35UIFactory
protected Project35UIFactory project35UIFactory
collator
protected java.text.Collator collator
ListValueManager
public ListValueManager(ListTypeManager listTypeManager,
Project35FormContext project35FormContext,
boolean allowMultipleValues)
getEditButtons
public java.awt.Component getEditButtons()
getListArea
public abstract java.awt.Component getListArea()
deregisterToolTipComponents
public void deregisterToolTipComponents()
setModel
protected void setModel(ListFieldModel listFieldModel)
setButtonsBasedOnCurrentRecordType
protected void setButtonsBasedOnCurrentRecordType(java.lang.String currentType)
listTypeChanged
public abstract void listTypeChanged(java.lang.String currentType)
- Specified by:
listTypeChanged
in interface ListTypeListener
refresh
public abstract void refresh()
removeSelectedRecords
public abstract void removeSelectedRecords()
enableContextHelp
public void enableContextHelp(boolean enableContextHelp)
reset
public abstract void reset()
deleteRecords
protected void deleteRecords()
newRecord
protected void newRecord()
editRecord
protected void editRecord()
referenceRecord
protected void referenceRecord()
changeFont
public void changeFont(java.awt.Font font)