de.agilecoders.wicket.jquery
Class Attr

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

public abstract class Attr
extends Object
implements CharSequence

Attr represents a jquery attribute.


Nested Class Summary
static class Attr.Auto
          jquery attribute the value and type will be detect automatically.
static class Attr.MarkupId
          markup id jquery selector.
static class Attr.NullValue
          NullValue represents a jquery attribute that is "null".
static class Attr.Plain
          Plain jquery attribute, this attribute won't be quoted.
static class Attr.Quoted
          quoted jquery attribute.
 
Constructor Summary
protected Attr(CharSequence selector)
          Construct.
 
Method Summary
 char charAt(int index)
           
 boolean equals(Object obj)
           
 int hashCode()
           
static boolean isNullOrEmpty(Attr attr)
          checks whether given value is null or empty
 int length()
           
static Attr nullValue()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attr

protected Attr(CharSequence selector)
Construct.

Parameters:
selector - the jquery selector
Method Detail

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

nullValue

public static Attr nullValue()
Returns:
null value instance


Copyright © 2017. All Rights Reserved.