Package de.agilecoders.wicket.jquery
Class Attr
- 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttr.Autojquery attribute the value and type will be detect automatically.static classAttr.MarkupIdmarkup id jquery selector.static classAttr.NoSelectorNoSelector represents the static object of jQuery, e.g.static classAttr.NullValueNullValue represents a jquery attribute that is "null".static classAttr.PlainPlain jquery attribute, this attribute won't be quoted.static classAttr.Quotedquoted jquery attribute.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttr(CharSequence selector)Construct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)booleanequals(Object obj)inthashCode()static booleanisNullOrEmpty(Attr attr)checks whether given value is null or emptyintlength()static AttrnoSelector()static AttrnullValue()CharSequencesubSequence(int start, int end)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
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:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
noSelector
public static Attr noSelector()
-
nullValue
public static Attr nullValue()
- Returns:
- null value instance
-
-