Class HeaderDetailTableRowSorter.ModelChange

  • Enclosing class:
    HeaderDetailTableRowSorter<H,​M extends BufferedHeaderDetailTableModel<H>>

    protected class HeaderDetailTableRowSorter.ModelChange
    extends java.lang.Object
    A helper class for updating the view/model mappings. It represents a change to the model that needs to be reflected in the view.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int endBean  
      protected int firstBean  
      protected int firstDetail  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ModelChange​(int firstRow, int endRow, boolean delete)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int deltaBeans()
      Get the number of header/detail groups involved in the change.
      boolean isBeanChange()
      Is this change for header/detail groups or just details?
      • Methods inherited from class java.lang.Object

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

      • firstBean

        protected final int firstBean
      • endBean

        protected final int endBean
      • firstDetail

        protected final int firstDetail
    • Constructor Detail

      • ModelChange

        protected ModelChange​(int firstRow,
                              int endRow,
                              boolean delete)
    • Method Detail

      • isBeanChange

        public boolean isBeanChange()
        Is this change for header/detail groups or just details?
        Returns:
        true if the change is for header/detail groups
      • deltaBeans

        public int deltaBeans()
        Get the number of header/detail groups involved in the change.