Class: RubyScriptProvider::ScriptBrowseNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/rubyscriptprovider.rb

Constant Summary collapse

NODE_TYPE =
BrowseNodeTypes::SCRIPT

Instance Attribute Summary

Attributes inherited from BaseNode

#editable, #name

Instance Method Summary collapse

Methods inherited from BaseNode

#addPropertyChangeListener, #addVetoableChangeListener, #getChildNodes, #getIntrospection, #getPropertySetInfo, #getType, #getValue, #hasChildNodes, #hasMethod, #hasProperty, #invoke, #removePropertyChangeListener, #removeVetoableChangeListener, #rename, #setPropertyValue, #setValue, #update

Methods included from Uno::UnoBase

#getImplementationId, #getTypes

Constructor Details

#initialize(url, storage, name, func_name, description) ⇒ ScriptBrowseNode

Returns a new instance of ScriptBrowseNode.



631
632
633
634
635
# File 'lib/rubyscriptprovider.rb', line 631

def initialize(url, storage, name, func_name, description)
  super(url, storage, name)
  @func_name = func_name.to_s
  @description = description.to_s
end

Instance Method Details

#getPropertyValue(name) ⇒ Object



637
638
639
640
641
642
643
644
645
646
# File 'lib/rubyscriptprovider.rb', line 637

def getPropertyValue(name)
  case name
  when "URI"
    return @url.to_uri(@func_name)
  when "Description"
    return @description
  when "Editable"
    return false
  end
end