Class HCCustomizerAutoFocusFirstCtrl

  • All Implemented Interfaces:
    IHCCustomizer

    public class HCCustomizerAutoFocusFirstCtrl
    extends AbstractHCCustomizer
    Special customizer that customizes the first input element on the page (if available).
    Author:
    Philip Helger
    • Constructor Detail

      • HCCustomizerAutoFocusFirstCtrl

        public HCCustomizerAutoFocusFirstCtrl()
    • Method Detail

      • setAutoFocusOnFirstControl

        public static void setAutoFocusOnFirstControl​(@Nonnull
                                                      IHCNode aStartNode)
      • customizeNode

        public void customizeNode​(@Nonnull
                                  IHCNode aNode,
                                  @Nonnull
                                  EHTMLVersion eHTMLVersion,
                                  @Nonnull
                                  IHCHasChildrenMutable<?,​? super IHCNode> aTargetNode)
        Description copied from interface: IHCCustomizer
        Customize HC node with some predefined classes etc.
        Parameters:
        aNode - The element to be customized. Never null.
        eHTMLVersion - The HTML version to be used. Never null.
        aTargetNode - The node where additional elements should be appended to. May not be null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object