Project

General

Profile

Actions

Bug #1106

closed

XBL Widgets to be created

Added by Matthew Brooke over 21 years ago. Updated over 20 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
jalama-general
Target version:
Start date:
06/12/2003
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1106

Description

XBL Widgets to be created:
--------------------------

TODO:

choices - make a widget of radio-button choices, with an associated deck

"party-like" widget

[dialog widget - in which to embed "popup"-type dialogs - actually more
important to work on real popup dialogs instead of inline dialogs in wizard]

editor widget similar to mozilla mail client, with formatting functionality
output in EML2

Spreadsheet widget

textbox plus label plus documentation plus example
--> extensions:
----> add/remove buttons
----> browse button (filechooser)

(KINDA) DONE (but need common API - see below):

Deck

3-col list (parent-child relationships)

numbered 3-col list

textbox-list

Notes:
------

XBL API - include:

  • getValues()
    - but note there are 2 levels to get values at -

i) getting specific textfield contents so we can display them in a list (e.g.
when returning from keyword dialog, we display a summary of that dialog in the
3-column list row - this getValues usage is just for the content, not the
xpaths). see for example the "getCommonElementValues and
()" "getRepeatableElementValues()" functions in
chrome/content/jalama_library/dialog_widgets_xbl.xml#textbox_and_list_dialog

ii) get the content as NVPs (Name-Value Pairs) of the form "xpath=value" - need
to pass a "root" xpath to which the xbl's content relative-xpaths will be
appended. It might be hard to do this in a generic fashion... see for example
the "get_as_NVP_array()" function in
chrome/content/jalama_library/dialog_widgets_xbl.xml#textbox_and_list_dialog

  • setValues()
    - haven't even thought abou tthis one yet... :-)
  • validate()
    (some widgets should call this automatically as user inputs or leaves - eg
    textbox & label widget)
    see for example the "ensureOneOrMoreRepeatableElements()" and "onFinishAction
    ()" functions in
    chrome/content/jalama_library/dialog_widgets_xbl.xml#textbox_and_list_dialog
Actions

Also available in: Atom PDF