|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.mda.model.DataFieldModel project35.mda.model.EditFieldModel
public class EditFieldModel
A model data structure that represents an editable field. Project35 divides its data fields into list fields and edit fields. An edit field can be rendered as a text field, a combination field, or a radio field. Edit fields have a number of characteristics including:
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.mda.model.DataFieldModel |
---|
containingRecord, isAttribute, isRequiredField |
Constructor Summary | |
---|---|
EditFieldModel()
|
Method Summary | |
---|---|
void |
addEditFieldValidationService(EditFieldValidationService editFieldValidationService)
adds a validator instance to the list. |
java.lang.Object |
clone()
|
java.lang.String |
getDefaultValue()
Get the value of defaultValue. |
java.util.ArrayList |
getEditFieldValidationServices()
|
java.lang.String |
getUnits()
|
java.lang.String |
getValue()
Get the value of value. |
boolean |
isDisplayNameComponent()
|
protected void |
populateCloneAttributes(EditFieldModel original,
EditFieldModel copy)
|
void |
setDefaultValue(java.lang.String defaultValue)
Set the value of defaultValue. |
void |
setDisplayNameComponent(boolean isDisplayNameComponent)
determines whether the field should be part of the display name for the record that contains this field. |
void |
setEditFieldValidationServices(java.util.ArrayList editFieldValidationServices)
sets the entire list of editFieldValidationServices associated with this data field |
void |
setRequiredField(boolean isRequiredField)
sets whether the field is required or optional |
void |
setUnits(java.lang.String units)
|
void |
setValue(java.lang.String value)
Set the value of value. |
Methods inherited from class project35.mda.model.DataFieldModel |
---|
getContainingRecord, getContainingRecordClassName, getFieldViewType, getHelpLink, getName, getNameSpacePrefix, getToolTip, isAttribute, isContent, isRequiredField, populateCloneAttributes, setAttribute, setContainingRecord, setContent, setFieldViewType, setHelpLink, setName, setNameSpacePrefix, setToolTipText, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EditFieldModel()
Method Detail |
---|
public java.lang.String getValue()
public java.lang.String getDefaultValue()
public java.util.ArrayList getEditFieldValidationServices()
public java.lang.String getUnits()
public void setDisplayNameComponent(boolean isDisplayNameComponent)
isDisplayNameComponent
- true if the field should
be part of the display name; false if the field should not
be part of the display namepublic void setValue(java.lang.String value)
value
- Value to assign to value.public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- Value to assign to defaultValue.public void addEditFieldValidationService(EditFieldValidationService editFieldValidationService)
editFieldValidationService
- an object that performs a validator routinepublic void setEditFieldValidationServices(java.util.ArrayList editFieldValidationServices)
editFieldValidationServices
- the list of instances of classes that
implement the Validator interfacepublic void setRequiredField(boolean isRequiredField)
DataFieldModel
setRequiredField
in class DataFieldModel
isRequiredField
- true if the field is required; otherwise the field is
optionalpublic void setUnits(java.lang.String units)
public boolean isDisplayNameComponent()
public java.lang.Object clone()
clone
in class DataFieldModel
protected void populateCloneAttributes(EditFieldModel original, EditFieldModel copy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |