Sha256: d644cb057089ff9d9d6dca8b52aba1dfc4f117da47eb580a1d9728d56c070517

Contents?: true

Size: 786 Bytes

Versions: 2

Compression:

Stored size: 786 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class List::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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 lib/thinreports/core/shape/list/page_state.rb
thinreports-0.9.0 lib/thinreports/core/shape/list/page_state.rb