Remove unused HasValueChangeHandlers from PatchScriptSettingsPanel
Handlers are installed by callers on ListenableAccountDiffPreference. This class does not need to proxy it. Change-Id: Ied82772e5db9aa9ac68ac7af4fa0bec195af9cf4
This commit is contained in:
@@ -27,10 +27,6 @@ import com.google.gwt.event.dom.client.ClickEvent;
|
|||||||
import com.google.gwt.event.dom.client.KeyCodes;
|
import com.google.gwt.event.dom.client.KeyCodes;
|
||||||
import com.google.gwt.event.dom.client.KeyPressEvent;
|
import com.google.gwt.event.dom.client.KeyPressEvent;
|
||||||
import com.google.gwt.event.dom.client.KeyPressHandler;
|
import com.google.gwt.event.dom.client.KeyPressHandler;
|
||||||
import com.google.gwt.event.logical.shared.HasValueChangeHandlers;
|
|
||||||
import com.google.gwt.event.logical.shared.ValueChangeEvent;
|
|
||||||
import com.google.gwt.event.logical.shared.ValueChangeHandler;
|
|
||||||
import com.google.gwt.event.shared.HandlerRegistration;
|
|
||||||
import com.google.gwt.uibinder.client.UiBinder;
|
import com.google.gwt.uibinder.client.UiBinder;
|
||||||
import com.google.gwt.uibinder.client.UiField;
|
import com.google.gwt.uibinder.client.UiField;
|
||||||
import com.google.gwt.uibinder.client.UiHandler;
|
import com.google.gwt.uibinder.client.UiHandler;
|
||||||
@@ -43,8 +39,7 @@ import com.google.gwt.user.client.ui.ListBox;
|
|||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
import com.google.gwtjsonrpc.common.VoidResult;
|
import com.google.gwtjsonrpc.common.VoidResult;
|
||||||
|
|
||||||
public class PatchScriptSettingsPanel extends Composite implements
|
public class PatchScriptSettingsPanel extends Composite {
|
||||||
HasValueChangeHandlers<AccountDiffPreference> {
|
|
||||||
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
|
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
|
||||||
|
|
||||||
interface MyUiBinder extends UiBinder<Widget, PatchScriptSettingsPanel> {
|
interface MyUiBinder extends UiBinder<Widget, PatchScriptSettingsPanel> {
|
||||||
@@ -139,12 +134,6 @@ public class PatchScriptSettingsPanel extends Composite implements
|
|||||||
display();
|
display();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public HandlerRegistration addValueChangeHandler(
|
|
||||||
ValueChangeHandler<AccountDiffPreference> handler) {
|
|
||||||
return super.addHandler(handler, ValueChangeEvent.getType());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEnabled(final boolean on) {
|
public void setEnabled(final boolean on) {
|
||||||
if (on) {
|
if (on) {
|
||||||
setEnabledCounter++;
|
setEnabledCounter++;
|
||||||
|
|||||||
Reference in New Issue
Block a user