Class: Thinreports::BasicReport::Core::Shape::List::PageState

Inherits:
Basic::Internal show all
Defined in:
lib/thinreports/basic_report/core/shape/list/page_state.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Internal

#format, #parent, #states

Instance Method Summary collapse

Methods inherited from Basic::Internal

#identifier

Methods inherited from Base::Internal

#copy

Methods included from Utils

#blank_value?, #call_block_in, #deep_copy, included

Constructor Details

#initialize(*args) ⇒ PageState

Returns a new instance of PageState.



16
17
18
19
20
21
22
23
24
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 16

def initialize(*args)
  super(*args)

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

  @header = nil
end

Instance Attribute Details

#headerObject

Returns the value of attribute header.



12
13
14
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 12

def header
  @header
end

#heightObject

Returns the value of attribute height.



11
12
13
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 11

def height
  @height
end

#managerObject

Returns the value of attribute manager.



14
15
16
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 14

def manager
  @manager
end

#noObject

Returns the value of attribute no.



13
14
15
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 13

def no
  @no
end

#rowsObject (readonly)

Returns the value of attribute rows.



9
10
11
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 9

def rows
  @rows
end

Instance Method Details

#finalized!Object



34
35
36
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 34

def finalized!
  @finalized = true
end

#finalized?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 30

def finalized?
  @finalized
end

#styleObject



26
27
28
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 26

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

#type_of?(type_name) ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/thinreports/basic_report/core/shape/list/page_state.rb', line 38

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