Class AddressPreviewTableModel

    • Constructor Detail

      • AddressPreviewTableModel

        protected AddressPreviewTableModel​(java.lang.String modelName,
                                           ServiceProvider serviceProvider,
                                           Program program,
                                           TaskMonitor monitor)
        Constructor.
        Parameters:
        modelName - the name of the model (used for the title)
        serviceProvider - from which to get services
        program - the program upon which this model is being used
        monitor - the monitor to use for tracking progress and cancelling; may be null
      • AddressPreviewTableModel

        protected AddressPreviewTableModel​(java.lang.String modelName,
                                           ServiceProvider serviceProvider,
                                           Program program,
                                           TaskMonitor monitor,
                                           boolean loadIncrementally)
        Constructor.
        Parameters:
        modelName - the name of the model (used for the title)
        serviceProvider - from which to get services
        program - the program upon which this model is being used
        monitor - the monitor to use for tracking progress and cancelling; may be null
        loadIncrementally - true signals to show table results as they come in
    • Method Detail

      • setSelectionSize

        public void setSelectionSize​(int size)
        Sets the size of the selections generated by this model when asked to create program selections. For example, some clients know that each table row represents a contiguous range of 4 addresses. In this case, when the user makes a selection, that client wants the selection to be 4 addresses, starting at the address in the given table row.
        Parameters:
        size - the size of the selections generated by this model when asked to create program selections.