aboutsummaryrefslogtreecommitdiffstats
path: root/server
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 /server
parent536139870943d684907e0d9b93bbda60582b340d (diff)
downloadvaadin-framework-1739bb7de7a9ac1a2b6548b8a77f7230ebd806e3.tar.gz
vaadin-framework-1739bb7de7a9ac1a2b6548b8a77f7230ebd806e3.zip
Delete CheckboxRenderer
Fixes vaadin/framework8-issues#551
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/renderers/CheckBoxRenderer.java58
1 files changed, 0 insertions, 58 deletions
diff --git a/server/src/main/java/com/vaadin/ui/renderers/CheckBoxRenderer.java b/server/src/main/java/com/vaadin/ui/renderers/CheckBoxRenderer.java
deleted file mode 100644
index c57776d3c0..0000000000
--- a/server/src/main/java/com/vaadin/ui/renderers/CheckBoxRenderer.java
+++ /dev/null
@@ -1,58 +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.ui.renderers;
-
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-
-import com.vaadin.shared.ui.grid.renderers.CheckBoxRendererState;
-
-/**
- * A renderer that displays boolean valued grid columns as checkboxes.
- *
- * @since 8.0
- * @author Vaadin Ltd
- */
-public class CheckBoxRenderer<T> extends ClickableRenderer<T, Boolean> {
-
- /**
- * Creates a new checkbox renderer, given getter and setter functions.
- * Getters and setters are used to update the object corresponding to a
- * given row in the grid on the server side.
- *
- * @param getter
- * function for getting the desired boolean value
- * @param setter
- * function for setting the boolean value after a change from the
- * client side
- */
- public CheckBoxRenderer(Function<T, Boolean> getter,
- BiConsumer<T, Boolean> setter) {
- super(Boolean.class, "");
- addClickListener(clickEvent -> setter.accept(clickEvent.getItem(),
- !getter.apply(clickEvent.getItem())));
- }
-
- @Override
- protected CheckBoxRendererState getState() {
- return (CheckBoxRendererState) super.getState();
- }
-
- @Override
- protected CheckBoxRendererState getState(boolean markAsDirty) {
- return (CheckBoxRendererState) super.getState(markAsDirty);
- }
-}