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
Attr represents a jquery attribute.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classjquery attribute the value and type will be detect automatically.static classmarkup id jquery selector.static classNoSelector represents the static object of jQuery, e.g.static classNullValue represents a jquery attribute that is "null".static classPlain jquery attribute, this attribute won't be quoted.static classquoted jquery attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) booleaninthashCode()static booleanisNullOrEmpty(Attr attr) checks whether given value is null or emptyintlength()static Attrstatic AttrsubSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
Attr
Construct.- Parameters:
selector- the jquery selector
-
-
Method Details
-
isNullOrEmpty
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
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
hashCode
public int hashCode() -
equals
-
noSelector
-
nullValue
- Returns:
- null value instance
-