Class IJQueryWidget.JQueryWidget
- java.lang.Object
-
- com.googlecode.wicket.jquery.core.IJQueryWidget.JQueryWidget
-
- Enclosing interface:
- IJQueryWidget
public static class IJQueryWidget.JQueryWidget extends Object
static class
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetSelector(Component component)Helper method that returns the component's html selector (ie: '#myId').static JQueryBehaviornewWidgetBehavior(IJQueryWidget widget, String selector)Factory method that gets a newJQueryBehaviorby invokingIJQueryWidget.newWidgetBehavior(String)on the supplied widget.static JQueryBehaviornewWidgetBehavior(IJQueryWidget widget, Component component)Factory method that gets a newJQueryBehaviorby invokingIJQueryWidget.newWidgetBehavior(String)on the supplied widget.static <W extends Component & IJQueryWidget>
JQueryBehaviornewWidgetBehavior(W widget)Factory method that gets a newJQueryBehaviorby invokingIJQueryWidget.newWidgetBehavior(String)on the supplied widget.
-
-
-
Method Detail
-
getSelector
public static String getSelector(Component component)
Helper method that returns the component's html selector (ie: '#myId').- Parameters:
component- theComponent- Returns:
- the html selector
-
newWidgetBehavior
public static JQueryBehavior newWidgetBehavior(IJQueryWidget widget, Component component)
Factory method that gets a newJQueryBehaviorby invokingIJQueryWidget.newWidgetBehavior(String)on the supplied widget.- Parameters:
widget- object implementing theIJQueryWidgetinterface.component- theComponentthe selector will be calculated from.- Returns:
- the
JQueryBehavior
-
newWidgetBehavior
public static JQueryBehavior newWidgetBehavior(IJQueryWidget widget, String selector)
Factory method that gets a newJQueryBehaviorby invokingIJQueryWidget.newWidgetBehavior(String)on the supplied widget.- Parameters:
widget- object implementing theIJQueryWidgetinterface.selector- the html selector (ie: '#myId')- Returns:
- the
JQueryBehavior
-
newWidgetBehavior
public static <W extends Component & IJQueryWidget> JQueryBehavior newWidgetBehavior(W widget)
Factory method that gets a newJQueryBehaviorby invokingIJQueryWidget.newWidgetBehavior(String)on the supplied widget.- Type Parameters:
W- the type- Parameters:
widget- theIJQueryWidgetobject- Returns:
- the
JQueryBehavior
-
-