Class: Glimmer::SWT::ControlEditor
- Inherits:
-
Object
- Object
- Glimmer::SWT::ControlEditor
- Defined in:
- lib/glimmer/swt/control_editor.rb
Overview
Emulates SWT’s native org.eclipse.swt.custom.ControlEditor
Direct Known Subclasses
Constant Summary collapse
- ATTRIBUTES =
TODO implement behavior for all these attributes
[:grabHorizontal, :grabVertical, :horizontalAlignment, :verticalAlignment, :minimumWidth, :minimumHeight]
Instance Attribute Summary collapse
-
#composite ⇒ Object
readonly
TODO implement ‘#layout` method if needed.
-
#editor ⇒ Object
(also: #getEditor, #get_editor)
TODO consider supporting a java_attr_accessor to get around having to generate all the aliases manually.
Instance Method Summary collapse
-
#initialize(composite) ⇒ ControlEditor
constructor
A new instance of ControlEditor.
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
#composite ⇒ Object (readonly)
TODO implement ‘#layout` method if needed
43 44 45 |
# File 'lib/glimmer/swt/control_editor.rb', line 43 def composite @composite end |
#editor ⇒ Object 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 |