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.
-
ResultsField(String, Integer)
- construct a results field given a database, and a field number
-
getDisplayValue()
-
formats this field to be displayed on a web page.
-
getDropDown()
- build a drop down list for this field (with the current value selected)
-
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
-
getDropDown(String, boolean, String)
-
-
getInputValue()
- formats this field to be displayed on a html page as in input box of the correct type
-
getLookup()
-
gos and gets the results set if this field has a lookup.
-
getMetaData()
-
-
getValue()
- returns the value
-
setValue(Object)
- sets the value
-
setValue(String)
- sets the value
-
setValueFromLookup(String)
- sets the value
ResultsField
public ResultsField(String db,
Integer fieldNumber) throws Exception
- construct a results field given a database, and a field number
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
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
getInputValue
public String getInputValue() throws Exception
- formats this field to be displayed on a html page as in input box of the correct type
getDropDown
public String getDropDown() throws Exception
- build a drop down list for this field (with the current value selected)
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
getDropDown
public String getDropDown(String fieldname,
boolean mandatory,
String allValue) throws Exception
getValue
public Object getValue()
- returns the value
setValue
public void setValue(Object v)
- sets the value
setValueFromLookup
public void setValueFromLookup(String v) throws Exception
- sets the value
setValue
public void setValue(String v)
- sets the value
getMetaData
public FieldMetaData getMetaData()
All Packages Class Hierarchy This Package Previous Next Index