public class LogoAction extends DefaultActionRenderer<Object,Object> implements CockpitAction<Object,Object>
DefaultActionRenderer.DefaultActionRendererEventListener<T extends org.zkoss.zk.ui.event.Event>| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOVER_IMAGE_URL |
static String |
DEFAULT_HYPERLINK_HYBRIS_COM |
static String |
DEFAULT_IMAGE_URL |
static String |
DEFAULT_LOGO_BUTTON_S_CLASS |
static String |
DEFAULT_TARGET_BLANK |
static String |
PARAM_BUTTON_SCLASS |
static String |
PARAM_HOVER_IMAGE_URL |
static String |
PARAM_HYPERLINK |
static String |
PARAM_IMAGE_URL |
static String |
PARAM_TARGET |
tooltipText| Constructor and Description |
|---|
LogoAction() |
| 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.
|
void |
render(org.zkoss.zk.ui.Component parent,
CockpitAction<Object,Object> action,
ActionContext<Object> context,
boolean updateMode,
ActionListener<Object> listener)
Render the logo button.
|
addEventListener, addKeyboardSupport, adjustUri, checkDataCompatibleWithDefinedInput, createEventListener, createYTestId, extractIconDisabledUri, extractIconHoverUri, extractIconUri, extractKeyEvent, findActionComponent, findGroupComponent, findParentComponent, getActionBodySclass, getIconHoverUri, getIconUri, getKeyboardSupportService, getLocalizedName, getOrCreateContainer, getOrCreateIcon, getOrCreateLabel, getTooltipText, getToolTipWithCtrlKeysText, loadFromParentModel, perform, performWithConfirmationCheck, registerHoverEventsOnContainer, removeEventListeners, removeEventListeners, removeIcon, removeLabel, setTooltipText, storeInParentModel, triggerFromKeyEventpublic static final String DEFAULT_HYPERLINK_HYBRIS_COM
public static final String DEFAULT_TARGET_BLANK
public static final String DEFAULT_LOGO_BUTTON_S_CLASS
public static final String DEFAULT_IMAGE_URL
public static final String DEFAULT_HOVER_IMAGE_URL
public static final String PARAM_IMAGE_URL
public static final String PARAM_HOVER_IMAGE_URL
public static final String PARAM_HYPERLINK
public static final String PARAM_TARGET
public static final String PARAM_BUTTON_SCLASS
public void render(org.zkoss.zk.ui.Component parent,
CockpitAction<Object,Object> action,
ActionContext<Object> context,
boolean updateMode,
ActionListener<Object> listener)
render in interface CockpitActionRenderer<Object,Object>render in class DefaultActionRenderer<Object,Object>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.