[root]/cdx/scorebot/util/swing/binding/delegate
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 109 (100.0%) | 4149 (100.0%) | 38.0 |
dound | 107 (98.2%) | 4113 (99.1%) | 38.4 |
allikat | 2 (1.8%) | 36 (0.9%) | 18.0 |
getBinding is now typed properly
27 lines of code changed in:
Validation error handlers now respect the highlightOnError method.
16 lines of code changed in:
Added a bindingLoaded method to the BindingListener interface. This method is called after the new binding has been used to populate the component which it is bound to.
12 lines of code changed in:
Bug fix: delete finally works
6 lines of code changed in:
Bug fix (1689554): This bug was created by the fix to bug 1688107. The index currently being considered was always being decremented by one even if nothing was being removed (occurred when updating subcomponents). This has been resolved by only decrementing when an item is being removed from the list (as intended).
11 lines of code changed in:
Improvement: if a child is bound to a particular index in a list's vector, and the last item is deleted, then rebind to the next to last index.
11 lines of code changed in:
(david) Bug fix: when removing a menu item the correct item is now selected afterwards (was not working if the last item was deleted).
10 lines of code changed in:
David made some stuffs. (File Menu Magic!!)
26 lines of code changed in:
Refactored a method call in StringOps.
3 lines of code changed in:
The Exception catchers here were too broad. All of the binding's exceptions should be caught and handled appropriately, so these try-catch blocks have been removed because they just made debugging harder since exceptions thrown by components later (on an action event or something) could be caught and then rethrown as an Error.
127 lines of code changed in:
When it isn't possible to translate, the translator's exception message is now retrieved and passed on to the user vice a generic error message.
14 lines of code changed in:
Validation tooltips are now wrapped to lines of length 80.
7 lines of code changed in:
Bug fix: When removing an object from a list the next item (not the selected item) was being removed in certain cases. This only occured when the list has a child (bound component) which is bound to a particular index in the list vice an object from the list. In this case, when the removal occurred the child was then rebound to the same index. When a binding changes, the current value it holds is saved to the old binding before it changes. However, in this unique case since the index doesn't change, the value being deleted is the current value and overwrites the index in the list which now contains what was the next value in this list (because by the time child objects are being rebound, the item has been removed from the list). This bug was fixed by checking to see if the index being bound to was the same, and if so then loading the values at the index before changing the binding -- this overwrites the child's value with its new value so when the binding changes the old value doesn't overwrite the new. Though the binding will just be rebound to the same thing, it is still done so that any listeners are notified of the "change" (which happens to be a rebinding to the same index in the list here [though the index now holds a new object!]).
13 lines of code changed in:
Removed constructor: Intermediate fields ignore indexAt because they do contain a list of values of which they can bind to one -- they only bind to a single object.
2 lines of code changed in:
Bug fix: this was not being considered a container!
6 lines of code changed in:
me() once again returns a JComponent as expected vice a BoundComponent derivative version.
29 lines of code changed in:
A new BindingListener class allows users to monitor when the bindings change in bound components.
54 lines of code changed in:
Updated to adapt to the new constructor which forces "me" to be of type BoundComponent vice any Object.
98 lines of code changed in:
Updated list-based components so that if a child is going to be bound to an index (specified with indexAt in the bound object's constructor) then the list-based components binds the child to its list instead of binding it to a particular item in the list. This allows the child to modify the contents of a list full of primitive-like types (like Double, String, etc. which have no methods which change their contents -- you have to make a new one to get a new value).
42 lines of code changed in:
Now uses a JPopupMenu to display (bug in Java's Popup class was causing earlier troubles). Also uses a calendar combo box listener to track when changes are made vice a focus listener.
6 lines of code changed in:
(16 more)