com.objex.progeny.anywhere.fields
Class XRFTableField

java.lang.Object
  extended by com.objex.progeny.anywhere.fields.XRFIDSDataField
      extended by com.objex.progeny.anywhere.fields.XRFTableField
All Implemented Interfaces:
XRFField, java.io.Serializable

public class XRFTableField
extends XRFIDSDataField

See Also:
Serialized Form

Constructor Summary
XRFTableField()
          Creates a new instance of TextField
 
Method Summary
 int countSubFields()
           
 XRFData createFieldData(java.lang.Object value)
          Creates a FieldData object of the relevant type depending on the field type.
 java.lang.Class getFieldClass()
           
 java.lang.String getImageURL()
           
 XRFField getSubfield(int aIndex)
          Rteurn Subfield at the specified index if one exists otherwise NULL
 XRFField[] getSubfields()
           
 boolean isCalcField()
           
 boolean isComputed()
           
 boolean isTable()
           
 void setSubfield(XRFField aSubfield, int aIndex)
          Add a subfield to the subfields array at specified index.
 void setSubfields(XRFField[] subfields)
           
 java.lang.String transform(java.lang.Object a_from)
          Where possible, transform the value a_from contained some place as the data for this field, into a string literal representation
 
Methods inherited from class com.objex.progeny.anywhere.fields.XRFIDSDataField
equals, getDefaultWidth, getDropdownValues, getFieldid, getFieldname, getFieldtype, getLookupTableInfo, getTableid, getType, getUpdateColsCount, isSystemField, setDefaultWidth, setDropdownValues, setFieldid, setFieldname, setFieldtype, setLookupTableInfo, setTableid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRFTableField

public XRFTableField()
Creates a new instance of TextField

Method Detail

createFieldData

public XRFData createFieldData(java.lang.Object value)
Description copied from interface: XRFField
Creates a FieldData object of the relevant type depending on the field type. Must set the XRFData.setField(XRFField) property

Parameters:
value - The default data value
Returns:
an Empty XRFTableData object unless value is a map of the following signature Map

getImageURL

public java.lang.String getImageURL()

transform

public java.lang.String transform(java.lang.Object a_from)
Description copied from interface: XRFField
Where possible, transform the value a_from contained some place as the data for this field, into a string literal representation


getFieldClass

public java.lang.Class getFieldClass()
Returns:
The Class for all data objects carried by this field

isComputed

public boolean isComputed()

isCalcField

public boolean isCalcField()
Returns:
TRUE if the field is not editable and is a calculated or computed field e.g. computed, table summary and summary fields

isTable

public boolean isTable()

getSubfields

public XRFField[] getSubfields()
Specified by:
getSubfields in interface XRFField
Overrides:
getSubfields in class XRFIDSDataField

setSubfields

public void setSubfields(XRFField[] subfields)
Specified by:
setSubfields in interface XRFField
Overrides:
setSubfields in class XRFIDSDataField

getSubfield

public XRFField getSubfield(int aIndex)
Rteurn Subfield at the specified index if one exists otherwise NULL


setSubfield

public void setSubfield(XRFField aSubfield,
                        int aIndex)
Add a subfield to the subfields array at specified index. Should probably use a Vector or ArrayList instead of doing this BS


countSubFields

public int countSubFields()
Specified by:
countSubFields in interface XRFField
Overrides:
countSubFields in class XRFIDSDataField