Class: KeepYourHead::AdaptorTopic

Inherits:
Adaptor
  • Object
show all
Defined in:
lib/Keepyourhead/gui/WindowEditAdapters.rb

Instance Method Summary collapse

Instance Method Details

#createChild(parent) ⇒ Object



182
183
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 182

def createChild(parent)
end

#firstChild(object) ⇒ Object



172
173
174
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 172

def firstChild(object)
	object.items[0]
end

#insertAfter(parent, item, other) ⇒ Object



184
185
186
187
188
189
190
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 184

def insertAfter(parent,item,other)
	if other then
		parent.itemInsertAfter(item,other)
	else
		parent.itemInsertFirst(item)
	end
end

#name(object) ⇒ Object



165
166
167
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 165

def name(object)
	object.name
end

#nextSibling(object) ⇒ Object



175
176
177
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 175

def nextSibling(object)
	object.parent.itemNext object
end

#parent(object) ⇒ Object



169
170
171
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 169

def parent(object)
	object.parent
end

#previousSibling(object) ⇒ Object



178
179
180
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 178

def previousSibling(object)
	object.parent.itemPrevious object
end

#realization(object) ⇒ Object



194
195
196
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 194

def realization(object)
	object.node
end

#remove(item) ⇒ Object



191
192
193
# File 'lib/Keepyourhead/gui/WindowEditAdapters.rb', line 191

def remove(item)
	item.parent.itemRemove item
end