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

Methods

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 40
40:         def initialize(notes_browser, event_id, annotatable_type, annotatable_id, note_uid = nil)
41:           # The constant id is the arg to super
42:           super(event_id)
43:           # client_data should be used to store any information associated
44:           # with the event.
45:           self.client_data = { 
46:             :annotatable_type => annotatable_type,
47:             :annotatable_id => annotatable_id,
48:             :uid => note_uid
49:             }
50:           self.id = notes_browser.get_id
51:         end

Public Instance methods

[Source]

    # File ui/wx/widgets/notesbrowser.rb, line 56
56:         def annotatable_id
57:           client_data[:annotatable_id]
58:         end

[Source]

    # File ui/wx/widgets/notesbrowser.rb, line 53
53:         def annotatable_type
54:           client_data[:annotatable_type]
55:         end

[Source]

    # File ui/wx/widgets/notesbrowser.rb, line 59
59:         def note_uid
60:           client_data.fetch(:uid, nil)
61:         end

[Validate]