Class: Pdfrb::Model::Type::Choice

Inherits:
Field show all
Defined in:
lib/pdfrb/model/type/choice.rb

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid

Instance Method Summary collapse

Methods inherited from Field

#additional_actions, #alternate_field_name, #appearance_characteristics, #button?, #choice?, #default_value, #field_name, #field_type, #field_value, #flags, #fully_qualified_name, #has_kids?, #kids, #mapping_field_name, #no_export?, #parent, #read_only?, #required?, #resolved_parent, #root_field, #signature?, #terminal_field?, #text?

Methods inherited from Cos::Dictionary

#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, own_fields, #pdf_type, register_type, type_map, #validate

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#combo?Boolean

Returns:

  • (Boolean)


12
# File 'lib/pdfrb/model/type/choice.rb', line 12

def combo?; flags & 0x20000 != 0; end

#commit_on_change?Boolean

Returns:

  • (Boolean)


17
# File 'lib/pdfrb/model/type/choice.rb', line 17

def commit_on_change?; flags & 0x4000000 != 0; end

#edit?Boolean

Returns:

  • (Boolean)


14
# File 'lib/pdfrb/model/type/choice.rb', line 14

def edit?; flags & 0x40000 != 0; end

#indicesObject



10
# File 'lib/pdfrb/model/type/choice.rb', line 10

def indices; self[:I]; end

#list?Boolean

Returns:

  • (Boolean)


13
# File 'lib/pdfrb/model/type/choice.rb', line 13

def list?; !combo?; end

#multi_select?Boolean

Returns:

  • (Boolean)


15
# File 'lib/pdfrb/model/type/choice.rb', line 15

def multi_select?; flags & 0x200000 != 0; end

#optObject



8
# File 'lib/pdfrb/model/type/choice.rb', line 8

def opt; self[:Opt]; end

#sort?Boolean

Returns:

  • (Boolean)


16
# File 'lib/pdfrb/model/type/choice.rb', line 16

def sort?; flags & 0x80000 != 0; end

#top_indexObject



9
# File 'lib/pdfrb/model/type/choice.rb', line 9

def top_index; self[:TI]; end

#valueObject



7
# File 'lib/pdfrb/model/type/choice.rb', line 7

def value; self[:V]; end