|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
com.ivata.mask.web.struts.DialogForm
com.ivata.mask.web.struts.MaskForm
com.ivata.mask.web.struts.InputMaskForm
This form references a single value object to be displayed.
| Field Summary | |
static java.lang.String |
REQUEST_ATTRIBUTE
Request attribute under which name this form is stored. |
| Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
| Constructor Summary | |
InputMaskForm(com.ivata.mask.valueobject.ValueObject valueObjectParam,
com.ivata.mask.Mask maskParam,
java.lang.Class baseClassParam)
Create a new mask form for the given value object. |
|
| Method Summary | |
protected void |
clear()
Clear all bean properties to their default state.The difference between this and reset is that all properties are changed,
regardless of current request state. |
java.lang.String |
getResourceFieldPath()
The resource field path is the "stem" - the first string before the dot separator (.) - in the application resources for the fields in this form. |
com.ivata.mask.valueobject.ValueObject |
getValueObject()
Value object whose values are to be displayed in the mask. |
boolean |
isApplyButtonHidden()
Should the 'apply' button be shown or hidden? |
boolean |
isClearButtonHidden()
Should the 'new' button be shown or hidden? |
boolean |
isDeleteButtonHidden()
Should the 'delete' button be shown or hidden? |
boolean |
isDeleteWithoutWarn()
Sets whether or not the dialog should warn before deleting a value object. |
boolean |
isDisplayOnly()
If the mask is marked display only, only the text values of the fields are show (i.e. |
boolean |
isRefreshOpener()
For pop-up windows, it is often useful to refresh the page which opened the pop-up, after the pop-up has changed something. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Refer to DialogForm.reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest). |
protected void |
saveProperty(java.lang.String propertyNameParam)
Mark a property to be saved. |
void |
setApplyButtonHidden(boolean applyButtonHiddenParam)
Refer to isApplyButtonHidden(). |
void |
setClearButtonHidden(boolean clearButtonHiddenParam)
Refer to isClearButtonHidden(). |
void |
setDeleteButtonHidden(boolean deleteButtonHiddenParam)
Refer to isDeleteButtonHidden(). |
void |
setDeleteWithoutWarn(boolean deleteWithoutWarnParam)
Refer to isDeleteWithoutWarn(). |
void |
setDisplayOnly(boolean b)
Refer to isDisplayOnly(). |
void |
setRefreshOpener(boolean refreshOpenerParam)
Refer to isRefreshOpener(). |
void |
setResourceFieldPath(java.lang.String resourceFieldPathParam)
Refer to getResourceFieldPath(). |
com.ivata.mask.validation.ValidationErrors |
validate(javax.servlet.http.HttpServletRequest requestParam,
javax.servlet.http.HttpSession sessionParam)
Overridden to check mandatory fields. |
| Methods inherited from class com.ivata.mask.web.struts.MaskForm |
getBaseClass, getMask |
| Methods inherited from class com.ivata.mask.web.struts.DialogForm |
getApply, getBundle, getClear, getDefaultForwardApply, getDefaultForwardDelete, getDefaultForwardOk, getDeleteConfirm, getDeleteKey, getDeleteWarn, getHelpKey, getOk, setApply, setBundle, setClear, setDefaultForwardApply, setDefaultForwardDelete, setDefaultForwardOk, setDeleteConfirm, setDeleteKey, setDeleteWarn, setHelpKey, setOk, validate |
| Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String REQUEST_ATTRIBUTE
Request attribute under which name this form is stored.
| Constructor Detail |
public InputMaskForm(com.ivata.mask.valueobject.ValueObject valueObjectParam,
com.ivata.mask.Mask maskParam,
java.lang.Class baseClassParam)
Create a new mask form for the given value object.
valueObjectParam - value object to be displayed.maskParam - mask containing all the fields definitions to be displayed.baseClassParam - base class of all value objects to show in the list associated
with this mask.| Method Detail |
protected void clear()
throws javax.naming.OperationNotSupportedException
Clear all bean properties to their default state.The difference between
this and reset is that all properties are changed,
regardless of current request state.
clear in class MaskFormOperationNotSupported - if the value object does not have a default
constructor.
javax.naming.OperationNotSupportedExceptionMaskForm.clear()public java.lang.String getResourceFieldPath()
The resource field path is the "stem" - the first string before the dot separator (.) - in the application resources for the fields in this form.
For example, in a form for editing group information this might be simply
"group", and the message resource key for the group
parent field would then be specified in the
ApplicationResources.properties file as
"group.field.parent" (without the quotes).
public com.ivata.mask.valueobject.ValueObject getValueObject()
public boolean isApplyButtonHidden()
true if the apply button should NOT be shown.public boolean isClearButtonHidden()
true if the new button should NOT be shown.public boolean isDeleteButtonHidden()
true if the delete button should NOT be
shown.public boolean isDeleteWithoutWarn()
true if a warning is displayed before deleting.public boolean isDisplayOnly()
true if only text field values should be shown.public boolean isRefreshOpener()
true if the page which opened this one
should be refreshed on delete or confirm.
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
DialogForm.reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest).
reset in class DialogFormmapping - Refer to DialogForm.reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest).request - Refer to DialogForm.reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest).DialogForm.reset(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)protected final void saveProperty(java.lang.String propertyNameParam)
clear method
(and hence the reset method)
will set all property values to null. By adding your
property to the list of those saved here, it will be ignored in the
clear method.
propertyNameParam - name of the property to save.public final void setApplyButtonHidden(boolean applyButtonHiddenParam)
isApplyButtonHidden().
applyButtonHiddenParam - Refer to isApplyButtonHidden().public final void setClearButtonHidden(boolean clearButtonHiddenParam)
isClearButtonHidden().
clearButtonHiddenParam - Refer to isClearButtonHidden().public final void setDeleteButtonHidden(boolean deleteButtonHiddenParam)
isDeleteButtonHidden().
deleteButtonHiddenParam - Refer to isDeleteButtonHidden().public final void setDeleteWithoutWarn(boolean deleteWithoutWarnParam)
isDeleteWithoutWarn().
deleteWithoutWarnParam - Refer to isDeleteWithoutWarn().public final void setDisplayOnly(boolean b)
isDisplayOnly().
b - Refer to isDisplayOnly().public final void setRefreshOpener(boolean refreshOpenerParam)
isRefreshOpener().
refreshOpenerParam - Refer to isRefreshOpener().public void setResourceFieldPath(java.lang.String resourceFieldPathParam)
getResourceFieldPath().
resourceFieldPathParam - Refer to getResourceFieldPath().
public com.ivata.mask.validation.ValidationErrors validate(javax.servlet.http.HttpServletRequest requestParam,
javax.servlet.http.HttpSession sessionParam)
validate in class MaskFormrequestParam - Refer to DialogForm.validate(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest).sessionParam - Refer to DialogForm.validate(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest). DialogForm.validate(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||