project35.mda.model
Class FieldViewType

java.lang.Object
  extended by project35.mda.model.FieldViewType
All Implemented Interfaces:
java.io.Serializable

public final class FieldViewType
extends java.lang.Object
implements java.io.Serializable

An enumerator class used to describe a family of UI rendering hints. When the schema is read, the reader creates factories for each kind of record structure that can be instantiated. The schema contains information to help determine how each record field should be rendered (ie a text field, radio field, combination field). When project35.view.RecordView is set with a new RecordModel, RecordView interrogates each model field and uses the FieldViewType to figure out which best view component to render the field moel information with.


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)
See Also:
Serialized Form

Field Summary
static FieldViewType COMBINATION_FIELD
          combination UI field rendering type
static FieldViewType DATE_FIELD
          date field UI rendering type
static FieldViewType DATE_TIME_FIELD
          date field UI rendering type
static FieldViewType ID_FIELD
          ID Field rendering type
static FieldViewType N_TYPE_N_VALUE_LIST
          list field UI field rendering type for lists that support only multiple subrecord types and multiple subrecord value
static FieldViewType N_TYPE_ONE_VALUE_LIST
          list field UI field rendering type for lists that support only multiple subrecord types but only one subrecord value
static FieldViewType ONE_TYPE_N_VALUE_LIST
          list field UI field rendering type for lists that support only one subrecord type but have multiple values
static FieldViewType ONE_TYPE_ONE_VALUE_LIST
          list field UI field rendering type for lists that support only one subrecord type and only one subrecord value
static FieldViewType RADIO_FIELD
          radio field UI rendering type
static FieldViewType TEXT_FIELD
          text field UI rendering type
static FieldViewType URI_FIELD
          URI field UI rendering type
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT_FIELD

public static final FieldViewType TEXT_FIELD
text field UI rendering type


DATE_FIELD

public static final FieldViewType DATE_FIELD
date field UI rendering type


DATE_TIME_FIELD

public static final FieldViewType DATE_TIME_FIELD
date field UI rendering type


RADIO_FIELD

public static final FieldViewType RADIO_FIELD
radio field UI rendering type


COMBINATION_FIELD

public static final FieldViewType COMBINATION_FIELD
combination UI field rendering type


ONE_TYPE_ONE_VALUE_LIST

public static final FieldViewType ONE_TYPE_ONE_VALUE_LIST
list field UI field rendering type for lists that support only one subrecord type and only one subrecord value


ONE_TYPE_N_VALUE_LIST

public static final FieldViewType ONE_TYPE_N_VALUE_LIST
list field UI field rendering type for lists that support only one subrecord type but have multiple values


N_TYPE_ONE_VALUE_LIST

public static final FieldViewType N_TYPE_ONE_VALUE_LIST
list field UI field rendering type for lists that support only multiple subrecord types but only one subrecord value


N_TYPE_N_VALUE_LIST

public static final FieldViewType N_TYPE_N_VALUE_LIST
list field UI field rendering type for lists that support only multiple subrecord types and multiple subrecord value


URI_FIELD

public static final FieldViewType URI_FIELD
URI field UI rendering type


ID_FIELD

public static final FieldViewType ID_FIELD
ID Field rendering type

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object