project35.desktopDeployment
Class IDFieldView

java.lang.Object
  extended by project35.desktopDeployment.DataFieldView
      extended by project35.desktopDeployment.EditFieldView
          extended by project35.desktopDeployment.TextFieldView
              extended by project35.desktopDeployment.IDFieldView
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, TextComponentSupplier, ContextHelpItem

public class IDFieldView
extends TextFieldView
implements java.awt.event.ActionListener

Renders XML schema ID data fields. Each field comes with a "Generate Key" button. pressing the button will cause a value to be produced for the ID 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.TextFieldView
minTextComponentWidth, ontologyServiceManager, ontologyServices, text, textFieldModel
 
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
IDFieldView()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void deregisterToolTipComponents()
          helps ensure that the field view removes its UI components from the the tool tip manager
 void enableContextHelp(boolean enableContextHelp)
          turns context help sensitivity on or off
 java.lang.String getSelectedText()
           
 boolean hasFocus()
           
 void initialise(TextFieldModel idFieldModel, Project35FormContext project35FormContext)
           
 boolean isDirty()
           
 void keepValue()
           
 void restoreValue()
           
 void setFieldValue(java.lang.String value)
           
 
Methods inherited from class project35.desktopDeployment.TextFieldView
clearValues, createOntologyServices, disableOntologyServices, getPrimaryOntologyService, getTextComponent, getValue, newJTextField, pasteClipboardText, reset, setEditable
 
Methods inherited from class project35.desktopDeployment.EditFieldView
changeFont, choosePlugin, editFieldWithEditingComponent, getEditFieldEditingComponent, getModel, getValueSupplier, initialise, setUnits, setValueSupplier
 
Methods inherited from class project35.desktopDeployment.DataFieldView
getActivityArea, getFont, getHelpLink, getLabel, getName, 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

IDFieldView

public IDFieldView()
Method Detail

initialise

public void initialise(TextFieldModel idFieldModel,
                       Project35FormContext project35FormContext)
Overrides:
initialise in class TextFieldView

deregisterToolTipComponents

public void deregisterToolTipComponents()
Description copied from class: EditFieldView
helps ensure that the field view removes its UI components from the the tool tip manager

Overrides:
deregisterToolTipComponents in class TextFieldView

getSelectedText

public java.lang.String getSelectedText()
Overrides:
getSelectedText in class TextFieldView

hasFocus

public boolean hasFocus()
Overrides:
hasFocus in class DataFieldView

setFieldValue

public void setFieldValue(java.lang.String value)
Specified by:
setFieldValue in interface TextComponentSupplier
Overrides:
setFieldValue in class TextFieldView

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class TextFieldView

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

isDirty

public boolean isDirty()
Overrides:
isDirty in class TextFieldView
Returns:
whether the displayed value matches the value stored in the underlying model

keepValue

public void keepValue()
Overrides:
keepValue in class TextFieldView

restoreValue

public void restoreValue()
Overrides:
restoreValue in class TextFieldView