All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.paneris.util.ResultsField

java.lang.Object
   |
   +----org.paneris.util.ResultsField

public class ResultsField
extends Object

This represents the resluts data for an individual Field in the database.


Constructor Index

 o ResultsField(String, Integer)
construct a results field given a database, and a field number

Method Index

 o getDisplayValue()
formats this field to be displayed on a web page.
 o getDropDown()
build a drop down list for this field (with the current value selected)
 o getDropDown(String)
build a drop down list for this field (with the current value selected), this would normally be used to build drop-downs for templates
 o getDropDown(String, boolean, String)
 o getInputValue()
formats this field to be displayed on a html page as in input box of the correct type
 o getLookup()
gos and gets the results set if this field has a lookup.
 o getMetaData()
 o getValue()
returns the value
 o setValue(Object)
sets the value
 o setValue(String)
sets the value
 o setValueFromLookup(String)
sets the value

Constructors

 o ResultsField
 public ResultsField(String db,
                     Integer fieldNumber) throws Exception
construct a results field given a database, and a field number

Methods

 o getLookup
 public ResultsSet getLookup() throws Exception
gos and gets the results set if this field has a lookup. if not it will just return null

 o getDisplayValue
 public String getDisplayValue() throws Exception
formats this field to be displayed on a web page. this method will return null if the value is not set - bit controversial, but it allows the value to be used in the webmacro #if directive

 o getInputValue
 public String getInputValue() throws Exception
formats this field to be displayed on a html page as in input box of the correct type

 o getDropDown
 public String getDropDown() throws Exception
build a drop down list for this field (with the current value selected)

 o getDropDown
 public String getDropDown(String allValue) throws Exception
build a drop down list for this field (with the current value selected), this would normally be used to build drop-downs for templates

 o getDropDown
 public String getDropDown(String fieldname,
                           boolean mandatory,
                           String allValue) throws Exception
 o getValue
 public Object getValue()
returns the value

 o setValue
 public void setValue(Object v)
sets the value

 o setValueFromLookup
 public void setValueFromLookup(String v) throws Exception
sets the value

 o setValue
 public void setValue(String v)
sets the value

 o getMetaData
 public FieldMetaData getMetaData()

All Packages  Class Hierarchy  This Package  Previous  Next  Index