[jira] Updated: (CAY-911) CM Usability: JComboBox Autocompletion

From: Andrey Razumovsky (JIRA) ("Andrey)
Date: Sun May 25 2008 - 00:51:53 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Commented: (CAY-943) Support multiple cayenne.xml files in the project"

         [ https://issues.apache.org/cayenne/browse/CAY-911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrey Razumovsky updated CAY-911:
    ----------------------------------

        Attachment: patch-CAY-911-25May.txt

    The next (and hopefully the last) patch. It is completely new, i.e. must be applied to repository code, not to previous patch.

    Auto-completion works now really cool since it shows only matching items. For ObjAttributes it is even cooler because-of 'contains' matching (when you type 'char', both 'char' and 'java.lang.CHARacter' are seen).

    For comboboxes not allowing user values you can quickly select items hitting 'Enter' without selecting item in the suggestion list - the first one will be taken. Otherwise, navigation keys can be used.

    If there are no suggestions, no popups are shown.

    Users can still open original popup by pressing arrow button or navigation key when suggestion list is not shown.

    Also note that there is no licensing problem now since i've rewrited all from the clean sheet (only names are the same). This is at least correct for AutoCompletion class. ComboBoxCellEditor is still mostly the same, but it is not much of a class (i can reconsider it too if needed).

    Implemetation details:
    SuggestionList is a new class responsible for filtering and showing tips. Two combo-popups are used because Swing doesn't allow changing ComboPopup without inheriting UI class (and this is forbidden in our case).
    There was a major problem with key actions, which are also bound to UI. I came up into completely replacing key behavior with my own - it is in AutoCompletion class.

    > CM Usability: JComboBox Autocompletion
    > --------------------------------------
    >
    > Key: CAY-911
    > URL: https://issues.apache.org/cayenne/browse/CAY-911
    > Project: Cayenne
    > Issue Type: New Feature
    > Components: CayenneModeler GUI
    > Reporter: Thomas Bernhard
    > Assignee: Kevin Menard
    > Attachments: patch-2008-05-11.txt, patch-CAY-911-25May.txt, patch-CAY-911.txt
    >
    >
    > Please use JComBox with autocompletion in CM at least in places that are very repetitive like selecting Field Types.
    > It is very simple to implement it and there are several extremly well documented examples how to do it. E.g.:
    > http://www.orbital-computer.de/JComboBox/

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sun May 25 2008 - 00:52:28 EDT