summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2016-12-15 16:32:39 +0200
committerGitHub <noreply@github.com>2016-12-15 16:32:39 +0200
commit1739bb7de7a9ac1a2b6548b8a77f7230ebd806e3 (patch)
tree731f689a6a5769a26a7919d0e2f0f7ddb099933c /client
parent536139870943d684907e0d9b93bbda60582b340d (diff)
downloadvaadin-framework-1739bb7de7a9ac1a2b6548b8a77f7230ebd806e3.tar.gz
vaadin-framework-1739bb7de7a9ac1a2b6548b8a77f7230ebd806e3.zip
Delete CheckboxRenderer
Fixes vaadin/framework8-issues#551
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/CheckBoxRendererConnector.java51
-rw-r--r--client/src/main/java/com/vaadin/client/renderers/CheckBoxRenderer.java49
2 files changed, 0 insertions, 100 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/CheckBoxRendererConnector.java b/client/src/main/java/com/vaadin/client/connectors/CheckBoxRendererConnector.java
deleted file mode 100644
index 4d9ec782c7..0000000000
--- a/client/src/main/java/com/vaadin/client/connectors/CheckBoxRendererConnector.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2000-2016 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.vaadin.client.connectors;
-
-import com.google.gwt.event.shared.HandlerRegistration;
-import com.vaadin.client.renderers.CheckBoxRenderer;
-import com.vaadin.client.renderers.ClickableRenderer.RendererClickHandler;
-import com.vaadin.shared.ui.Connect;
-import com.vaadin.shared.ui.grid.renderers.CheckBoxRendererState;
-
-import elemental.json.JsonObject;
-
-/**
- * A connector for {@link com.vaadin.ui.renderers.CheckBoxRenderer}.
- *
- * @since 8.0
- * @author Vaadin Ltd
- */
-@Connect(com.vaadin.ui.renderers.CheckBoxRenderer.class)
-public class CheckBoxRendererConnector
- extends ClickableRendererConnector<Boolean> {
-
- @Override
- public CheckBoxRenderer getRenderer() {
- return (CheckBoxRenderer) super.getRenderer();
- }
-
- @Override
- protected HandlerRegistration addClickHandler(
- RendererClickHandler<JsonObject> handler) {
- return getRenderer().addClickHandler(handler);
- }
-
- @Override
- public CheckBoxRendererState getState() {
- return (CheckBoxRendererState) super.getState();
- }
-}
diff --git a/client/src/main/java/com/vaadin/client/renderers/CheckBoxRenderer.java b/client/src/main/java/com/vaadin/client/renderers/CheckBoxRenderer.java
deleted file mode 100644
index b004b1c2fa..0000000000
--- a/client/src/main/java/com/vaadin/client/renderers/CheckBoxRenderer.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2000-2016 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.vaadin.client.renderers;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.ui.CheckBox;
-import com.vaadin.client.ui.VCheckBox;
-import com.vaadin.client.widget.grid.RendererCellReference;
-
-/**
- * A Renderer that displays a boolean value as a checkbox.
- *
- * <p>
- *
- * Click handlers can be added to the renderer, invoked when any of the rendered
- * checkboxes are clicked.
- *
- * @since 8.0
- * @author Vaadin Ltd
- */
-public class CheckBoxRenderer extends ClickableRenderer<Boolean, CheckBox> {
-
- @Override
- public CheckBox createWidget() {
- CheckBox cb = GWT.create(VCheckBox.class);
- cb.addClickHandler(this);
- return cb;
- }
-
- @Override
- public void render(RendererCellReference cell, Boolean data,
- CheckBox widget) {
- widget.setValue(data);
- }
-
-}