public class ProgressReporter extends Object implements Serializable
Constructor and Description |
---|
ProgressReporter() |
Modifier and Type | Method and Description |
---|---|
void |
clearProgressPanel() |
static ProgressReporter |
create(ProgressReportingAwarePage parentPage,
org.apache.wicket.markup.html.form.Form mainForm,
String id)
Creates and initializes a progress reporter instance.
|
void |
executeChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas,
ModelExecuteOptions options,
Task task,
OperationResult result,
org.apache.wicket.ajax.AjaxRequestTarget target)
Executes changes on behalf of the parent page.
|
void |
hideProgressPanel() |
void |
hideSaveButton(org.apache.wicket.ajax.AjaxRequestTarget target) |
boolean |
isAllSuccess() |
void |
onAbortSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
You have to call this method when Abort button is pressed
|
void |
onSaveSubmit()
Should be called when "save" button is submitted.
|
void |
registerAbortButton(AjaxSubmitButton abortButton) |
void |
registerSaveButton(AjaxSubmitButton saveButton)
By calling this, let the reporter know what is your "Save" button - e.g.
|
void |
showAbortButton(org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
showProgressPanel() |
void |
showSaveButton(org.apache.wicket.ajax.AjaxRequestTarget target) |
public static ProgressReporter create(ProgressReportingAwarePage parentPage, org.apache.wicket.markup.html.form.Form mainForm, String id)
parentPage
- The parent page (user, org, role, ...)mainForm
- A form onto which progress panel should be putid
- Wicket ID of the progress panelpublic void registerSaveButton(AjaxSubmitButton saveButton)
public void onSaveSubmit()
public void executeChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas, ModelExecuteOptions options, Task task, OperationResult result, org.apache.wicket.ajax.AjaxRequestTarget target)
deltas
- Deltas to be executed.options
- Model execution options.task
- Task in context of which the changes have to be executed.result
- Operation result.target
- AjaxRequestTarget into which any synchronous changes are signalized.public void hideSaveButton(org.apache.wicket.ajax.AjaxRequestTarget target)
public void showSaveButton(org.apache.wicket.ajax.AjaxRequestTarget target)
public void registerAbortButton(AjaxSubmitButton abortButton)
public void onAbortSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
public void showAbortButton(org.apache.wicket.ajax.AjaxRequestTarget target)
public boolean isAllSuccess()
public void showProgressPanel()
public void hideProgressPanel()
public void clearProgressPanel()
Copyright © 2014 evolveum. All rights reserved.