97 | | * Bound controls: |
98 | | * Have bugs: |
99 | | * Implementations of bound controls using JTextField have a bug connected with the listeners attached to the text field. |
100 | | * Fixed a bug with zoom percentage combobox - When you enter any text (no matter digits or other symbols) and click somewhere else so the combobox loses focus a ClassCastException was thrown. The reason was that ComboInput used in ZoomPercentagePanel.validete() and ZoomPercentagePanel.submitData() should be of type ZoomLevel but in some cases it was of type String. The problem was fixed by adding a check for the type of ComboInpu.getLevel(). Another problem came up with the separator used in float numbers. In the combobox was used ',' but it was impossible enter a valid float number using ',', only '.' was aloowed. The problem was fixed by replacing all ',' in the original string with '.'. This change remains invisible for the user as the text entered i nthe combobox doesn't change visually. This change takes palce in dataInputControlMethod(), which belongs to the base class for all bound comboboxes. So in order the change to be made only in Zoom Percenatage combox (we don't want to replace ',' with '.' in all comboboxes), this method was overriden in ZoomPercentagePanel class. |
101 | | * BoundCheckBox - a problem connected with Boolean.TRUE/Boolean.FALSE - does not update state properly with the pro lib. |
102 | | * Fix the layout of the components in the bound control. |
103 | | * Change the hierarchy so that the icon of the state can be dropped (controls should be able to chose whether with such an icon or without it). |
104 | | * Create new bound controls: |
105 | | * The "bound control" looking panel that most huds use for changing colors is not an actual bounds control. Create such a control: |
106 | | * The listener should be attached not to the whole panel, but rather to the color rectangle which may become a "ButtonBoundControl". |
107 | | |
108 | | * Introduce a "SliderBoundControl" that has a JSlider bound to some model. |
109 | | * Dialogs - they are more or less OK. Just review and improve things (optional). |
| 97 | |
| 98 | * '''Bound Controls''': |
| 99 | * The wiki page for this task -> [wiki:BASE_BOUND_CONTROLS_R1] |
| 100 | * What should be refactored: |
| 101 | * Fixing some bugs: |
| 102 | * Implementations of bound controls using JTextField have a bug connected with the listeners attached to the text field. |
| 103 | * Fixed a bug with zoom percentage combobox - When you enter any text (no matter digits or other symbols) and click somewhere else so the combobox loses focus a ClassCastException was thrown. The reason was that ComboInput used in ZoomPercentagePanel.validate() and ZoomPercentagePanel.submitData() should be of type ZoomLevel but in some cases it was of type String. The problem was fixed by adding a check for the type of ComboInput.getLevel(). Another problem came up with the separator used in float numbers. In the combobox was used ',' but it was impossible enter a valid float number using ',', only '.' was aloowed. The problem was fixed by replacing all ',' in the original string with '.'. This change remains invisible for the user as the text entered i nthe combobox doesn't change visually. This change takes palce in dataInputControlMethod(), which belongs to the base class for all bound comboboxes. So in order the change to be made only in Zoom Percenatage combox (we don't want to replace ',' with '.' in all comboboxes), this method was overriden in ZoomPercentagePanel class. |
| 104 | * BoundCheckBox - a problem connected with Boolean.TRUE/Boolean.FALSE - does not update state properly with the pro lib. |
| 105 | * Fix the layout of the components in the bound control.[[BR]] |
| 106 | * Change the hierarchy so that the icon of the state can be dropped (controls should be able to chose whether with such an icon or without it).[[BR]] |
| 107 | * Create new bound controls: |
| 108 | * The "bound control" looking panel that most huds use for changing colors is not an actual bounds control. Create such a control: |
| 109 | * The listener should be attached not to the whole panel, but rather to the color rectangle which may become a "ButtonBoundControl". |
| 110 | * Introduce a "SliderBoundControl" that has a JSlider bound to some model.[[BR]] |
| 111 | |
| 112 | |
| 113 | * '''Menus''' |
| 114 | * The wiki page for this task -> [wiki:BASE_MENUS_R1] |
| 115 | * All menus and menu items are in the same module. Every menu/menu item should be in a module that is responding to its functionality. |
| 116 | * '''Dialogs''' |
| 117 | * The wiki page for this task -> [wiki:BASE_DIALOGS_R1] |