Class KendoBehaviorFactory


  • public final class KendoBehaviorFactory
    extends Object
    Factory that provides JQueryBehaviors, which may be used in widgets.
    Author:
    Sebastien Briquet - sebfz1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static String getHideStatement​(String selector)
      Gets the jQuery 'hide' statement for the component specified by the given selector
      static String getShowStatement​(String selector)
      Gets the jQuery 'show' statement for the component specified by the given selector
      static void hide​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, String selector)
      Hides the kendo-ui widget using its selector
      static void hide​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, org.apache.wicket.Component component)
      Hides the kendo-ui widget using its reference
      static com.googlecode.wicket.jquery.core.JQueryBehavior newHideBehavior​(String selector)
      Gets a new JQueryBehavior that hides the kendo-ui widget
      static com.googlecode.wicket.jquery.core.JQueryBehavior newHideBehavior​(org.apache.wicket.Component component)
      Gets a new JQueryBehavior that hides the kendo-ui widget
      static com.googlecode.wicket.jquery.core.JQueryBehavior newShowBehavior​(String selector)
      Gets a new JQueryBehavior that shows the kendo-ui widget
      static com.googlecode.wicket.jquery.core.JQueryBehavior newShowBehavior​(org.apache.wicket.Component component)
      Gets a new JQueryBehavior that shows the kendo-ui widget
      static void show​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, String selector)
      Shows the kendo-ui widget using its selector
      static void show​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, org.apache.wicket.Component component)
      Shows the kendo-ui widget using its reference
    • Method Detail

      • show

        public static void show​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
                                org.apache.wicket.Component component)
        Shows the kendo-ui widget using its reference
        Parameters:
        handler - the IPartialPageRequestHandler
        component - the Component reference
      • show

        public static void show​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
                                String selector)
        Shows the kendo-ui widget using its selector
        Parameters:
        handler - the IPartialPageRequestHandler
        selector - the html selector (ie: '#myId')
      • hide

        public static void hide​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
                                org.apache.wicket.Component component)
        Hides the kendo-ui widget using its reference
        Parameters:
        handler - the IPartialPageRequestHandler
        component - the Component reference
      • hide

        public static void hide​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
                                String selector)
        Hides the kendo-ui widget using its selector
        Parameters:
        handler - the IPartialPageRequestHandler
        selector - the html selector (ie: '#myId')
      • newShowBehavior

        public static com.googlecode.wicket.jquery.core.JQueryBehavior newShowBehavior​(org.apache.wicket.Component component)
        Gets a new JQueryBehavior that shows the kendo-ui widget
        Parameters:
        component - the Component
        Returns:
        the JQueryBehavior
      • newShowBehavior

        public static com.googlecode.wicket.jquery.core.JQueryBehavior newShowBehavior​(String selector)
        Gets a new JQueryBehavior that shows the kendo-ui widget
        Parameters:
        selector - the html selector (ie: '#myId')
        Returns:
        the JQueryBehavior
      • newHideBehavior

        public static com.googlecode.wicket.jquery.core.JQueryBehavior newHideBehavior​(org.apache.wicket.Component component)
        Gets a new JQueryBehavior that hides the kendo-ui widget
        Parameters:
        component - the Component
        Returns:
        the JQueryBehavior
      • newHideBehavior

        public static com.googlecode.wicket.jquery.core.JQueryBehavior newHideBehavior​(String selector)
        Gets a new JQueryBehavior that hides the kendo-ui widget
        Parameters:
        selector - the html selector (ie: '#myId')
        Returns:
        the JQueryBehavior
      • getShowStatement

        public static String getShowStatement​(String selector)
        Gets the jQuery 'show' statement for the component specified by the given selector
        Parameters:
        selector - the html selector (ie: '#myId')
        Returns:
        the statement
      • getHideStatement

        public static String getHideStatement​(String selector)
        Gets the jQuery 'hide' statement for the component specified by the given selector
        Parameters:
        selector - the html selector (ie: '#myId')
        Returns:
        the statement