aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarClientRpc.java28
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarEventId.java38
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarServerRpc.java49
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarState.java71
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/calendar/DateConstants.java38
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/textarea/RichTextAreaState.java31
-rw-r--r--shared/src/main/java/com/vaadin/shared/v7/ui/textarea/LegacyTextAreaState.java41
-rw-r--r--shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyAbstractTextFieldState.java49
-rw-r--r--shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyTextFieldConstants.java29
-rw-r--r--shared/src/main/java/com/vaadin/v7/shared/ui/label/ContentMode.java57
-rw-r--r--shared/src/main/java/com/vaadin/v7/shared/ui/label/LabelState.java26
11 files changed, 0 insertions, 457 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarClientRpc.java b/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarClientRpc.java
deleted file mode 100644
index d6856662a4..0000000000
--- a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarClientRpc.java
+++ /dev/null
@@ -1,28 +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.shared.ui.calendar;
-
-import com.vaadin.shared.communication.ClientRpc;
-
-/**
- *
- * @since 7.1
- * @author Vaadin Ltd.
- *
- */
-public interface CalendarClientRpc extends ClientRpc {
- void scroll(int scrollPosition);
-}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarEventId.java b/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarEventId.java
deleted file mode 100644
index b010c9bded..0000000000
--- a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarEventId.java
+++ /dev/null
@@ -1,38 +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.shared.ui.calendar;
-
-import java.io.Serializable;
-
-/**
- * CalendarEventId contains static String identifiers for all Calendar events.
- * These are used both in the client and server side code.
- *
- * @since 7.1
- * @author Vaadin Ltd.
- */
-public class CalendarEventId implements Serializable {
-
- public static final String EVENTMOVE = "eventMove";
- public static final String RANGESELECT = "rangeSelect";
- public static final String FORWARD = "forward";
- public static final String BACKWARD = "backward";
- public static final String DATECLICK = "dateClick";
- public static final String WEEKCLICK = "weekClick";
- public static final String EVENTCLICK = "eventClick";
- public static final String EVENTRESIZE = "eventResize";
- public static final String ACTION = "action";
-}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarServerRpc.java b/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarServerRpc.java
deleted file mode 100644
index 645c153092..0000000000
--- a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarServerRpc.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.shared.ui.calendar;
-
-import com.vaadin.shared.annotations.Delayed;
-import com.vaadin.shared.communication.ServerRpc;
-
-/**
- * @since 7.1
- * @author Vaadin Ltd.
- */
-public interface CalendarServerRpc extends ServerRpc {
- void eventMove(int eventIndex, String newDate);
-
- void rangeSelect(String range);
-
- void forward();
-
- void backward();
-
- void dateClick(String date);
-
- void weekClick(String event);
-
- void eventClick(int eventIndex);
-
- void eventResize(int eventIndex, String newStartDate, String newEndDate);
-
- void actionOnEmptyCell(String actionKey, String startDate, String endDate);
-
- void actionOnEvent(String actionKey, String startDate, String endDate,
- int eventIndex);
-
- @Delayed(lastOnly = true)
- void scroll(int scrollPosition);
-}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarState.java b/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarState.java
deleted file mode 100644
index 8664c6366f..0000000000
--- a/shared/src/main/java/com/vaadin/shared/ui/calendar/CalendarState.java
+++ /dev/null
@@ -1,71 +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.shared.ui.calendar;
-
-import java.util.List;
-
-import com.vaadin.shared.AbstractComponentState;
-
-/**
- * @since 7.1.0
- * @author Vaadin Ltd.
- */
-public class CalendarState extends AbstractComponentState {
-
- public boolean format24H;
- public String[] dayNames;
- public String[] monthNames;
- public int firstVisibleDayOfWeek = 1;
- public int lastVisibleDayOfWeek = 7;
- public int firstHourOfDay = 0;
- public int lastHourOfDay = 23;
- public int firstDayOfWeek;
- public int scroll;
- public String now;
- public List<CalendarState.Day> days;
- public List<CalendarState.Event> events;
- public List<CalendarState.Action> actions;
- public boolean eventCaptionAsHtml;
-
- public static class Day implements java.io.Serializable {
- public String date;
- public String localizedDateFormat;
- public int dayOfWeek;
- public int week;
- public int yearOfWeek;
- }
-
- public static class Action implements java.io.Serializable {
-
- public String caption;
- public String iconKey;
- public String actionKey;
- public String startDate;
- public String endDate;
- }
-
- public static class Event implements java.io.Serializable {
- public int index;
- public String caption;
- public String dateFrom;
- public String dateTo;
- public String timeFrom;
- public String timeTo;
- public String styleName;
- public String description;
- public boolean allDay;
- }
-}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/calendar/DateConstants.java b/shared/src/main/java/com/vaadin/shared/ui/calendar/DateConstants.java
deleted file mode 100644
index 83408d013b..0000000000
--- a/shared/src/main/java/com/vaadin/shared/ui/calendar/DateConstants.java
+++ /dev/null
@@ -1,38 +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.shared.ui.calendar;
-
-import java.io.Serializable;
-
-/**
- *
- * @since 7.1
- *
- */
-public class DateConstants implements Serializable {
-
- public static final String ACTION_DATE_FORMAT_PATTERN = "yyyy-MM-dd HH:mm:ss";
- public static final String CLIENT_DATE_FORMAT = "yyyy-MM-dd";
- public static final String CLIENT_TIME_FORMAT = "HH-mm";
- public static final long MINUTEINMILLIS = 60 * 1000;
- public static final long HOURINMILLIS = 60 * MINUTEINMILLIS;
- public static final long DAYINMILLIS = 24 * HOURINMILLIS;
- public static final long WEEKINMILLIS = 7 * DAYINMILLIS;
-
- public static final int DAYINMINUTES = 24 * 60;
- public static final int HOURINMINUTES = 60;
-
-}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/textarea/RichTextAreaState.java b/shared/src/main/java/com/vaadin/shared/ui/textarea/RichTextAreaState.java
deleted file mode 100644
index 1d5512d3fd..0000000000
--- a/shared/src/main/java/com/vaadin/shared/ui/textarea/RichTextAreaState.java
+++ /dev/null
@@ -1,31 +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.shared.ui.textarea;
-
-import com.vaadin.shared.v7.ui.textfield.LegacyAbstractTextFieldState;
-
-/**
- *
- * Shared state for the RichTextArea component.
- *
- * @since 7.6
- */
-public class RichTextAreaState extends LegacyAbstractTextFieldState {
-
- {
- primaryStyleName = "v-richtextarea";
- }
-}
diff --git a/shared/src/main/java/com/vaadin/shared/v7/ui/textarea/LegacyTextAreaState.java b/shared/src/main/java/com/vaadin/shared/v7/ui/textarea/LegacyTextAreaState.java
deleted file mode 100644
index a3aa758499..0000000000
--- a/shared/src/main/java/com/vaadin/shared/v7/ui/textarea/LegacyTextAreaState.java
+++ /dev/null
@@ -1,41 +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.shared.v7.ui.textarea;
-
-import com.vaadin.shared.annotations.DelegateToWidget;
-import com.vaadin.shared.annotations.NoLayout;
-import com.vaadin.shared.v7.ui.textfield.LegacyAbstractTextFieldState;
-
-@Deprecated
-public class LegacyTextAreaState extends LegacyAbstractTextFieldState {
- {
- primaryStyleName = "v-textarea";
- }
-
- /**
- * Number of visible rows in the text area. The default is 5.
- */
- @DelegateToWidget
- public int rows = 5;
-
- /**
- * Tells if word-wrapping should be used in the text area.
- */
- @DelegateToWidget
- @NoLayout
- public boolean wordwrap = true;
-
-}
diff --git a/shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyAbstractTextFieldState.java b/shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyAbstractTextFieldState.java
deleted file mode 100644
index 48c7decdd4..0000000000
--- a/shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyAbstractTextFieldState.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.shared.v7.ui.textfield;
-
-import com.vaadin.shared.AbstractFieldState;
-import com.vaadin.shared.annotations.NoLayout;
-
-@Deprecated
-public class LegacyAbstractTextFieldState extends AbstractFieldState {
- {
- primaryStyleName = "v-textfield";
- }
-
- /**
- * Maximum character count in text field.
- */
- @NoLayout
- public int maxLength = -1;
-
- /**
- * Number of visible columns in the TextField.
- */
- public int columns = 0;
-
- /**
- * The prompt to display in an empty field. Null when disabled.
- */
- @NoLayout
- public String inputPrompt = null;
-
- /**
- * The text in the field
- */
- @NoLayout
- public String text = null;
-}
diff --git a/shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyTextFieldConstants.java b/shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyTextFieldConstants.java
deleted file mode 100644
index 5162f4cf90..0000000000
--- a/shared/src/main/java/com/vaadin/shared/v7/ui/textfield/LegacyTextFieldConstants.java
+++ /dev/null
@@ -1,29 +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.shared.v7.ui.textfield;
-
-import java.io.Serializable;
-
-@Deprecated
-public class LegacyTextFieldConstants implements Serializable {
- public static final String VAR_CUR_TEXT = "curText";
- public static final String ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS = "nvc";
- public static final String ATTR_TEXTCHANGE_TIMEOUT = "iet";
- public static final String VAR_CURSOR = "c";
- public static final String ATTR_TEXTCHANGE_EVENTMODE = "iem";
- public static final String TEXTCHANGE_MODE_EAGER = "EAGER";
-
-}
diff --git a/shared/src/main/java/com/vaadin/v7/shared/ui/label/ContentMode.java b/shared/src/main/java/com/vaadin/v7/shared/ui/label/ContentMode.java
deleted file mode 100644
index e6292b47c5..0000000000
--- a/shared/src/main/java/com/vaadin/v7/shared/ui/label/ContentMode.java
+++ /dev/null
@@ -1,57 +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.v7.shared.ui.label;
-
-/**
- * Content modes defining how the client should interpret a Label's value.
- *
- * @since 7.0.0
- */
-public enum ContentMode {
- /**
- * Content mode, where the label contains only plain text.
- */
- TEXT,
-
- /**
- * Content mode, where the label contains preformatted text. In this mode
- * newlines are preserved when rendered on the screen.
- */
- PREFORMATTED,
-
- /**
- * Content mode, where the label contains HTML.
- */
- HTML,
-
- /**
- * Content mode, where the label contains well-formed or well-balanced XML.
- * This is handled in the same way as {@link #HTML}.
- *
- * @deprecated Use {@link #HTML} instead
- */
- @Deprecated
- XML,
-
- /**
- * Legacy content mode, where the label contains RAW output. This is handled
- * in exactly the same way as {@link #HTML}.
- *
- * @deprecated Use {@link #HTML} instead
- */
- @Deprecated
- RAW;
-}
diff --git a/shared/src/main/java/com/vaadin/v7/shared/ui/label/LabelState.java b/shared/src/main/java/com/vaadin/v7/shared/ui/label/LabelState.java
deleted file mode 100644
index 64cc3b5ee5..0000000000
--- a/shared/src/main/java/com/vaadin/v7/shared/ui/label/LabelState.java
+++ /dev/null
@@ -1,26 +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.v7.shared.ui.label;
-
-import com.vaadin.shared.AbstractComponentState;
-
-public class LabelState extends AbstractComponentState {
- {
- primaryStyleName = "v-label";
- }
- public ContentMode contentMode = ContentMode.TEXT;
- public String text = "";
-}