public class RefreshAction extends Object implements CockpitAction<Object,Object>
| Constructor and Description |
|---|
RefreshAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerform(ActionContext<Object> ctx)
Returns true if the action can be performed for the given context, false otherwise.
|
String |
getConfirmationMessage(ActionContext<Object> ctx)
Returns the confirmation message to be shown to the user in the confirmation dialog if confirmation is needed
(see
CockpitAction.needsConfirmation(ActionContext)). |
boolean |
needsConfirmation(ActionContext<Object> ctx)
Returns true if the action should be confirmed by user before being performed, false otherwise.
|
ActionResult<Object> |
perform(ActionContext<Object> ctx)
Performs the action.
|
public ActionResult<Object> perform(ActionContext<Object> ctx)
CockpitActionperform in interface CockpitAction<Object,Object>ctx - context containing the data and other informationpublic boolean canPerform(ActionContext<Object> ctx)
CockpitActioncanPerform in interface CockpitAction<Object,Object>ctx - context containing the data and other informationpublic boolean needsConfirmation(ActionContext<Object> ctx)
CockpitActionneedsConfirmation in interface CockpitAction<Object,Object>ctx - context containing the data and other informationpublic String getConfirmationMessage(ActionContext<Object> ctx)
CockpitActionCockpitAction.needsConfirmation(ActionContext)).getConfirmationMessage in interface CockpitAction<Object,Object>ctx - context containing the data and other informationCockpitAction.needsConfirmation(ActionContext)Copyright © 2018. All rights reserved.