Class WidgetUtil


  • public class WidgetUtil
    extends Object
    • 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