|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.paneris.jal.model.DDField
public class DDField
This represents the results data for an individual Field in the database.
Constructor Summary | |
---|---|
DDField(java.lang.String db,
java.lang.Integer fieldNumber)
Construct a results field given a database, and a field number. |
Method Summary | |
---|---|
java.lang.String |
getCSVValue()
formats this field to be output to a CSV format file We delegate all this work to the (static) class CSVUtil |
java.lang.String |
getDisplayValue()
|
java.lang.String |
getDropDown()
build a drop down list for this field (with the current value selected) |
java.lang.String |
getDropDown(java.lang.String allValue)
build a drop down list for this field (with the current value selected), this would normally be used to build drop-downs for templates |
java.lang.String |
getDropDown(java.lang.String fieldname,
boolean mandatory,
java.lang.String allName)
Does the work of creating HTML select tags. |
java.lang.String |
getDropDown(java.lang.String name,
java.lang.String allValue)
build a drop down list for this field (with the current value selected), this would normally be used to build drop-downs for templates |
java.lang.String |
getHiddenValue()
formats this field to be displayed on a html page as a hidden input of the correct type We delegate all this work of creating HTML to (the static class) HTMLUtil |
java.lang.String |
getHiddenValueWithPostfix(java.lang.String postfix)
|
java.lang.String |
getInputValue()
formats this field to be displayed on a html page as in input box of the correct type |
java.lang.String |
getInputValue(java.lang.String allValue)
formats this field to be displayed on a html page as in input box of the correct type If it is a lookup field then set allValue if you would like an extra option with value 0 (and display value allValue) |
java.lang.String |
getInputValueWithPostfix(java.lang.String postfix)
|
java.lang.String |
getJavascriptDisplayValue()
formats this field to be displayed on a web page. |
java.lang.String |
getJSValidation()
|
java.lang.String |
getJSValidation(java.lang.String displayname)
|
java.lang.String |
getJSValidation(java.lang.String fieldname,
java.lang.String displayname)
|
java.lang.String |
getJSValidation(java.lang.String fieldname,
java.lang.String displayname,
boolean mandatory)
Does the work of creating JavaScript functions for validation. |
java.lang.String |
getJSValidationWithPostfix(java.lang.String postfix)
Utility for multiple record editing |
java.lang.String |
getLinkedSelect()
build a drop down list for this field (with the current value selected) |
java.lang.String |
getLinkedSelect(java.lang.String allName)
build a drop down list for this field (with the current value selected), this would normally be used to build drop-downs for templates |
java.lang.String |
getLinkedSelect(java.lang.String fieldname,
boolean mandatory,
boolean unique,
java.lang.String allValue,
java.lang.String allName)
|
DDRecord |
getLookup()
Gos and gets the results set if this field has a lookup. |
FieldMetaData |
getMetaData()
returns the metaData |
ValidationProblem |
getProblem()
Does some checks and returns any problems |
java.lang.String |
getStringValue()
return the string value |
java.lang.Object |
getValue()
returns the value |
void |
setProblem(ValidationProblem prob)
Sets the problem field |
void |
setValue(java.lang.Object v)
sets the value from an object. |
void |
setValue(java.lang.String v)
sets the value |
void |
setValueFromLookup(java.lang.String v)
sets the value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DDField(java.lang.String db, java.lang.Integer fieldNumber) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public DDRecord getLookup() throws java.lang.Exception
java.lang.Exception
public java.lang.String getJavascriptDisplayValue() throws java.lang.Exception
java.lang.Exception
public java.lang.String getDisplayValue() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCSVValue() throws java.lang.Exception
java.lang.Exception
public java.lang.String getHiddenValue() throws java.lang.Exception
java.lang.Exception
public java.lang.String getHiddenValueWithPostfix(java.lang.String postfix) throws java.lang.Exception
java.lang.Exception
public java.lang.String getInputValue() throws java.lang.Exception
java.lang.Exception
public java.lang.String getInputValue(java.lang.String allValue) throws java.lang.Exception
java.lang.Exception
public java.lang.String getInputValueWithPostfix(java.lang.String postfix) throws java.lang.Exception
java.lang.Exception
public java.lang.String getLinkedSelect() throws java.lang.Exception
java.lang.Exception
public java.lang.String getLinkedSelect(java.lang.String allName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getLinkedSelect(java.lang.String fieldname, boolean mandatory, boolean unique, java.lang.String allValue, java.lang.String allName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDropDown() throws java.lang.Exception
java.lang.Exception
public java.lang.String getDropDown(java.lang.String allValue) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDropDown(java.lang.String name, java.lang.String allValue) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDropDown(java.lang.String fieldname, boolean mandatory, java.lang.String allName) throws java.lang.Exception
java.lang.Exception
public java.lang.String getJSValidation(java.lang.String fieldname, java.lang.String displayname, boolean mandatory) throws java.lang.Exception
java.lang.Exception
public java.lang.String getJSValidation(java.lang.String fieldname, java.lang.String displayname) throws java.lang.Exception
java.lang.Exception
public java.lang.String getJSValidation(java.lang.String displayname) throws java.lang.Exception
java.lang.Exception
public java.lang.String getJSValidation() throws java.lang.Exception
java.lang.Exception
public java.lang.String getJSValidationWithPostfix(java.lang.String postfix) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getValue()
public FieldMetaData getMetaData()
public java.lang.String getStringValue()
public ValidationProblem getProblem()
public void setProblem(ValidationProblem prob)
public void setValue(java.lang.Object v)
public void setValueFromLookup(java.lang.String v) throws java.lang.Exception
java.lang.Exception
public void setValue(java.lang.String v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |