Class Ui::WxWidgets::Widgets::NotesBrowserEvent
In: ui/wx/widgets/notesbrowser.rb
Parent: Wx::CommandEvent

Methods

new   node_id   note_id  

Constants

EVT_ADD_NOTE = Wx::EvtHandler.register_class(self, nil, 'evt_add_note', 1)   Create a new unique constant identifier, associate this class with events of that identifier, and create a shortcut ‘evt_new_command’ method for setting up this handler.
EVT_EDIT_NOTE = Wx::EvtHandler.register_class(self, nil, 'evt_edit_note', 1)

Public Class methods

[Source]

# File ui/wx/widgets/notesbrowser.rb, line 27
        def initialize(notes_browser, event_id, node_id, note_id = nil)
          # The constant id is the arg to super
          super(event_id)
          # client_data should be used to store any information associated
          # with the event.
          self.client_data = { 
            :node_id => node_id,
            :note_id => note_id
            }
          self.id = notes_browser.get_id
        end

Public Instance methods

[Source]

# File ui/wx/widgets/notesbrowser.rb, line 39
        def node_id
          client_data[:node_id]
        end

[Source]

# File ui/wx/widgets/notesbrowser.rb, line 42
        def note_id
          client_data.fetch(:note_id, nil)
        end

[Validate]