@@ -50,7 +50,7 @@ public class VColorPicker extends VButton { | |||
/** | |||
* Gets the color. | |||
* | |||
* @since | |||
* @since 8.4 | |||
* @return the color | |||
*/ | |||
public String getColor() { |
@@ -167,7 +167,7 @@ public class VColorPickerArea extends Widget | |||
/** | |||
* Gets the color. | |||
* | |||
* @since | |||
* @since 8.4 | |||
* @return the color | |||
*/ | |||
public String getColor() { |
@@ -59,7 +59,7 @@ public class ComponentRootSetter implements Serializable { | |||
* @param customComponent | |||
* the custom component or composite | |||
* @return | |||
* @since | |||
* @since 8.4 | |||
* | |||
*/ | |||
public static boolean canSetRoot(Component customComponent) { |
@@ -201,6 +201,7 @@ public class ColorPickerPreview extends CssLayout implements HasValue<Color> { | |||
* @param value | |||
* input which caused the error | |||
* @return error message text | |||
* @since 8.4 | |||
*/ | |||
protected String getUserErrorText(String value) { | |||
return value.isEmpty() ? "Input cannot be empty" |
@@ -27,7 +27,7 @@ import com.vaadin.shared.ui.colorpicker.Color; | |||
* Description of supported formats see | |||
* http://www.w3schools.com/cssref/css_colors_legal.asp | |||
* | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public class ColorUtil { | |||
private ColorUtil() { |
@@ -36,7 +36,7 @@ public interface ColorPickerServerRpc extends ServerRpc { | |||
/** | |||
* ColorPicker's selected color is changed | |||
* | |||
* @since | |||
* @since 8.4 | |||
* @param color | |||
*/ | |||
public void changeColor(String color); |
@@ -31,7 +31,7 @@ public class ColorPickerPreviewElement extends CssLayoutElement { | |||
* | |||
* @return true if field has errors, false otherwise | |||
* | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public boolean getColorFieldContainsErrors() { | |||
List<WebElement> caption = findElements( | |||
@@ -47,7 +47,7 @@ public class ColorPickerPreviewElement extends CssLayoutElement { | |||
* | |||
* @return the value of the attribute 'value' of the input element | |||
* | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public String getColorFieldValue() { | |||
return getColorTextField().getAttribute("value"); | |||
@@ -60,7 +60,7 @@ public class ColorPickerPreviewElement extends CssLayoutElement { | |||
* @param value | |||
* text to insert | |||
* | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public void setColorTextFieldValue(String value) { | |||
// Select all text | |||
@@ -72,7 +72,7 @@ public class ColorPickerPreviewElement extends CssLayoutElement { | |||
* @return <code>WebElement</code> representing TextField in | |||
* ColorPickerPreviewComponent | |||
* | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public WebElement getColorTextField() { | |||
return findElement(By.className("v-colorpicker-preview-textfield")); |
@@ -39,7 +39,7 @@ public class RichTextAreaElement extends AbstractFieldElement { | |||
* Return value of the field element. | |||
* | |||
* @return value of the field element | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public String getValue() { | |||
JavascriptExecutor executor = (JavascriptExecutor) getDriver(); | |||
@@ -53,7 +53,7 @@ public class RichTextAreaElement extends AbstractFieldElement { | |||
* | |||
* @param chars | |||
* new value of the field | |||
* @since | |||
* @since 8.4 | |||
*/ | |||
public void setValue(CharSequence chars) throws ReadOnlyException { | |||
if (isReadOnly()) { |