Module Ui::NotesBrowserInterface
In: ui/widgets.rb

Interface to a widget that can be used to browse and display notes for different annotatable object types.

Methods

Constants

HTML = { :home => "<center><br/><img src=\"ui/images/caprica_big.jpg\"><h1>#{Core::VERSION.string}</h1>etdsoft '08</center>", :bar => '<div><div>actions: <a href="add/#node_id#">add note</a></div><div>show:#catlist# (<a href="filter/all">all</a>)</div></div>', :invalid => '<center><br/><img src="ui/qt/images/dradis.jpg"><p>please, wait until the new revision is downloaded from the server...</p></center>'

Public Instance methods

Display the default page. When a model update is received, the notes browser should be brought back to the default page.

[Source]

# File ui/widgets.rb, line 38
    def home() Kernel.raise 'unimplemented!'; end

Invalidate the current view as a result of an action performed by the user (i.e. add a new note, edit the current note, etc.). The widget should display some behaviour indicating that the current view is no longer valid and the user should wait until content is refreshed from the server.

[Source]

# File ui/widgets.rb, line 32
    def invalidate!() Kernel.raise 'unimplemented!'; end

[Source]

# File ui/widgets.rb, line 34
    def reload() Kernel.raise 'unimplemented!'; end

Given a set of notes (note_list) the widge should display them. Other attributes are passed to the widget in order to be returned when the widget signals editNote or addNote.

[Source]

# File ui/widgets.rb, line 43
    def show_notes(node_id, note_list) Kernel.raise 'unimplemented!'; end

Refresh the contents of the control with the new information provided by the model.

[Source]

# File ui/widgets.rb, line 47
    def update_view(model) Kernel.raise 'unimplemented!'; end

[Validate]