|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.agilecoders.wicket.jquery.JQuery
public class JQuery
The Jquery class helps to keep all javascript jquery scripts type safe.
| Method Summary | |
|---|---|
static JQuery |
$(Attr selector)
helper method to allow a jquery like code style |
static JQuery |
$(CharSequence selector)
helper method to allow a jquery like code style. |
static JQuery |
$(org.apache.wicket.Component component)
helper method to allow a jquery like code style |
static JQuery |
$(org.apache.wicket.Component component,
Attr... additionalSelector)
helper method to allow a jquery like code style |
static JQuery |
$(org.apache.wicket.Component component,
CharSequence... additionalSelector)
helper method to allow a jquery like code style |
org.apache.wicket.markup.head.OnDomReadyHeaderItem |
asDomReadyScript()
|
static Attr |
auto(Object value)
creates a auto detect attribute |
String |
build()
|
JQuery |
chain(CharSequence functionName)
adds a chained function to this jquery instance |
JQuery |
chain(CharSequence functionName,
Config config,
Config... extraConfigs)
adds a chained function to this jquery instance |
JQuery |
chain(IFunction function)
adds a chained function to this jquery instance |
JQuery |
closest(Attr selector)
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. |
JQuery |
closest(CharSequence selector)
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. |
JQuery |
find(Attr selector)
Get the descendants of each element in the current set of matched elements, filtered by a selector. |
JQuery |
find(CharSequence selector)
Get the descendants of each element in the current set of matched elements, filtered by a selector. |
String |
get()
|
static Attr.MarkupId |
markupId(CharSequence markupId)
creates a quoted markup id selector |
static Attr.MarkupId |
markupId(org.apache.wicket.Component component)
creates a quoted markup id selector |
JQuery |
on(Attr events,
Attr selector,
JavaScriptInlineFunction handler)
Attach an event handler function for one or more events to the selected elements. |
JQuery |
on(Attr events,
JavaScriptInlineFunction handler)
Attach an event handler function for one or more events to the selected elements. |
JQuery |
on(CharSequence events,
CharSequence selector,
JavaScriptInlineFunction handler)
Attach an event handler function for one or more events to the selected elements. |
JQuery |
on(CharSequence events,
JavaScriptInlineFunction handler)
Attach an event handler function for one or more events to the selected elements. |
static Attr |
plain(CharSequence value)
creates a plain attribute without quotes |
static Attr |
quoted(CharSequence value)
creates a quoted attribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Attr quoted(CharSequence value)
value - the selector
public static Attr plain(CharSequence value)
value - the selector
public static Attr.MarkupId markupId(org.apache.wicket.Component component)
component - the component to extract markup id
public static Attr.MarkupId markupId(CharSequence markupId)
markupId - the markup id
public static Attr auto(Object value)
value - the selector
public static JQuery $(CharSequence selector)
JQuery.$("selector") // = $('selector')
selector - The jquery selector
public static JQuery $(Attr selector)
JQuery.$(plain("document")) // = $(document)
selector - The jquery selector
public static JQuery $(org.apache.wicket.Component component)
component - The markup id of given component is used as jquery selector
public static JQuery $(org.apache.wicket.Component component,
CharSequence... additionalSelector)
component - The markup id of given component is used as jquery selectoradditionalSelector - an additional initial selector
public static JQuery $(org.apache.wicket.Component component,
Attr... additionalSelector)
component - The markup id of given component is used as jquery selectoradditionalSelector - an additional initial selector
public JQuery chain(IFunction function)
function - the function to add
public JQuery on(CharSequence events,
JavaScriptInlineFunction handler)
events parameter
will be quoted.
events - One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".handler - A function to execute when the event is triggered. The value false is also allowed as a shorthand for
a function that simply does return false.
public JQuery on(CharSequence events,
CharSequence selector,
JavaScriptInlineFunction handler)
events and
selector parameter will be quoted.
events - One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".selector - A selector string to filter the descendants of the selected elements that trigger the event.
If the selector is null or omitted, the event is always triggered when it reaches the selected element.handler - A function to execute when the event is triggered. The value false is also allowed as a shorthand for
a function that simply does return false.
public JQuery on(Attr events,
Attr selector,
JavaScriptInlineFunction handler)
events - One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".selector - A selector string to filter the descendants of the selected elements that trigger the event.
If the selector is null or omitted, the event is always triggered when it reaches the selected element.handler - A function to execute when the event is triggered. The value false is also allowed as a shorthand for
a function that simply does return false.
public JQuery on(Attr events,
JavaScriptInlineFunction handler)
events - One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".handler - A function to execute when the event is triggered. The value false is also allowed as a shorthand for
a function that simply does return false.
public JQuery closest(CharSequence selector)
selector - the selector to use (will be quoted).
public JQuery closest(Attr selector)
selector - the selector to use.
public JQuery find(CharSequence selector)
selector - the selector to use (will be quoted).
public JQuery find(Attr selector)
selector - the selector to use.
public JQuery chain(CharSequence functionName)
functionName - the function to add
public String get()
public String build()
public org.apache.wicket.markup.head.OnDomReadyHeaderItem asDomReadyScript()
OnDomReadyHeaderItem instance
public JQuery chain(CharSequence functionName,
Config config,
Config... extraConfigs)
functionName - the function to addconfig - the function configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||