project35.desktopDeployment
Class URIFieldView
java.lang.Object
project35.desktopDeployment.DataFieldView
project35.desktopDeployment.EditFieldView
project35.desktopDeployment.URIFieldView
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, ContextHelpItem
public class URIFieldView
- extends EditFieldView
- implements java.awt.event.ActionListener
Renders URL data fields. Each field comes with a "Browse" button. if
the FileLauncher indicates that the file extension has an associated
launch application, then an additional button "View" appears. The view
renders an EditFieldModel
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 |
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 |
URIFieldView
public URIFieldView()
initialise
public void initialise(EditFieldModel editFieldModel,
Project35FormContext project35FormContext)
- Overrides:
initialise
in class EditFieldView
getSelectedText
public java.lang.String getSelectedText()
hasFocus
public boolean hasFocus()
- Overrides:
hasFocus
in class DataFieldView
getValue
public java.lang.String getValue()
- Overrides:
getValue
in class EditFieldView
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 EditFieldView
setFieldValue
public void setFieldValue(java.lang.String value)
- Specified by:
setFieldValue
in class EditFieldView
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class EditFieldView
changeFont
public void changeFont(java.awt.Font font)
- Overrides:
changeFont
in class EditFieldView
keepValue
public void keepValue()
- Specified by:
keepValue
in class EditFieldView
restoreValue
public void restoreValue()
- Specified by:
restoreValue
in class EditFieldView
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()
- Specified by:
isDirty
in class EditFieldView
- Returns:
- whether there is a difference between the displayed value
and the value saved value contained in the underlying model component.