Class IComponentCtrl

java.lang.Object
org.zkoss.stateless.sul.IComponentCtrl

public class IComponentCtrl extends Object
An addition interface to IComponent that is used for implementation or tools.
Author:
jumperchen
  • Constructor Details

    • IComponentCtrl

      public IComponentCtrl()
  • Method Details

    • renderActions

      public static void renderActions(List<ActionHandler> actionHandlerList, StatelessContentRenderer renderer) throws IOException
      Renders actions to client widget with its bound parameters.
      Parameters:
      actionHandlerList -
      renderer -
      Throws:
      IOException
    • isPrimitive

      public static boolean isPrimitive(Class<?> type)
      Tests if the given type is primitive type or primitive object type.
      Parameters:
      type - A class to test with
      Returns:
      true if it's the primitive type or primitive object type.
    • isPojo

      public static boolean isPojo(Class<?> type)
      Tests if the given type is Java POJO-like object.
      Parameters:
      type - A class to test with
      Returns:
      true if it's the POJO object type.
    • isDateType

      public static boolean isDateType(Class<?> type)
      Tests if the given type is Java Date type.

      Note: only support the types in jackson.datatype.jsr310

      Parameters:
      type - A class to test with
      Returns:
      true if it's the Java Date type.
    • isBuiltinType

      public static boolean isBuiltinType(Class<?> type)
      Tests if the given type is a built-in type
      Parameters:
      type - a class to test with
      Returns:
      true if it's a built-in type.
    • isFileType

      public static boolean isFileType(Class<?> type)
      Tests if the given type is FileData.
      Parameters:
      type - A class to test with
      Returns:
      true if it's a FileData.
    • lookupActionAnnotation

      public static Action lookupActionAnnotation(ActionHandler actionHandler, Method method)
      Looks up the @Action annotation on the given method if any.
      Parameters:
      actionHandler - The lookup action handler.
      method - The lookup action method
      Returns:
      Action if found or null is assumed.
    • hasAction

      public static boolean hasAction(IComponent iComponent)
      Tests if the given IComponent contains aciton or actions.
      Parameters:
      iComponent - The immutable component to test with.
      Returns:
      true, if it contains.