|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.desktopDeployment.DataFieldView project35.desktopDeployment.EditFieldView project35.desktopDeployment.DateFieldView
public class DateFieldView
Visualises a date field. Project35 allows the user to choose which format to use for interpretting and representing date values. However, it always stores a canonical date value in the underlying model.
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.
Field Summary |
---|
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 | |
---|---|
DateFieldView()
|
Method Summary | |
---|---|
void |
changeFont(java.awt.Font font)
|
java.lang.String |
getCanonicalValue()
|
java.lang.String |
getSelectedText()
|
java.lang.String |
getValue()
|
void |
initialise(EditFieldModel editFieldModel,
Project35FormContext project35FormContext)
|
boolean |
isDirty()
determines whether the saved and current values are the same In this case, the current value must first be converted to a canonical value so it can be compared with the canonical date stored in the model |
void |
keepValue()
commits the date value to the underlying model component. |
void |
refreshLabel()
used to update the date field label in cases where the user has changed the format of the date |
void |
restoreValue()
restores the text value with the current value in the model |
void |
setFieldValue(java.lang.String value)
commits the field value to the underlying model |
void |
setName(java.lang.String name)
overrides the setName method of DataFieldView. |
void |
setValue(java.lang.String value)
|
Methods inherited from class project35.desktopDeployment.EditFieldView |
---|
actionPerformed, choosePlugin, deregisterToolTipComponents, editFieldWithEditingComponent, getEditFieldEditingComponent, getModel, getValueSupplier, setUnits, setValueSupplier |
Methods inherited from class project35.desktopDeployment.DataFieldView |
---|
enableContextHelp, getActivityArea, getFont, getHelpLink, getLabel, getName, hasFocus, indicateErrors, initialise, isContextHelpEnabled, isRequiredField, setActivityArea, setHelpLink, setRequiredField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateFieldView()
Method Detail |
---|
public void initialise(EditFieldModel editFieldModel, Project35FormContext project35FormContext)
initialise
in class EditFieldView
public void setFieldValue(java.lang.String value)
setFieldValue
in class EditFieldView
public java.lang.String getSelectedText()
public void refreshLabel()
public java.lang.String getCanonicalValue()
public void setValue(java.lang.String value)
public boolean isDirty()
isDirty
in class EditFieldView
public void setName(java.lang.String name)
setName
in class DataFieldView
name
- the name of the fieldpublic void restoreValue()
restoreValue
in class EditFieldView
public java.lang.String getValue()
getValue
in class EditFieldView
public void keepValue()
keepValue
in class EditFieldView
public void changeFont(java.awt.Font font)
changeFont
in class EditFieldView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |