Interface IJQueryWidget

  • All Known Subinterfaces:
    IJQueryCultureWidget
    All Known Implementing Classes:
    JQueryContainer, JQueryGenericContainer, JQueryGenericPanel, JQueryPanel

    public interface IJQueryWidget
    Specifies that the implementing Component class will use a JQueryBehavior
    This interface is for best practice purpose only. Adding the JQueryBehavior to the Component is still required but the use of JQueryWidget#newWidgetBehavior(Component) can be made.
    For instance:
     public JQueryBehavior newWidgetBehavior(String selector)
     {
            return new JQueryBehavior(selector, "jquerymethod");
     }
     
     protected void onInitialize()
     {
            super.onInitialize();
     
            this.add(JQueryWidget.newWidgetBehavior(this));
     }
     
    Author:
    Sebastien Briquet - sebfz1