Class: Glimmer::SWT::SWTProxy

Inherits:
Object
  • Object
show all
Includes:
StyleConstantizable
Defined in:
lib/glimmer/swt/swt_proxy.rb

Overview

Proxy for org.eclipse.swt.SWT

Follows the Proxy Design Pattern

Constant Summary collapse

JAVA_IMPORT =
'org.eclipse.swt.SWT'
EXTRA_STYLES =
{
  NO_RESIZE: self[:shell_trim, :resize!, :max!],
  NO_SORT: -7,
}

Constants included from StyleConstantizable

Glimmer::SWT::StyleConstantizable::REGEX_SYMBOL_NEGATIVITY

Class Method Summary collapse

Methods included from StyleConstantizable

[], constant, constantify_args, deconstruct, error_message_invalid_style, extract_symbol_string_negativity, has_constant?, include?, negative?, reverse_lookup

Class Method Details

.constant_java_importObject



16
17
18
# File 'lib/glimmer/swt/swt_proxy.rb', line 16

def constant_java_import 
  JAVA_IMPORT
end

.constant_source_classObject



20
21
22
# File 'lib/glimmer/swt/swt_proxy.rb', line 20

def constant_source_class
  SWT
end

.constant_value_noneObject



24
25
26
# File 'lib/glimmer/swt/swt_proxy.rb', line 24

def constant_value_none
  SWT::NONE
end

.extra_stylesObject



28
29
30
# File 'lib/glimmer/swt/swt_proxy.rb', line 28

def extra_styles
  EXTRA_STYLES
end