Package run.undead.js

Class AddClassOpts

java.lang.Object
run.undead.js.AddClassOpts
All Implemented Interfaces:
Cmd

public class AddClassOpts extends Object implements Cmd
AddClassOpts are the options for the add_class JS command.
See Also:
  • Field Details

    • classNames

      protected String classNames
    • to

      protected String to
    • time

      protected Long time
    • transition

      protected run.undead.js.Transition transition
  • Constructor Details

    • AddClassOpts

      public AddClassOpts(String classNames)
      AddClassOpts accepts css class names and adds them to element being targeted
      Parameters:
      classNames - the css class names (space separated)
    • AddClassOpts

      public AddClassOpts(String classNames, String to)
      AddClassOpts accepts css class names and a DOM selector to apply them to
      Parameters:
      classNames - the css class names (space separated)
      to - the DOM selector for the targeted element
    • AddClassOpts

      public AddClassOpts(String classNames, String to, Duration time)
      AddClassOpts accepts css class names, a DOM selector to apply them to, and a duration for the transition.
      Parameters:
      classNames - the css class names (space separated)
      to - the DOM selector for the targeted element
      time - the duration of the transition
    • AddClassOpts

      public AddClassOpts(String classNames, String to, Duration time, run.undead.js.Transition transition)
      AddClassOpts accepts css class names, a DOM selector to apply them to, a duration for the transition, and a Transition containing the css transition classes to apply.
      Parameters:
      classNames - the css class names (space separated)
      to - the DOM selector for the targeted element
      time - the duration of the transition
      transition - the css transition classes to apply
      See Also:
      • Transition
  • Method Details