java.lang.Object
de.agilecoders.wicket.jquery.Attr
All Implemented Interfaces:
Serializable, CharSequence, IClusterable
Direct Known Subclasses:
Attr.Auto, Attr.MarkupId, Attr.NoSelector, Attr.Plain, Attr.Quoted

public abstract class Attr extends Object implements CharSequence, IClusterable
Attr represents a jquery attribute.
See Also:
  • Constructor Details

    • Attr

      protected Attr(CharSequence selector)
      Construct.
      Parameters:
      selector - the jquery selector
  • Method Details

    • isNullOrEmpty

      public static boolean isNullOrEmpty(Attr attr)
      checks whether given value is null or empty
      Parameters:
      attr - the attribute to check
      Returns:
      true, if given attribute is null or empty
    • length

      public int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      public CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      public String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • noSelector

      public static Attr noSelector()
    • nullValue

      public static Attr nullValue()
      Returns:
      null value instance