Class: Glimmer::SWT::ControlEditor

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer/swt/control_editor.rb

Overview

Emulates SWT’s native org.eclipse.swt.custom.ControlEditor

Direct Known Subclasses

TableEditor

Constant Summary collapse

ATTRIBUTES =

TODO implement behavior for all these attributes

[:grabHorizontal, :grabVertical, :horizontalAlignment, :verticalAlignment, :minimumWidth, :minimumHeight]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(composite) ⇒ ControlEditor

Returns a new instance of ControlEditor.



45
46
47
# File 'lib/glimmer/swt/control_editor.rb', line 45

def initialize(composite)
  @composite = composite
end

Instance Attribute Details

#compositeObject (readonly)

TODO implement ‘#layout` method if needed



43
44
45
# File 'lib/glimmer/swt/control_editor.rb', line 43

def composite
  @composite
end

#editorObject Also known as: getEditor, get_editor

TODO consider supporting a java_attr_accessor to get around having to generate all the aliases manually



35
36
37
# File 'lib/glimmer/swt/control_editor.rb', line 35

def editor
  @editor
end