1919
2020package org .apache .cayenne .swing ;
2121
22- import java .awt .Component ;
22+ import javax .swing .*;
23+ import java .awt .*;
2324import java .util .HashMap ;
2425import java .util .Map ;
2526
26- import javax .swing .*;
27- import javax .swing .text .JTextComponent ;
28-
2927/**
3028 * A builder for component bindings that delegates the creation of the binding to the
3129 * underlying factory, and itself configures a number of binding parameters.
@@ -89,14 +87,6 @@ public ObjectBinding bindToProperty(
8987 return initBinding (binding , delegate );
9088 }
9189
92- public ObjectBinding bindToAction (
93- BoundComponent component ,
94- String action ,
95- String boundProperty ) {
96- ObjectBinding binding = factory .bindToAction (component , action , boundProperty );
97- return initBinding (binding , delegate );
98- }
99-
10090 public ObjectBinding bindToStateChange (AbstractButton button , String property ) {
10191 ObjectBinding binding = factory .bindToStateChange (button , property );
10292 return initBinding (binding , delegate );
@@ -110,16 +100,6 @@ public ObjectBinding bindToStateChangeAndAction(
110100 return initBinding (binding , getActionDelegate (action ));
111101 }
112102
113- public ObjectBinding bindToAction (AbstractButton button , String action ) {
114- ObjectBinding binding = factory .bindToAction (button , action );
115- return initBinding (binding , delegate );
116- }
117-
118- public ObjectBinding bindToAction (Component component , String action ) {
119- ObjectBinding binding = factory .bindToAction (component , action );
120- return initBinding (binding , delegate );
121- }
122-
123103 public ObjectBinding bindToComboSelection (JComboBox component , String property ) {
124104 ObjectBinding binding = factory .bindToComboSelection (component , property , null );
125105 return initBinding (binding , delegate );
0 commit comments