Class Grid.DetailComponentManager

    • Constructor Detail

      • DetailComponentManager

        public DetailComponentManager​(Grid grid)
        Deprecated.
    • Method Detail

      • refreshDetails

        public void refreshDetails()
        Deprecated.
        Recreates all visible details components.
      • setDetailsVisible

        public void setDetailsVisible​(Object itemId,
                                      boolean visible)
        Deprecated.
        Sets details visiblity status of given item id.
        Parameters:
        itemId - item id to set
        visible - true if visible; false if not
      • generateData

        public void generateData​(Object itemId,
                                 Item item,
                                 elemental.json.JsonObject rowData)
        Deprecated.
        Description copied from interface: DataGenerator
        Adds data to row object for given item and item id being sent to client.
        Specified by:
        generateData in interface DataGenerator
        Parameters:
        itemId - item id of item
        item - item being sent to client
        rowData - row object being sent to client
      • destroyData

        public void destroyData​(Object itemId)
        Deprecated.
        Description copied from interface: DataGenerator
        Informs the DataGenerator that an item id has been dropped and is no longer needed. This method should clean up any unneeded stored data related to the item.
        Specified by:
        destroyData in interface DataGenerator
        Parameters:
        itemId - removed item id
      • setDetailsGenerator

        public void setDetailsGenerator​(Grid.DetailsGenerator detailsGenerator)
                                 throws IllegalArgumentException
        Deprecated.
        Sets a new details generator for row details.

        The currently opened row details will be re-rendered.

        Parameters:
        detailsGenerator - the details generator to set
        Throws:
        IllegalArgumentException - if detailsGenerator is null;
      • getDetailsGenerator

        public Grid.DetailsGenerator getDetailsGenerator()
        Deprecated.
        Gets the current details generator for row details.
        Returns:
        the detailsGenerator the current details generator
      • isDetailsVisible

        public boolean isDetailsVisible​(Object itemId)
        Deprecated.
        Checks whether details are visible for the given item.
        Parameters:
        itemId - the id of the item for which to check details visibility
        Returns:
        true if the details are visible