diff options
author | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2018-12-20 17:00:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 17:00:57 +0200 |
commit | 0cfbee6ed5663d928a31def30d111733eae93731 (patch) | |
tree | 0737483b3ca66322f9c7f4a06c2824c2d00bd26e /client | |
parent | 353ba29cfdefddb032122cbeae5f02f6d9de76ba (diff) | |
download | vaadin-framework-0cfbee6ed5663d928a31def30d111733eae93731.tar.gz vaadin-framework-0cfbee6ed5663d928a31def30d111733eae93731.zip |
Update release note and since tag (#11386)
* Some formatting changes
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VCheckBox.java | 3 | ||||
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/checkbox/CheckBoxConnector.java | 17 |
2 files changed, 12 insertions, 8 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VCheckBox.java b/client/src/main/java/com/vaadin/client/ui/VCheckBox.java index f535086d94..d78f15ca76 100644 --- a/client/src/main/java/com/vaadin/client/ui/VCheckBox.java +++ b/client/src/main/java/com/vaadin/client/ui/VCheckBox.java @@ -83,6 +83,7 @@ public class VCheckBox extends com.google.gwt.user.client.ui.CheckBox * Gives access to the input element. * * @return Element of the CheckBox itself + * @since 8.7 */ public Element getInputElement() { // public to allow CheckBoxState to access it. @@ -94,7 +95,7 @@ public class VCheckBox extends com.google.gwt.user.client.ui.CheckBox * Gives access to the label element. * * @return Element of the Label itself - * @since + * @since 8.7 */ public Element getLabelElement() { // public to allow CheckBoxState to access it. diff --git a/client/src/main/java/com/vaadin/client/ui/checkbox/CheckBoxConnector.java b/client/src/main/java/com/vaadin/client/ui/checkbox/CheckBoxConnector.java index df9b9b11cf..361c971a07 100644 --- a/client/src/main/java/com/vaadin/client/ui/checkbox/CheckBoxConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/checkbox/CheckBoxConnector.java @@ -15,6 +15,8 @@ */ package com.vaadin.client.ui.checkbox; +import java.util.List; + import com.google.gwt.core.client.JsArrayString; import com.google.gwt.dom.client.Element; import com.google.gwt.event.dom.client.ClickEvent; @@ -38,8 +40,6 @@ import com.vaadin.shared.ui.checkbox.CheckBoxServerRpc; import com.vaadin.shared.ui.checkbox.CheckBoxState; import com.vaadin.ui.CheckBox; -import java.util.List; - /** * The client-side connector for the {@code CheckBoxGroup} component. * @@ -54,7 +54,7 @@ public class CheckBoxConnector extends AbstractFieldConnector * The style names from getState().inputStyles which are currently applied * to the checkbox. * - * @since + * @since 8.7 */ private JsArrayString inputStyleNames = JsArrayString.createArray().cast(); @@ -62,7 +62,7 @@ public class CheckBoxConnector extends AbstractFieldConnector * The style names from getState().labelStyles which are currently applied * to the checkbox. * - * @since + * @since 8.7 */ private JsArrayString labelStyleNames = JsArrayString.createArray().cast(); @@ -111,8 +111,10 @@ public class CheckBoxConnector extends AbstractFieldConnector getWidget().setValue(getState().checked); // Set styles for input and label - updateStyles(getWidget().getInputElement(), inputStyleNames, getState().inputStyles); - updateStyles(getWidget().getLabelElement(), labelStyleNames, getState().labelStyles); + updateStyles(getWidget().getInputElement(), inputStyleNames, + getState().inputStyles); + updateStyles(getWidget().getLabelElement(), labelStyleNames, + getState().labelStyles); } @Override @@ -160,7 +162,8 @@ public class CheckBoxConnector extends AbstractFieldConnector } } - private void updateStyles(Element clientElement, JsArrayString clientSideStyles, List<String> serverSideStyes) { + private void updateStyles(Element clientElement, + JsArrayString clientSideStyles, List<String> serverSideStyes) { // Remove all old stylenames for (int i = 0; i < clientSideStyles.length(); i++) { clientElement.removeClassName(clientSideStyles.get(i)); |