Sha256: edc895b235d92a974d1e7dce557e54966aaac5666758416c61ae3398924371fe

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    module Core
      module Shape
        module List
          class PageState < Basic::Internal
            attr_reader :rows

            attr_accessor :height
            attr_accessor :header
            attr_accessor :no
            attr_accessor :manager

            def initialize(*args)
              super(*args)

              @rows = []
              @height = 0
              @finalized = false

              @header = nil
            end

            def style
              @style ||= Style::Basic.new(format)
            end

            def finalized?
              @finalized
            end

            def finalized!
              @finalized = true
            end

            def type_of?(type_name)
              type_name == List::TYPE_NAME
            end
          end

          # Alias to List::PageState.
          # @see Thinreports::BasicReport::Core::Shape::List::PageState
          List::Internal = List::PageState
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/basic_report/core/shape/list/page_state.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/shape/list/page_state.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/shape/list/page_state.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/shape/list/page_state.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/shape/list/page_state.rb