Class CSSHoverClass

  • All Implemented Interfaces:
    org.w3c.dom.events.EventListener

    public class CSSHoverClass
    extends java.lang.Object
    implements org.w3c.dom.events.EventListener
    Do a hover effect using a CSS class.
    Since:
    0.2
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean clickisout
      Consider a click as 'out'?
      private java.lang.String outclass
      Class to set when out
      private java.lang.String overclass
      Class to set when over
    • Constructor Summary

      Constructors 
      Constructor Description
      CSSHoverClass​(java.lang.String overclass, java.lang.String outclass)
      Constructor without 'clickisout' option.
      CSSHoverClass​(java.lang.String overclass, java.lang.String outclass, boolean clickisout)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleEvent​(org.w3c.dom.events.Event evt)
      Event handler
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • overclass

        private java.lang.String overclass
        Class to set when over
      • outclass

        private java.lang.String outclass
        Class to set when out
      • clickisout

        private boolean clickisout
        Consider a click as 'out'?
    • Constructor Detail

      • CSSHoverClass

        public CSSHoverClass​(java.lang.String overclass,
                             java.lang.String outclass,
                             boolean clickisout)
        Constructor
        Parameters:
        overclass - class to set when over
        outclass - class to set when out
        clickisout - consider a click to be an 'out' event
      • CSSHoverClass

        public CSSHoverClass​(java.lang.String overclass,
                             java.lang.String outclass)
        Constructor without 'clickisout' option.
        Parameters:
        overclass - class to set when over
        outclass - class to set when out
    • Method Detail

      • handleEvent

        public void handleEvent​(org.w3c.dom.events.Event evt)
        Event handler
        Specified by:
        handleEvent in interface org.w3c.dom.events.EventListener