public class PSaveManager extends Object implements PropertyChangeListener
Constructor and Description |
---|
PSaveManager()
Creates the save manager instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
displayErrorMessage()
Displays an error message indicating that there was a failure during
saving.
|
boolean |
displayErrorMessage(String sCustErrorMsg)
Displays an error message indicating that there was a failure during
saving.
|
static Component |
findErrorComponent(Component base,
com.portal.app.util.CustomerValErrorData[] err,
boolean checkAllComponents)
For a passed-in array of model field descriptions, seeks those components with matching model field
descriptions and marks them as being in error.
|
void |
propertyChange(PropertyChangeEvent e)
Internal listener for changes to the property that determines if
the user is queried before saving changes (when switching tabs).
|
boolean |
save(PPageTemplate temp)
Attempt to save the currently visible page in the given
PPageTemplate . |
public boolean save(PPageTemplate temp)
PPageTemplate
. The page is responsible for doing any
error handling (for example, putting up an error message,
marking a field associated with the error, etc.).The
- template to save.true
if the save was successful or there was
nothing to save. A return value of false
means the CSR
has requested to remain on the current page. (false
will
be returned if the page on which the save attempt is being
made throws a PSaveException
.)PAccountViewPage.save()
public boolean displayErrorMessage()
public boolean displayErrorMessage(String sCustErrorMsg)
the
- customer error messagepublic void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- The property change eventpublic static Component findErrorComponent(Component base, com.portal.app.util.CustomerValErrorData[] err, boolean checkAllComponents)
base
- Top-level component in which to start the searcherr
- Array of model field descriptionscheckAllComponents
- True to examine all components; false to check only dirty componentsCopyright © 2003, 2023, Oracle and/or its affiliates.