Class: Canis::ListSelectionEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/canis/core/include/listselectionmodel.rb,
lib/canis/core/include/deprecated/listselectable.rb

Overview

mod

selection related collapse

selection related collapse

Constructor Details

#initialize(firstrow, lastrow, source, type) ⇒ ListSelectionEvent

Returns a new instance of ListSelectionEvent.



258
259
260
261
262
263
# File 'lib/canis/core/include/deprecated/listselectable.rb', line 258

def initialize firstrow, lastrow, source, type
  @firstrow = firstrow
  @lastrow = lastrow
  @source = source
  @type = type
end

Instance Attribute Details

#firstrowObject

Returns the value of attribute firstrow

Returns:

  • (Object)

    the current value of firstrow



67
68
69
# File 'lib/canis/core/include/listselectionmodel.rb', line 67

def firstrow
  @firstrow
end

#lastrowObject

Returns the value of attribute lastrow

Returns:

  • (Object)

    the current value of lastrow



67
68
69
# File 'lib/canis/core/include/listselectionmodel.rb', line 67

def lastrow
  @lastrow
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



67
68
69
# File 'lib/canis/core/include/listselectionmodel.rb', line 67

def source
  @source
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



67
68
69
# File 'lib/canis/core/include/listselectionmodel.rb', line 67

def type
  @type
end

Instance Method Details

#inspectObject



267
268
269
# File 'lib/canis/core/include/deprecated/listselectable.rb', line 267

def inspect
  to_s
end

#to_sObject



264
265
266
# File 'lib/canis/core/include/deprecated/listselectable.rb', line 264

def to_s
  "#{@type.to_s}, firstrow: #{@firstrow}, lastrow: #{@lastrow}, source: #{@source}"
end