Changeset 5105


Ignore:
Timestamp:
2003-08-07T12:18:41+12:00 (21 years ago)
Author:
mdewsnip
Message:

Added some comments so I might understand this when I look at it next.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/valuetree/GValueTree.java

    r5102 r5105  
    7373
    7474
     75    /**
     76     * This class is a little bit complex, a little bit subtle, and a little bit odd.
     77     * The strange interaction model is due to the fact that it is very tightly
     78     * coupled to the MetaEditPane.
     79     *
     80     * The interaction is complex because there are three separate controls that the
     81     * user may interact with, each of which can affect the other two. The three
     82     * controls are:
     83     *   - The "assigned metadata" table, at the top right of the meta edit pane.
     84     *   - The "metadata value" text field, where users can type in new values.
     85     *   - The "metadata value tree", which shows other values that have been
     86     *     assigned to the selected metadata element.
     87     *
     88     * The interactions are:
     89     *   - The "assigned metadata" table
     90     *     Users may select one (and only one) row in this table. Selecting a row
     91     *     chooses one metadata element. The text field will be set to the current
     92     *     value of the metadata element. This value will also be selected in the
     93     *     metadata value tree.
     94     *
     95     *   - The "metadata value" text field
     96     *     If the value the user has typed in this is a prefix of an entry in the
     97     *     value tree, this value will be selected in the value tree. In this case,
     98     *     pressing "Enter" will complete the value (ie. make the value in the text
     99     *     field the same as the value in the tree). This is to allow users to
     100     *     quickly and easily assign existing metadata values to new documents.
     101     *
     102     *   - The "metadata value tree"
     103     *     Selecting a value in the tree will set the text field to this value.
     104     */
    75105    public GValueTree(MetaEditPane metaedit, int width, int height, JButton add, JButton update, JButton remove, JButton expand) {
    76106    super();
Note: See TracChangeset for help on using the changeset viewer.