|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.springlayout.web.layout.OnPageFieldInstance
public class OnPageFieldInstance
This is an instance of an actual field that is rendered on a page. There may
be multiple instances for the same fieldDefinition. Each with an indexed path
to the actual location within the command object. Most times there will at
least be a label and a field, both being separate
OnPageFieldInstances.
The OnPageFieldInstance contains details about a field, it's actual id within
the form where it is to be rendered, and whether it is currently marked as a
mandatory field. This class allows a form to render aggregated Javascript at
the end of the form rendering process.
| Constructor Summary | |
|---|---|
OnPageFieldInstance()
default constructor |
|
OnPageFieldInstance(java.lang.String fieldId,
FieldDefinition fieldDefinition,
PageAccessHolder pageAccessHolder,
boolean grouped,
int groupSize)
|
|
| Method Summary | |
|---|---|
void |
addExternalMandatoryRule(java.lang.String rule)
|
boolean |
equals(java.lang.Object obj)
|
java.util.List |
getExternalManadatoryRules()
Retrieves the externalManadatoryRules for this OnPageFieldInstance. |
FieldDefinition |
getFieldDefinition()
Retrieves the fieldDefinition for this OnPageFieldInstance. |
java.lang.String |
getFieldId()
Retrieves the fieldId for this OnPageFieldInstance. |
boolean |
getHasErrors()
Get the current error status for the field |
java.lang.String |
getJavascript(boolean isValidationMode,
java.lang.Object command,
java.lang.String formName)
|
boolean |
getReadOnly()
get the current field readonly property |
int |
hashCode()
|
boolean |
isFailedMandatory(org.springframework.beans.BeanWrapper wrappedObject)
|
boolean |
isFailedValidation(org.springframework.beans.BeanWrapper wrappedObject)
Validates the field for mandatory'ness and valid data |
boolean |
isGrouped()
|
boolean |
isMandatory(org.springframework.beans.BeanWrapper wrappedObject)
is the current field status mandatory |
void |
setExternalManadatoryRules(java.util.List externalManadatoryRules)
Sets the externalManadatoryRules for this OnPageFieldInstance. |
void |
setFieldDefinition(FieldDefinition fieldDefinition)
Sets the fieldDefinition for this OnPageFieldInstance. |
void |
setFieldId(java.lang.String fieldId)
Sets the fieldId for this OnPageFieldInstance. |
void |
setHasErrors(boolean hasErrors)
set the current error status for the field |
void |
setReadOnly(boolean readOnly)
set the current field readonly property |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OnPageFieldInstance()
public OnPageFieldInstance(java.lang.String fieldId,
FieldDefinition fieldDefinition,
PageAccessHolder pageAccessHolder,
boolean grouped,
int groupSize)
fieldId - fieldDefinition - currentlyMandatory - | Method Detail |
|---|
public java.util.List getExternalManadatoryRules()
public void setExternalManadatoryRules(java.util.List externalManadatoryRules)
externalManadatoryRules - Sets the externalManadatoryRules for this OnPageFieldInstance.public void addExternalMandatoryRule(java.lang.String rule)
rule - public FieldDefinition getFieldDefinition()
public void setFieldDefinition(FieldDefinition fieldDefinition)
fieldDefinition - Sets the fieldDefinition for this OnPageFieldInstance.public java.lang.String getFieldId()
public void setFieldId(java.lang.String fieldId)
fieldId - Sets the fieldId for this OnPageFieldInstance.public boolean isMandatory(org.springframework.beans.BeanWrapper wrappedObject)
public boolean getReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - public boolean getHasErrors()
public void setHasErrors(boolean hasErrors)
hasErrors -
public java.lang.String getJavascript(boolean isValidationMode,
java.lang.Object command,
java.lang.String formName)
public boolean isFailedMandatory(org.springframework.beans.BeanWrapper wrappedObject)
public boolean isFailedValidation(org.springframework.beans.BeanWrapper wrappedObject)
wrappedObject -
public boolean isGrouped()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||