Skip to content

Commit 2d692e3

Browse files
committed
CAY-2918 Remove OGNL Binding Architecture from CayenneModeler
getting rid of "bindToAction"
1 parent 54f74b1 commit 2d692e3

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

modeler/cayenne-modeler/src/main/java/org/apache/cayenne/swing/BindingBuilder.java

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919

2020
package org.apache.cayenne.swing;
2121

22-
import java.awt.Component;
22+
import javax.swing.*;
23+
import java.awt.*;
2324
import java.util.HashMap;
2425
import 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

Comments
 (0)