Sha256: eb2e1f56baeea7684be9d210c6fa541b373e2f82b53af2e842e312bc653aa9af

Contents?: true

Size: 954 Bytes

Versions: 7

Compression:

Stored size: 954 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  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::Core::Shape::List::PageState
        List::Internal = List::PageState
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.12.0 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.11.0 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.10.3 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.10.2 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.10.1 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.10.0 lib/thinreports/core/shape/list/page_state.rb