Directory cdx/scorebot/util/swing/binding/delegate/

Directory Created:
2007-02-20 10:25
Total Files:
17
Deleted Files:
0
Lines of Code:
3382

[root]/cdx/scorebot/util/swing/binding/delegate

Lines of Code

cdx/scorebot/util/swing/binding/delegate/ Lines of Code

Developers

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

Most Recent Commits

dound 2007-04-02 02:40

getBinding is now typed properly

27 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: CalHourBoxComponentDelegate.java (+3 -6), GenericDelegate.java (+3 -3), JComboBoxComponentDelegate.java (+3 -6), JLabelComponentDelegate.java (+3 -6), JListComponentDelegate.java (+3 -6), JMenuComponentDelegate.java (+3 -6), JTextComponentDelegate.java (+3 -6), JToggleButtonComponentDelegate.java (+3 -6), ListBasedComponentDelegate.java (+3 -6)
dound 2007-03-29 19:59

Validation error handlers now respect the highlightOnError method.

16 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: ButtonGroupDelegate.java (+4 -2), CalHourBoxComponentDelegate.java (+4 -2), GenericJComponentDelegate.java (+4 -2), JLabelComponentDelegate.java (+4 -2)
dound 2007-03-29 04:15

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:

  • cdx/scorebot/util/swing/binding/delegate: GenericDelegate.java (+12 -2)
dound 2007-03-28 15:17

Bug fix: delete finally works

6 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: ListBasedComponentDelegate.java (+6 -7)
dound 2007-03-28 00:59

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:

  • cdx/scorebot/util/swing/binding/delegate: ListBasedComponentDelegate.java (+11 -4)
dound 2007-03-26 01:07

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:

  • cdx/scorebot/util/swing/binding/delegate: ListBasedComponentDelegate.java (+11 -4)
allikat 2007-03-24 00:11

(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:

  • cdx/scorebot/util/swing/binding/delegate: JMenuComponentDelegate.java (+10 -3)
allikat 2007-03-06 23:22

David made some stuffs. (File Menu Magic!!)

26 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: BoundDelegateComponent.java (+26 -2)
dound 2007-03-04 12:31

Refactored a method call in StringOps.

3 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: GenericDelegate.java (+3 -3)
dound 2007-02-28 07:52

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:

  • cdx/scorebot/util/swing/binding/delegate: JComboBoxComponentDelegate.java (+38 -43), JListComponentDelegate.java (+37 -42), JMenuComponentDelegate.java (+52 -58)
dound 2007-02-28 01:08

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:

  • cdx/scorebot/util/swing/binding/delegate: ButtonGroupDelegate.java (+4 -3), JLabelComponentDelegate.java (+3 -3), JTextComponentDelegate.java (+3 -3), JToggleButtonComponentDelegate.java (+4 -3)
dound 2007-02-28 01:07

Validation tooltips are now wrapped to lines of length 80.

7 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: GenericDelegate.java (+7 -4)
dound 2007-02-26 10:20

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:

  • cdx/scorebot/util/swing/binding/delegate: ListBasedComponentDelegate.java (+13 -3)
dound 2007-02-26 10:13

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:

  • cdx/scorebot/util/swing/binding/delegate: IntermediateFieldDelegate.java (+2 -20)
dound 2007-02-25 23:22

Bug fix: this was not being considered a container!

6 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: IntermediateFieldDelegate.java (+6 -6)
dound 2007-02-24 23:58

me() once again returns a JComponent as expected vice a BoundComponent derivative version.

29 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: ButtonGroupDelegate.java (+4 -3), CalHourBoxComponentDelegate.java (+4 -3), JComboBoxComponentDelegate.java (+4 -3), JLabelComponentDelegate.java (+4 -3), JListComponentDelegate.java (+4 -3), JMenuComponentDelegate.java (+7 -7), ListBasedComponentDelegate.java (+2 -5)
dound 2007-02-24 23:11

A new BindingListener class allows users to monitor when the bindings change in bound components.

54 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: GenericDelegate.java (+54 -11)
dound 2007-02-24 23:10

Updated to adapt to the new constructor which forces "me" to be of type BoundComponent vice any Object.

98 lines of code changed in:

  • cdx/scorebot/util/swing/binding/delegate: ButtonGroupDelegate.java (+9 -9), CalHourBoxComponentDelegate.java (+9 -9), GenericJComponentDelegate.java (+22 -13), JComboBoxComponentDelegate.java (+9 -9), JLabelComponentDelegate.java (+9 -9), JListComponentDelegate.java (+9 -9), JTextComponentDelegate.java (+11 -11), JToggleButtonComponentDelegate.java (+12 -12), ListBasedComponentDelegate.java (+8 -9)
dound 2007-02-24 21:40

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:

  • cdx/scorebot/util/swing/binding/delegate: JComboBoxComponentDelegate.java (+11 -5), JListComponentDelegate.java (+11 -5), JMenuComponentDelegate.java (+11 -5), ListBasedComponentDelegate.java (+9 -3)
dound 2007-02-23 02:11

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:

  • cdx/scorebot/util/swing/binding/delegate: CalHourBoxComponentDelegate.java (+6 -6)

(16 more)

Generated by StatCVS 0.3