Class LogoAction

    • Field Detail

      • DEFAULT_HYPERLINK

        public static final java.lang.String DEFAULT_HYPERLINK
        See Also:
        Constant Field Values
      • DEFAULT_HYPERLINK_HYBRIS_COM

        @Deprecated(since="1905",
                    forRemoval=true)
        public static final java.lang.String DEFAULT_HYPERLINK_HYBRIS_COM
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1905
        See Also:
        DEFAULT_HYPERLINK, Constant Field Values
      • DEFAULT_TARGET_BLANK

        public static final java.lang.String DEFAULT_TARGET_BLANK
        See Also:
        Constant Field Values
      • DEFAULT_LOGO_BUTTON_S_CLASS

        public static final java.lang.String DEFAULT_LOGO_BUTTON_S_CLASS
        See Also:
        Constant Field Values
      • DEFAULT_IMAGE_URL

        public static final java.lang.String DEFAULT_IMAGE_URL
        See Also:
        Constant Field Values
      • DEFAULT_HOVER_IMAGE_URL

        public static final java.lang.String DEFAULT_HOVER_IMAGE_URL
        See Also:
        Constant Field Values
      • PARAM_HOVER_IMAGE_URL

        public static final java.lang.String PARAM_HOVER_IMAGE_URL
        See Also:
        Constant Field Values
      • PARAM_BUTTON_SCLASS

        public static final java.lang.String PARAM_BUTTON_SCLASS
        See Also:
        Constant Field Values
    • Constructor Detail

      • LogoAction

        public LogoAction()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           CockpitAction<java.lang.Object,​java.lang.Object> action,
                           ActionContext<java.lang.Object> context,
                           boolean updateMode,
                           ActionListener<java.lang.Object> listener)
        Render the logo button. There's a possibility to specify an imageUrl, hyperlink, target, and a buttonsclass. If you don't specify any of these parameters in the cockpit-config.xml some default-values will be set.
        Specified by:
        render in interface CockpitActionRenderer<java.lang.Object,​java.lang.Object>
        Overrides:
        render in class DefaultActionRenderer<java.lang.Object,​java.lang.Object>
      • perform

        public ActionResult<java.lang.Object> perform​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Performs the action.
        Specified by:
        perform in interface CockpitAction<java.lang.Object,​java.lang.Object>
        Parameters:
        ctx - context containing the data and other information
        Returns:
        the action result
      • canPerform

        public boolean canPerform​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Returns true if the action can be performed for the given context, false otherwise.
        Specified by:
        canPerform in interface CockpitAction<java.lang.Object,​java.lang.Object>
        Parameters:
        ctx - context containing the data and other information
        Returns:
        true if the action can be performed for the given context, false otherwise
      • needsConfirmation

        public boolean needsConfirmation​(ActionContext<java.lang.Object> ctx)
        Description copied from interface: CockpitAction
        Returns true if the action should be confirmed by user before being performed, false otherwise. This is evaluated by the action renderer.
        Specified by:
        needsConfirmation in interface CockpitAction<java.lang.Object,​java.lang.Object>
        Parameters:
        ctx - context containing the data and other information
        Returns:
        true if the action should be confirmed by user before being performed, false otherwise