Class WidgetUtil


  • public class WidgetUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WidgetUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int componentToId​(int c)
      Utility method that converts a component id to the id it is within its interface.
      static int componentToInterface​(int c)
      Utility method that converts a component id to the interface it belongs to.
      static int packComponentId​(int interfaceId, int childId)
      Utility method that packs a component id from an interface id and child id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WidgetUtil

        public WidgetUtil()
    • Method Detail

      • componentToInterface

        @Interface
        public static int componentToInterface​(@Component
                                               int c)
        Utility method that converts a component id to the interface it belongs to.
        Parameters:
        c - component id
        Returns:
        the interface id
      • componentToId

        public static int componentToId​(@Component
                                        int c)
        Utility method that converts a component id to the id it is within its interface.
        Parameters:
        c - component id
      • packComponentId

        @Component
        public static int packComponentId​(@Interface
                                          int interfaceId,
                                          int childId)
        Utility method that packs a component id from an interface id and child id.
        Parameters:
        interfaceId - interface id
        childId - id within the interface
        Returns:
        the component id